#include <ColorMap.h>
Public Attributes | |
| std::vector< Control > | mControls |
| int | mStartPosition |
| int | mStopPosition |
| int | mNumIndices |
Static Public Attributes | |
| static const unsigned int | MAX_CONTROLS = 20 |
Classes | |
| struct | Control |
| This struct specifies a color and position in a color gradient. More... | |
This struct specifies a color lookup table by defining a series of colors and their positions in the lookup table. All entries in the lookup table that fall between defined colors will be computed by interpolating between the defined color Controls.
Definition at line 38 of file ColorMap.h.
const unsigned int ColorMap::Gradient::MAX_CONTROLS = 20 [static] |
The maximum number of controls that can be specified.
If more than this number of controls are specified the Gradient will be rejected.
Definition at line 49 of file ColorMap.h.
| std::vector<Control> ColorMap::Gradient::mControls |
The controls specifying the color lookup table defined by the Gradient.
The positions of the controls must be monotonically increasing (i.e. the position of Control n must be greater than or equal to the position of Control n-1). The position of the first Control must be greater than or equal to mStartPosition. The position of the last Control must be less than or equal to mStopPosition.
Definition at line 52 of file ColorMap.h.
The index in the color lookup table that the gradient begins.
All entries in the table before this value will be filled with grayscale values. All entries in the table after this value but before the first control will be filled with the color of the first control. If no grayscale is desired, this should be set to 0. This value must be greater than or equal to 0 and less than or equal to the position of the first Control.
Definition at line 59 of file ColorMap.h.
The index in the color lookup table that the gradient ends.
All entries in the table after this value will be filled with grayscale values. All entries in the table before this value but after the last control will be filled with the color of the last control. If no grayscale is desired, this should be set to mNumIndices-1. This value must be less than mNumIndices and greater than or equal to the position of the last Control.
Definition at line 65 of file ColorMap.h.
The number of colors in the color lookup table defined by the Gradient.
Definition at line 71 of file ColorMap.h.