|
| ColorScale (double minValue, double maxValue, params color[] definitionColors) |
| Constructor. Creates a continuous scale. More...
|
|
| ColorScale (double minValue, double maxValue, int numCells, params color[] definitionColors) |
| Constructor. Creates a discrete scale with the specified number of cells. More...
|
|
| ColorScale (double minValue, double maxValue, int numCells, bool isDiscrete, params color[] definitionColors) |
| Constructor. More...
|
|
override double | FromReference (double referenceValue) |
| Transforms the specified value from reference domain (interval [0,1]) to actual domain. More...
|
|
override double | ToReference (double actualValue) |
| Transforms the specified value from actual domain to reference domain (interval [0,1]). More...
|
|
override color | GetContinuousReferenceColor (double referenceValue) |
| Returns the CONTINUOUS color from the current color scale that corresponds to the specified value in the REFERENCE domain (interval [0, 1]). More...
|
|
override double | GetReferenceCellValue (int cellIndex) |
| Returns the reference value (in the interval [0, 1]) corresponding to the specified cell in the discrete color map. This value is used to obtain the uniform (discrete) color of the cell by the methods that produces continuous scale colors (continuous methods are usually basis for scale definitions). More...
|
|
override int | GetReferenceCellIndex (double referenceValue) |
| Retuns index of the cell of the discrete color scale that corresponds to the specified value in the reference domain (interval [0, 1]). More...
|
|
virtual color | GetColor (double value) |
| Returns the color from the current collor scale that corresponds to the specified value. More...
|
|
virtual color | GetReferenceColor (double referenceValue) |
| Returns the color from the current color scale that corresponds to the specified value in the reference domain (interval [0,1]). More...
|
|
virtual color | GetContinuousColor (double value) |
| Returns the CONTINUOUS color from the current color scale that corresponds to the specified value. More...
|
|
virtual double | GetCellValue (int cellIndex) |
| Returns the value corresponding to the specified cell in the discrete color map. This value is used to obtain the uniform (discrete) color of the cell by the methods that produces continuous scale colors (continuous methods are usually basis for scale definitions). More...
|
|
virtual color | GetCellColor (int cellIndex) |
| Returns the (discrete) color corresponding to the specified cell index. If the index is out of range then the lowest or the highest cell color is returned, dependent on whether the value is smaller than lower bound or greater than upper bound. More...
|
|
virtual int | GetCellIndex (double value) |
| Retuns index of the cell of the discrete color scale that corresponds to the specified value (in the actusl domain). More...
|
|
virtual color | GetDiscreteReferenceColor (double referenceValue) |
| Returns a color from the DISCRETE color scale represented by the current object that corresponds to he specified value in the REFERENCE domain (interval [0, 1]). More...
|
|
virtual color | GetDiscreteColor (double value) |
| Returns a color from the DISCRETE color scale represented by the current object that corresponds to he specified value (in the actual domain). More...
|
|
|
static ColorScale | Create (double minValue, double maxValue, params color[] scaleColors) |
| Creates and returns a continuous color scale that runs through the specified colors. More...
|
|
static ColorScale | Create (double minValue, double maxValue, int numCells, params color[] scaleColors) |
| Creates and returns a discrete color scale that runs through the specified colors. More...
|
|
static ColorScale | CreateDefault (double minValue, double maxValue) |
| Creates and returns a continuous color scale that runs from blue through red till yellow color. More...
|
|
static ColorScale | CreateDefault (double minValue, double maxValue, int numCells) |
| Creates and returns a discrete color scale that runs from blue through red till yellow color. More...
|
|
static ColorScale | CreateRainbowFull (double minValue, double maxValue) |
| Creates and returns a continuous color scale that runs from violet till red color and passes rainbow colors in their natural order (red-orange-yellow-green-blue-indigo-violet). More...
|
|
static ColorScale | CreateRainbowFull (double minValue, double maxValue, int numCells) |
| Creates and returns a discrete color scale that runs from violet till red color and passes rainbow colors in their natural order (red-orange-yellow-green-blue-indigo-violet). More...
|
|
static ColorScale | CreateRainbow (double minValue, double maxValue) |
| Creates and returns a continuous color scale that runs from violet till red color and passes rainbow colors in their natural order (red-orange-yellow-green-blue-violet). More...
|
|
static ColorScale | CreateRainbow (double minValue, double maxValue, int numCells) |
| Creates and returns a discrete color scale that runs from violet till red color and passes rainbow colors in their natural order (red-orange-yellow-green-blue-indigo-violet). More...
|
|
static ColorScale | CreateColorBlind (double minValue, double maxValue) |
| Creates and returns a continuous color scale that is adapted to color blind people in general. More...
|
|
static ColorScale | CreateColorBlind (double minValue, double maxValue, int numCells) |
| Creates and returns a discrete color scale that is adapted to color blind people in general. More...
|
|
static ColorScale | CreateColorBlindProtanopia (double minValue, double maxValue) |
| Creates and returns a continuous color scale that is adapted to people with protanopia. More...
|
|
static ColorScale | CreateColorBlindProtanopia (double minValue, double maxValue, int numCells) |
| Creates and returns a discrete color scale that is adapted to people with protanopia. More...
|
|
static ColorScale | CreateColorBlindDeuteranopia (double minValue, double maxValue) |
| Creates and returns a continuous color scale that is adapted to people with deuteranopia. More...
|
|
static ColorScale | CreateColorBlindDeuteranopia (double minValue, double maxValue, int numCells) |
| Creates and returns a discrete color scale that is adapted to people with deuteranopia. More...
|
|
static ColorScale | CreateColorBlindTritanopia (double minValue, double maxValue) |
| Creates and returns a continuous color scale that is adapted to people with tritanopia. More...
|
|
static ColorScale | CreateColorBlindTritanopia (double minValue, double maxValue, int numCells) |
| Creates and returns a discrete color scale that is adapted to people with tritanopia. More...
|
|
static ColorScale | CreateGray (double minValue, double maxValue) |
| Creates and returns a continuous color scale with various hues of gray. More...
|
|
static ColorScale | CreateGray (double minValue, double maxValue, int numCells) |
| Creates and returns a discrete color scale with various hues of gray. More...
|
|
static ColorScale | CreateBlueRed (double minValue, double maxValue) |
| Creates and returns a continuous color scale that ranges from dark blue to red. More...
|
|
static ColorScale | CreateBlueRed (double minValue, double maxValue, int numCells) |
| Creates and returns a discrete color scale that ranges from dark blue to red. More...
|
|
static ColorScale | CreateBlueYellow (double minValue, double maxValue) |
| Creates and returns a continuous color scale that ranges from dark blue to yellow. More...
|
|
static ColorScale | CreateBlueYellow (double minValue, double maxValue, int numCells) |
| Creates and returns a discrete color scale that ranges from dark blue to yellow. More...
|
|
static ColorScale | CreateBlueRedYellow (double minValue, double maxValue) |
| Creates and returns a continuous color scale that runs from blue through red till yellow color. More...
|
|
static ColorScale | CreateBlueRedYellow (double minValue, double maxValue, int numCells) |
| Creates and returns a discrete color scale that runs from blue through red till yellow color. More...
|
|
static IColorScale | CreateBlueGreenYellow (double minValue, double maxValue) |
| Creates and returns a continuous color scale that runs from blue through green till red color. More...
|
|
static ColorScale | CreateBlueGreenRed (double minValue, double maxValue, int numCells) |
| Creates and returns a discrete color scale that runs from blue through green till red color. More...
|
|
Color scale; linearly mapped values, discrete scaling functionality, value to color mappiong defined through interpolation of table of provided mark colors.
Provides mapping from scalar values to colors, defining continuous or discrete color scales.
NOT thread safe.
Mapping from scalar value to color is usually defined continuously on the reference interval of values ranging from 0 to 1.
This class was initially used in GUI building for fadeouts, but has now broader applicaton and is used in all kins of graphical applications. This is also the reason that it is placed in the IG.Lib namespace. Discrete color values are added in 2011 for needs in graphic applications.
A set of colors define the continuous color scale. When a reference value changes from 0 to 1, the corresponding color on the color scale smoothly varies from the first to the last color and passes all eventual intermediate colros.
Discrete color scale is defined on basis of continuous scale in such a way that for whole subranges of values in the reference domain (interval [0, 1]) only a single color is picked. This color corresponds to a particular discrete value in the reference domain, usually in the middle of the subinterval in the reference space that corresponds to a given cell of the color scale.
Values our of range:
For continuous scale, values out of range will produce colors that correspond to either lower or upper bound of the range (dependent in which direction the range is exceeded). For discrete scale, either color of the lower or of the upper cell is produced.
The same object provides methods for getting collors either from continuous or form discrete color scale. There are methods such as ColorScaleBase.GetColor or ColorScaleBase.GetReferenceColor that return colors form either scale, dependent on the current value of the ColorScaleBase.IsDiscrete property.
See also:
http://www.sapdesignguild.org/resources/glossary_color/
$A Igor Jul08 Oct11;