Field containing an RGBA color. More...
#include <Inventor/fields/SoSFColorRGBA.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
const SoSFColorRGBA & | operator= (const SoSFColorRGBA &f) |
SoSFColorRGBA () | |
virtual | ~SoSFColorRGBA () |
const SbColorRGBA & | getValue () const |
void | setValue (const SbColorRGBA &newValue) |
const SbColorRGBA & | operator= (const SbColorRGBA &newValue) |
int | operator== (const SoSFColorRGBA &f) const |
int | operator!= (const SoSFColorRGBA &f) const |
virtual size_t | getValueSize () const |
void | setValue (const SbVec4f &vec) |
void | setValue (float r, float g, float b, float a) |
void | setValue (const float rgba[4]) |
void | setHSVAValue (float h, float s, float v, float a) |
void | setHSVAValue (const float hsva[4]) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Field containing an RGBA color.
A single-value field containing an SbColorRGBA. Values are set in RGBA (red, green, blue, alpha) color space.
SoSFColorRGBAs are written to file as an RGBA quadruple of floating point numbers in standard scientific notation, in the range 0.0 to 1.0.
SoField, SoSField, SoMFColorRGBA, SbColorRGBA
SoSFColorRGBA::SoSFColorRGBA | ( | ) |
Default constructor.
virtual SoSFColorRGBA::~SoSFColorRGBA | ( | ) | [virtual] |
Destructor.
static SoType SoSFColorRGBA::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoSField.
virtual SoType SoSFColorRGBA::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
const SbColorRGBA& SoSFColorRGBA::getValue | ( | ) | const [inline] |
Returns this field's value.
virtual size_t SoSFColorRGBA::getValueSize | ( | ) | const [inline, virtual] |
Get size of the value.
Reimplemented from SoField.
int SoSFColorRGBA::operator!= | ( | const SoSFColorRGBA & | f | ) | const [inline] |
Returns FALSE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
const SbColorRGBA& SoSFColorRGBA::operator= | ( | const SbColorRGBA & | newValue | ) | [inline] |
Sets this field to newValue.
const SoSFColorRGBA& SoSFColorRGBA::operator= | ( | const SoSFColorRGBA & | f | ) |
Copy from another field of same type.
int SoSFColorRGBA::operator== | ( | const SoSFColorRGBA & | f | ) | const |
Returns TRUE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
void SoSFColorRGBA::setHSVAValue | ( | const float | hsva[4] | ) |
Convenience method for setting the value.
void SoSFColorRGBA::setHSVAValue | ( | float | h, | |
float | s, | |||
float | v, | |||
float | a | |||
) |
Convenience method for setting the value.
void SoSFColorRGBA::setValue | ( | const float | rgba[4] | ) |
Convenience method for setting the value.
void SoSFColorRGBA::setValue | ( | float | r, | |
float | g, | |||
float | b, | |||
float | a | |||
) |
Convenience method for setting the value.
void SoSFColorRGBA::setValue | ( | const SbVec4f & | vec | ) |
Convenience method for setting the value.
void SoSFColorRGBA::setValue | ( | const SbColorRGBA & | newValue | ) |
Sets this field to newValue.