#include <RandomColorMap.h>
Public Types |
typedef unsigned int | Value |
Protected Attributes |
unsigned int | myMin |
unsigned int | myMax |
Detailed Description
Aim: access to random color from a gradientColorMap.
Description of class 'RandomColorMap'
Definition at line 59 of file RandomColorMap.h.
Member Typedef Documentation
Constructor & Destructor Documentation
Copy constructor.
- Parameters:
-
other | the object to clone. Forbidden by default. |
DGtal::RandomColorMap::RandomColorMap |
( |
const unsigned int & |
aFirstIndex, |
|
|
const unsigned int & |
aLastIndex, |
|
|
const Color & |
aFirstColor = Color::White , |
|
|
const Color & |
aLastColor = Color::Red |
|
) |
| |
|
inline |
DGtal::RandomColorMap::~RandomColorMap |
( |
| ) |
|
|
inline |
DGtal::RandomColorMap::RandomColorMap |
( |
| ) |
|
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
Member Function Documentation
void DGtal::RandomColorMap::addColor |
( |
const Color & |
aColor | ) |
|
|
inline |
Adds a color to the list of color steps.
- Parameters:
-
Definition at line 87 of file RandomColorMap.ih.
void DGtal::RandomColorMap::associateRandomIndexColor |
( |
| ) |
|
|
inlineprivate |
bool DGtal::RandomColorMap::isValid |
( |
| ) |
const |
|
inline |
Checks the validity/consistency of the object.
- Returns:
- 'true' if the object is valid, 'false' otherwise.
Definition at line 103 of file RandomColorMap.ih.
const unsigned int & DGtal::RandomColorMap::max |
( |
| ) |
const |
|
inline |
Returns the upper bound of the value range.
- Returns:
- The upper bound of the value range.
Definition at line 140 of file RandomColorMap.ih.
const unsigned int & DGtal::RandomColorMap::min |
( |
| ) |
const |
|
inline |
Returns the lower bound of the value range.
- Returns:
- The lower bound of the value range.
Definition at line 133 of file RandomColorMap.ih.
Color DGtal::RandomColorMap::operator() |
( |
const unsigned int & |
aValue | ) |
const |
|
inline |
Computes the color associated with a value in a given range.
- Parameters:
-
value | A value within the value range. |
- Returns:
- A random color identified by an unique [aValue] within the current range.
Definition at line 125 of file RandomColorMap.ih.
void DGtal::RandomColorMap::selfDisplay |
( |
std::ostream & |
out | ) |
const |
|
inline |
Writes/Displays the object on an output stream.
- Parameters:
-
out | the output stream where the object is written. |
Definition at line 95 of file RandomColorMap.ih.
{
out << "[RandomColorMap]";
}
Field Documentation
std::vector<unsigned int> DGtal::RandomColorMap::myColorIndex |
|
private |
std::vector<unsigned int> DGtal::RandomColorMap::myFreeColorIndex |
|
private |
unsigned int DGtal::RandomColorMap::myMax |
|
protected |
unsigned int DGtal::RandomColorMap::myMin |
|
protected |
The documentation for this class was generated from the following files: