MbLevelColorMapping< _TValue, _TColor > Class Template Reference
[Colormapping]
Class implementing a level color mapping function.
More...
#include <MeshVizXLM/mesh/colormapping/MbLevelColorMapping.h>
List of all members.
Detailed Description
template<typename _TValue, typename _TColor>
class MbLevelColorMapping< _TValue, _TColor >

Class implementing a level color mapping function.
This class implements a level color mapping defined by a set of N intervals between scalar values and N-1 colors representing the constant color used for values located in each interval.
Constructor & Destructor Documentation
template<typename _TValue , typename _TColor >
template<typename _TValue , typename _TColor >
Member Function Documentation
template<typename _TValue, typename _TColor >
_TColor MbLevelColorMapping< _TValue, _TColor >::getColor |
( |
_TValue |
value |
) |
const [inline, virtual] |
template<typename _TValue, typename _TColor>
template<typename _TValue, typename _TColor >
Returns the index in the level array of the interval containing the input value.
template<typename _TValue, typename _TColor>
bool MbLevelColorMapping< _TValue, _TColor >::getMaxThreshold |
( |
_TValue & |
maxThresholdValue, |
|
|
_TColor & |
maxThresholdColor | |
|
) |
| | const [inline] |
template<typename _TValue, typename _TColor>
bool MbLevelColorMapping< _TValue, _TColor >::getMinThreshold |
( |
_TValue & |
minThresholdValue, |
|
|
_TColor & |
minThresholdColor | |
|
) |
| | const [inline] |
template<typename _TValue, typename _TColor>
template<typename _TValue, typename _TColor>
template<typename _TValue, typename _TColor >
void MbLevelColorMapping< _TValue, _TColor >::getRange |
( |
_TValue & |
min, |
|
|
_TValue & |
max | |
|
) |
| | const [inline, virtual] |
template<typename _TValue , typename _TColor >
Returns a time stamp on this color mapping.
When the content of the color mapping changes, the time stamp must also change. The time stamp allows MeshViz to be aware of any change to this color mapping.
Implements MiColorMapping< _TValue, _TColor >.
template<typename _TValue, typename _TColor>
template<typename _TValue, typename _TColor>
void MbLevelColorMapping< _TValue, _TColor >::setLevels |
( |
std::vector< _TValue > & |
values, |
|
|
std::vector< _TColor > & |
colors | |
|
) |
| | [inline] |
Sets the scalar values (levels) and the constant color for each level.
- Parameters:
-
| values | is a list of N values sorted in increasing order defining the boundaries of each level. |
| colors | is a list of N-1 colors defining the constant color of each level. |
template<typename _TValue, typename _TColor>
void MbLevelColorMapping< _TValue, _TColor >::setMaxThreshold |
( |
bool |
enable, |
|
|
_TValue |
maxThresholdValue, |
|
|
_TColor |
maxThresholdColor | |
|
) |
| | [inline] |
Defines a maximum threshold above which the maxThresholdColor replaces the colormap colors.
template<typename _TValue, typename _TColor>
void MbLevelColorMapping< _TValue, _TColor >::setMinThreshold |
( |
bool |
enable, |
|
|
_TValue |
minThresholdValue, |
|
|
_TColor |
minThresholdColor | |
|
) |
| | [inline] |
Defines a minimum threshold under which the minThresholdColor replaces the colormap colors.
The documentation for this class was generated from the following file: