Field containing an RGB color. More...
#include <Inventor/fields/SoSFColor.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
const SoSFColor & | operator= (const SoSFColor &f) |
SoSFColor () | |
virtual | ~SoSFColor () |
const SbColor & | getValue () const |
void | setValue (const SbColor &newValue) |
const SbColor & | operator= (const SbColor &newValue) |
int | operator== (const SoSFColor &f) const |
int | operator!= (const SoSFColor &f) const |
virtual size_t | getValueSize () const |
void | setValue (const SbVec3f &vec) |
void | setValue (float r, float g, float b) |
void | setHSVValue (float h, float s, float v) |
void | setValue (const float rgb[3]) |
void | setHSVValue (const float hsv[3]) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Field containing an RGB color.
A single-value field containing an SbColor. Values may be set in either RGB (red, green, blue) or HSV (hue, saturation, value) color spaces.
SoSFColors are written to file as an RGB triple of floating point numbers in standard scientific notation, in the range 0.0 to 1.0.
SoField, SoSField, SoMFColor, SbColor
SoSFColor::SoSFColor | ( | ) |
Default constructor.
virtual SoSFColor::~SoSFColor | ( | ) | [virtual] |
Destructor.
static SoType SoSFColor::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoSField.
virtual SoType SoSFColor::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
const SbColor& SoSFColor::getValue | ( | ) | const [inline] |
Returns this field's value.
virtual size_t SoSFColor::getValueSize | ( | ) | const [inline, virtual] |
Get size of the value.
Reimplemented from SoField.
int SoSFColor::operator!= | ( | const SoSFColor & | f | ) | const [inline] |
Returns FALSE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
Sets this field to newValue.
int SoSFColor::operator== | ( | const SoSFColor & | f | ) | const |
Returns TRUE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
void SoSFColor::setHSVValue | ( | const float | hsv[3] | ) |
Convenience method for setting the value.
void SoSFColor::setHSVValue | ( | float | h, | |
float | s, | |||
float | v | |||
) |
Convenience method for setting the value.
void SoSFColor::setValue | ( | const float | rgb[3] | ) |
Convenience method for setting the value.
void SoSFColor::setValue | ( | float | r, | |
float | g, | |||
float | b | |||
) |
Convenience method for setting the value.
void SoSFColor::setValue | ( | const SbVec3f & | vec | ) |
Convenience method for setting the value.
void SoSFColor::setValue | ( | const SbColor & | newValue | ) |
Sets this field to newValue.