31 #if defined(HueShadeColorMap_RECURSES)
32 #error Recursive header files inclusion detected in HueShadeColorMap.h
35 #define HueShadeColorMap_RECURSES
37 #if !defined HueShadeColorMap_h
39 #define HueShadeColorMap_h
44 #include "DGtal/base/Common.h"
45 #include "Board/Board.h"
46 #include "DGtal/io/Color.h"
89 template <
typename PValue,
int DefaultCycles = 1 >
109 const unsigned int cycles = DefaultCycles );
158 const PValue &
min()
const;
165 const PValue &
max()
const;
191 const PValue & value );
226 static void HSVtoRGB(
double &r,
double &g,
double &b,
227 double h,
const double s,
const double v);
239 template <
typename PValue,
int DefaultCycles >
248 #include "DGtal/io/colormaps/HueShadeColorMap.ih"
255 #undef HueShadeColorMap_RECURSES
Structure representing an RGB triple with alpha component.
Aim: This class template may be used to (linearly) convert scalar values in a given range into a colo...
HueShadeColorMap & operator=(const HueShadeColorMap &other)
void setCycles(int cycles)
Color operator()(const PValue &value) const
const PValue & min() const
const PValue & max() const
HueShadeColorMap(const HueShadeColorMap &other)
HueShadeColorMap(const PValue &min, const PValue &max, const unsigned int cycles=DefaultCycles)
static Color getColor(const unsigned int cycles, const PValue &min, const PValue &max, const PValue &value)
static void HSVtoRGB(double &r, double &g, double &b, double h, const double s, const double v)
void selfDisplay(std::ostream &out) const
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)