SOFA API  9d9100aa
Open source framework for multi-physics simuation
sofa::helper::ColorMap Class Reference

#include <ColorMap.h>

Classes

class  evaluator
 

Public Attributes

unsigned int m_paletteSize
 
std::string m_colorScheme
 
VecColor entries
 

Public Member Functions

 ColorMap (unsigned int paletteSize=256, const std::string &colorScheme="HSV")
 
virtual ~ColorMap ()
 
void init ()
 
void reinit ()
 
unsigned int getPaletteSize ()
 
void setPaletteSize (unsigned int paletteSize)
 
const std::string & getColorScheme ()
 
void setColorScheme (const std::string &colorScheme)
 
unsigned int getNbColors ()
 
Color getColor (unsigned int i)
 
template<class Real >
evaluator< RealgetEvaluator (Real vmin, Real vmax)
 
Color3 hsv2rgb (const Color3 &hsv)
 

Static Public Member Functions

static ColorMapgetDefault ()
 

Friends

std::ostream & operator<< (std::ostream &out, const ColorMap &m)
 
std::istream & operator>> (std::istream &in, ColorMap &m)
 

Attribute details

VecColor sofa::helper::ColorMap::entries
std::string sofa::helper::ColorMap::m_colorScheme
unsigned int sofa::helper::ColorMap::m_paletteSize

Constructor details

sofa::helper::ColorMap::ColorMap ( unsigned int  paletteSize = 256,
const std::string &  colorScheme = "HSV" 
)
sofa::helper::ColorMap::~ColorMap ( )
virtual

Function details

Color sofa::helper::ColorMap::getColor ( unsigned int  i)
inline
const std::string& sofa::helper::ColorMap::getColorScheme ( )
inline
ColorMap * sofa::helper::ColorMap::getDefault ( )
static
template<class Real >
evaluator<Real> sofa::helper::ColorMap::getEvaluator ( Real  vmin,
Real  vmax 
)
inline
unsigned int sofa::helper::ColorMap::getNbColors ( )
inline
unsigned int sofa::helper::ColorMap::getPaletteSize ( )
inline
ColorMap::Color3 sofa::helper::ColorMap::hsv2rgb ( const Color3 hsv)
void sofa::helper::ColorMap::init ( void  )
void sofa::helper::ColorMap::reinit ( )
void sofa::helper::ColorMap::setColorScheme ( const std::string &  colorScheme)
inline
void sofa::helper::ColorMap::setPaletteSize ( unsigned int  paletteSize)
inline

Related details

std::ostream& operator<< ( std::ostream &  out,
const ColorMap m 
)
friend
std::istream& operator>> ( std::istream &  in,
ColorMap m 
)
friend