class MbColor : public MwVec3f


Inheritance:


Public Methods

void getHSVValue(float &h, float &s, float &v)
Returns 3 individual hsv components
void getHSVValue(float hsv[3])
Returns an array of 3 hsv components
unsigned short make16()
Produce a 16-bit representation of color:
void matchRamp(MbColor& rampColor)
MbColor(const float rgb[3])
Constructor given an array of 3 components
MbColor(float r, float g, float b)
Constructor given 3 individual components
MbColor(const MwVec3f vec3f)
Constructor given an MwVec3f
MbColor& setHSVValue(float h, float s, float v)
Sets value of color vector from 3 hsv components
MbColor& setHSVValue(const float hsv[3])
Sets value of color vector from array of 3 hsv components
static void setPalette(MbBool param)
static MbBool useColorPalette()

Private Fields

static MbBool usePalette

Documentation

MbColor(const MwVec3f vec3f)
Constructor given an MwVec3f

MbColor(const float rgb[3])
Constructor given an array of 3 components

MbColor(float r, float g, float b)
Constructor given 3 individual components

MbColor& setHSVValue(float h, float s, float v)
Sets value of color vector from 3 hsv components

MbColor& setHSVValue(const float hsv[3])
Sets value of color vector from array of 3 hsv components

void getHSVValue(float &h, float &s, float &v)
Returns 3 individual hsv components

void getHSVValue(float hsv[3])
Returns an array of 3 hsv components

void matchRamp(MbColor& rampColor)

static void setPalette(MbBool param)

static MbBool useColorPalette()

unsigned short make16()
Produce a 16-bit representation of color:

static MbBool usePalette


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de