31 #if defined(TickedColorMap_RECURSES) 32 #error Recursive header files inclusion detected in TickedColorMap.h 33 #else // defined(TickedColorMap_RECURSES) 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>
148 const Value thickness);
157 const Value thickness);
210 std::vector< std::pair<Value,Value> >
myTicks;
227 template <
typename TValue,
typename CMAP >
229 operator<< ( std::ostream & out, const TickedColorMap<TValue,CMAP> & object );
236 #include "DGtal/io/colormaps/TickedColorMap.ih" 241 #endif // !defined TickedColorMap_h 243 #undef TickedColorMap_RECURSES 244 #endif // else defined(TickedColorMap_RECURSES) TickedColorMap & operator=(const TickedColorMap &other)
const Value & max() const
Color operator()(const Value &value) const
void selfDisplay(std::ostream &out) const
ColorMap * colormap() const
void addTick(const Value position, const Value thickness)
BOOST_CONCEPT_ASSERT((concepts::CColorMap< ColorMap >))
TColorMap ColorMap
Adapted colormap type.
BOOST_STATIC_ASSERT((concepts::ConceptUtils::SameType< Value, typename ColorMap::Value >::value))
void addRegularTicks(const unsigned int nbTicks, const Value thickness)
std::vector< std::pair< Value, Value > > myTicks
Sorted vector of ticks.
DGtal is the top-level namespace which contains all DGtal functions and types.
const Value & min() const
Structure representing an RGB triple with alpha component.
Aim: Defines the concept describing a color map. A color map converts a value within a given range in...
Aim: This class adapts any colormap to add "ticks" in the colormap colors.