SOFA API  1a4bb3e7
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 () const
 
void setPaletteSize (unsigned int paletteSize)
 
const std::string & getColorScheme () const
 
void setColorScheme (const std::string &colorScheme)
 
unsigned int getNbColors () const
 
type::RGBAColor getColor (unsigned int i)
 
template<class Real >
evaluator< RealgetEvaluator (Real vmin, Real vmax)
 

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

◆ entries

VecColor sofa::helper::ColorMap::entries

◆ m_colorScheme

std::string sofa::helper::ColorMap::m_colorScheme

◆ m_paletteSize

unsigned int sofa::helper::ColorMap::m_paletteSize

Constructor details

◆ ColorMap()

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

◆ ~ColorMap()

sofa::helper::ColorMap::~ColorMap ( )
virtual

Function details

◆ getColor()

type::RGBAColor sofa::helper::ColorMap::getColor ( unsigned int  i)
inline

◆ getColorScheme()

const std::string& sofa::helper::ColorMap::getColorScheme ( ) const
inline

◆ getDefault()

ColorMap * sofa::helper::ColorMap::getDefault ( )
static

◆ getEvaluator()

template<class Real >
evaluator<Real> sofa::helper::ColorMap::getEvaluator ( Real  vmin,
Real  vmax 
)
inline

◆ getNbColors()

unsigned int sofa::helper::ColorMap::getNbColors ( ) const
inline

◆ getPaletteSize()

unsigned int sofa::helper::ColorMap::getPaletteSize ( ) const
inline

◆ init()

void sofa::helper::ColorMap::init ( void  )

◆ reinit()

void sofa::helper::ColorMap::reinit ( )

◆ setColorScheme()

void sofa::helper::ColorMap::setColorScheme ( const std::string &  colorScheme)
inline

◆ setPaletteSize()

void sofa::helper::ColorMap::setPaletteSize ( unsigned int  paletteSize)
inline

Related details

◆ operator<<

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

◆ operator>>

std::istream& operator>> ( std::istream &  in,
ColorMap m 
)
friend