Factory functions for creating color tables based on a predefined number of color schemes. More...
Public Types | |
enum | ColorTable { NORMAL, BLACK_WHITE, BLUE_RED, BLUE_GREEN, YELLOW_RED, GREEN_YELLOW_RED, RED_YELLOW, THERMAL_1, THERMAL_2, THERMAL_3, METAL_CASTING } |
The predefined color schemes supported by the color table factory. More... | |
Static Public Member Functions | |
static std::vector< Color3f > | colorTableArray (ColorTable colorTable, size_t colorCount) |
Returns an array of colors created from the given color scheme. More... | |
static std::vector< Color3f > | interpolateColorArray (const std::vector< Color3f > &colorArray, size_t targetColorCount) |
Interpolates a graded color table with the given number of colors (targetColorCount) based on the input colors (colorArray). More... | |
Factory functions for creating color tables based on a predefined number of color schemes.
These color tables can then be used to configure scalar mappers, which will again be used to setup a color legend (e.g. OverlayColorLegendContinuousDomain).
The predefined color schemes supported by the color table factory.
|
static |
Returns an array of colors created from the given color scheme.
The returned array will have colorCount number of values
|
static |
Interpolates a graded color table with the given number of colors (targetColorCount) based on the input colors (colorArray).
This is useful for creating gradient/continuous style color maps based on two or more colors.