31 #if defined(RandomColorMap_RECURSES)
32 #error Recursive header files inclusion detected in RandomColorMap.h
35 #define RandomColorMap_RECURSES
37 #if !defined RandomColorMap_h
39 #define RandomColorMap_h
44 #include "DGtal/base/Common.h"
45 #include "DGtal/io/colormaps/GradientColorMap.h"
90 RandomColorMap(
const unsigned int &aFirstIndex,
const unsigned int & aLastIndex,
120 const unsigned int &
min()
const;
127 const unsigned int &
max()
const;
200 #include "DGtal/io/colormaps/RandomColorMap.ih"
208 #undef RandomColorMap_RECURSES
Structure representing an RGB triple with alpha component.
Aim: access to random color from a gradientColorMap.
RandomColorMap & operator=(const RandomColorMap &anOther)
const unsigned int & max() const
void addColor(const Color &aColor)
RandomColorMap(const RandomColorMap &other)
Color operator()(const unsigned int &aValue) const
std::vector< unsigned int > myColorIndex
void associateRandomIndexColor()
void selfDisplay(std::ostream &out) const
GradientColorMap< unsigned int > * myGradientMap
const unsigned int & min() const
RandomColorMap(const unsigned int &aFirstIndex, const unsigned int &aLastIndex, const Color &aFirstColor=Color::White, const Color &aLastColor=Color::Red)
std::vector< unsigned int > myFreeColorIndex
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)