gepetto::gui::ColorMap Class Reference

#include <gepetto/gui/color-map.hh>

Public Member Functions

 ColorMap (std::size_t nbColors)
 
QColor getColor (std::size_t index) const
 
void getColor (std::size_t index, osgVector4 &color) const
 
QColor nextColor ()
 
void currentIndex (std::size_t index)
 
std::size_t remap (const std::size_t &index) const
 

Static Public Member Functions

static QColor interpolate (std::size_t nbColors, std::size_t index)
 

Constructor & Destructor Documentation

◆ ColorMap()

gepetto::gui::ColorMap::ColorMap ( std::size_t  nbColors)
inline

Member Function Documentation

◆ currentIndex()

void gepetto::gui::ColorMap::currentIndex ( std::size_t  index)
inline

◆ getColor() [1/2]

QColor gepetto::gui::ColorMap::getColor ( std::size_t  index) const
inline

◆ getColor() [2/2]

void gepetto::gui::ColorMap::getColor ( std::size_t  index,
osgVector4 color 
) const
inline

◆ interpolate()

static QColor gepetto::gui::ColorMap::interpolate ( std::size_t  nbColors,
std::size_t  index 
)
inlinestatic

◆ nextColor()

QColor gepetto::gui::ColorMap::nextColor ( )
inline

◆ remap()

std::size_t gepetto::gui::ColorMap::remap ( const std::size_t &  index) const
inline

Reverse the order of the bits in index. This increases the contrast between colors with close indexes.


The documentation for this class was generated from the following file: