cee::vis::ColorTableFactory Class Reference

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< Color3fcolorTableArray (ColorTable colorTable, size_t colorCount)
 Returns an array of colors created from the given color scheme. More...
 
static std::vector< Color3finterpolateColorArray (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...
 

Detailed Description

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).

See also
ScalarMapper, OverlayColorLegendContinuousDomain

Member Enumeration Documentation

The predefined color schemes supported by the color table factory.

Enumerator
NORMAL 

The standard color map for scalar mapping in CDC. Following the color spectra, but starting on blue and ending on red.

BLACK_WHITE 

Black to while color map.

BLUE_RED 

Blue to red color map.

BLUE_GREEN 

Blue to green color map.

YELLOW_RED 

Yellow to red color map.

GREEN_YELLOW_RED 

A map from Green through yellow ending up in red.

RED_YELLOW 

A red to yellow color map.

THERMAL_1 

A map suitable for thermal scalars.

THERMAL_2 

A map suitable for thermal scalars.

THERMAL_3 

A map suitable for thermal scalars.

METAL_CASTING 

A map suitable for metal casting.

Member Function Documentation

std::vector< Color3f > cee::vis::ColorTableFactory::colorTableArray ( ColorTable  colorTable,
size_t  colorCount 
)
static

Returns an array of colors created from the given color scheme.

The returned array will have colorCount number of values

std::vector< Color3f > cee::vis::ColorTableFactory::interpolateColorArray ( const std::vector< Color3f > &  colorArray,
size_t  targetColorCount 
)
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.