31#if defined(TickedColorMap_RECURSES)
32#error Recursive header files inclusion detected in TickedColorMap.h
35#define TickedColorMap_RECURSES
37#if !defined TickedColorMap_h
39#define TickedColorMap_h
47#include "DGtal/base/Common.h"
48#include "DGtal/io/Color.h"
49#include "DGtal/io/colormaps/CColorMap.h"
77 template <
typename TValue,
typename TColorMap>
159 const Value thickness);
168 const Value thickness);
222 std::vector< std::pair<Value,Value> >
myTicks;
238 template <
typename TValue,
typename CMAP >
247#include "DGtal/io/colormaps/TickedColorMap.ih"
254#undef TickedColorMap_RECURSES
Structure representing an RGB triple with alpha component.
Aim: This class adapts any colormap to add "ticks" in the colormap colors.
BOOST_CONCEPT_ASSERT((concepts::CColorMap< ColorMap >))
TickedColorMap(const Value &aMin, const Value &aMax, const Color &color=Color::White)
Color operator()(const Value &value) const
void selfDisplay(std::ostream &out) const
const Value & min() const
void addTick(const Value position, const Value thickness)
const Value & max() const
TickedColorMap(const ColorMap &other, const Color &color=Color::White)
void addRegularTicks(const unsigned int nbTicks, const Value thickness)
TickedColorMap(const TickedColorMap &other)
BOOST_STATIC_ASSERT((concepts::ConceptUtils::SameType< Value, typename ColorMap::Value >::value))
ColorMap * colormap() const
TColorMap ColorMap
Adapted colormap type.
TickedColorMap & operator=(const TickedColorMap &other)
std::vector< std::pair< Value, Value > > myTicks
Sorted vector of ticks.
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
Aim: Defines the concept describing a color map. A color map converts a value within a given range in...