TColorPalette Class

Header: Dew.Math.Controls.VCL/MtxVecTee.h · C++Builder only
TPersistentTColorPalette

class TColorPalette : public TPersistent;

Computes different color palettes.

Stores parameters and computes different color palettes. It support transitions between two colors, three colors, rainbow transition between two colors and rainbow transitions between three colors. Rainbow and non-rainbow transitions can be mixed in three color models. Top and bottom clip-off colors can be specified separately.

Constructors

NameDescription
TColorPalette

Destructors

NameDescription
~TColorPalette

Properties

NameTypeDescription
AutoMaxMinboolSet to true, if MaxValue and MinValue are computed internally.
BottomClipOffColorTColorDefines the color for values exceeding the lower limit of the color pallete.
BottomColorTColorDefines color for the minimum value.
BottomMostColorTColorDefines color for the minimum value.
ColorBalancedoubleDefines the color balance.
ColorBalanceMiddoubleDefines the mid color balance for three color model.
MaxValuedouble
MidColorTColorDefines color for medium value.
MinValuedouble
OnUpdateColorTNotifyEventCalled when the color parameters are updated.
PaletteScaleTPaletteScaleDefines how to manage the automatic palette scaling.
PaletteStepsintDefines number of palette steps.
PaletteStyleTGridPaletteStyleDefines palette style.
RainbowTRainbowSettings*Defines the rainbow color mixing.
SharpContrastboolActivates sharp contrast feature.
TopClipOffColorTColorDefines the color for values exceeding the upper limit of the color pallete.
TopColorTColorDefines color for the maximum value.
TopMostColorTColorDefines color for the maximum value.
UseBottomMostColorboolEnables five color model.
UseMidColorboolEnables three color model.
UseTopMostColorboolEnables five color model.

Methods

NameDescription
AddAdd new custom palette level/entry.
ApplyColorBalance
CalcColorRange
ClearClears the palette entries.
ColorReturns the color from the current color palette.
CreateCustomColor2Palette
CreateCustomColor2PaletteInv
CreateCustomRainbow3Palette
CreateCustomRangePaletteCreate equidistant palette entries/levels.
CreateDefaultPaletteCreate default palette entries/levels.
CreatePeakHoldPaletteCreate default palette entries/levels, but keep the scale.
DoUpdateColor
GetAutoMaxMin
GetBottomClipOffColor
GetBottomColor
GetBottomMostColor
GetColorBalance
GetColorBalanceMid
GetMaxValue
GetMidColor
GetMinValue
GetOnUpdateColor
GetPaletteScale
GetPaletteSteps
GetPaletteStyle
GetRainbow
GetSharpContrast
GetTopClipOffColor
GetTopColor
GetTopMostColor
GetUseBottomMostColor
GetUseMidColor
GetUseTopMostColor
InternalRangeSet
ResetPeakScaleResets the scales in case of Peak-hold palette style.
SetRainbow
SwapTopBottomColorsSwaps top and bottom colors.
UpdatePalette

Fields

NameTypeDescription
FPaletteDewArray<TGridPalette>
IBottomBlueint
IBottomGreenint
IBottomRedint
IMaxValuedouble
IMidBlueint
IMidGreenint
IMidRedint
IMinValuedouble
IRangedouble
IRangeBlueint
IRangeGreenint
IRangeInvdouble
IRangeMidBlueint
IRangeMidGreenint
IRangeMidRedint
IRangeRedint
ITopBlueint
ITopGreenint
ITopRedint