Aim: access to random color from a gradientColorMap.
More...
#include <DGtal/io/colormaps/RandomColorMap.h>
|
typedef unsigned int | Value |
|
Aim: access to random color from a gradientColorMap.
Description of class 'RandomColorMap'
Definition at line 59 of file RandomColorMap.h.
◆ Value
◆ RandomColorMap() [1/3]
Copy constructor.
- Parameters
-
other | the object to clone. Forbidden by default. |
◆ RandomColorMap() [2/3]
DGtal::RandomColorMap::RandomColorMap |
( |
const unsigned int & |
aFirstIndex, |
|
|
const unsigned int & |
aLastIndex, |
|
|
const Color & |
aFirstColor = Color::White , |
|
|
const Color & |
aLastColor = Color::Red |
|
) |
| |
Constructor from two unsigned intergers and two Colors.
◆ ~RandomColorMap()
DGtal::RandomColorMap::~RandomColorMap |
( |
| ) |
|
◆ RandomColorMap() [3/3]
DGtal::RandomColorMap::RandomColorMap |
( |
| ) |
|
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
◆ addColor()
void DGtal::RandomColorMap::addColor |
( |
const Color & |
aColor | ) |
|
Adds a color to the list of color steps.
- Parameters
-
Referenced by main().
◆ associateRandomIndexColor()
void DGtal::RandomColorMap::associateRandomIndexColor |
( |
| ) |
|
|
private |
◆ isValid()
bool DGtal::RandomColorMap::isValid |
( |
| ) |
const |
Checks the validity/consistency of the object.
- Returns
- 'true' if the object is valid, 'false' otherwise.
◆ max()
const unsigned int & DGtal::RandomColorMap::max |
( |
| ) |
const |
Returns the upper bound of the value range.
- Returns
- The upper bound of the value range.
◆ min()
const unsigned int & DGtal::RandomColorMap::min |
( |
| ) |
const |
Returns the lower bound of the value range.
- Returns
- The lower bound of the value range.
◆ operator()()
Color DGtal::RandomColorMap::operator() |
( |
const unsigned int & |
aValue | ) |
const |
Computes the color associated with a value in a given range.
- Parameters
-
aValue | A value within the value range. |
- Returns
- A random color identified by an unique [aValue] within the current range.
◆ operator=()
Assignment.
- Parameters
-
anOther | the object to copy. |
- Returns
- a reference on 'this'. Forbidden by default.
◆ selfDisplay()
void DGtal::RandomColorMap::selfDisplay |
( |
std::ostream & |
out | ) |
const |
Writes/Displays the object on an output stream.
- Parameters
-
out | the output stream where the object is written. |
◆ myColorIndex
std::vector<unsigned int> DGtal::RandomColorMap::myColorIndex |
|
private |
◆ myFreeColorIndex
std::vector<unsigned int> DGtal::RandomColorMap::myFreeColorIndex |
|
private |
◆ myGradientMap
◆ myMax
unsigned int DGtal::RandomColorMap::myMax |
|
protected |
◆ myMin
unsigned int DGtal::RandomColorMap::myMin |
|
protected |
The documentation for this class was generated from the following file: