Field containing an RGB color.
More...
#include <Inventor/fields/SoSFColor.h>
List of all members.
Public Member Functions |
void | setValue (const SbVec3f &vec) |
| Convenience methods for setting the value.
|
void | setValue (float r, float g, float b) |
| Set RGB/HSV value from 3 floats.
|
void | setHSVValue (float h, float s, float v) |
void | setValue (const float rgb[3]) |
| Convenience methods for setting the value.
|
void | setHSVValue (const float hsv[3]) |
| Convenience methods for setting the value.
|
Static Public Member Functions |
static void | initClass () |
Detailed Description
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.
- See Also
- SoField, SoSField, SoMFColor, SbColor
Definition at line 82 of file SoSFColor.h.
Member Function Documentation
static void SoSFColor::initClass |
( |
| ) |
[static] |
void SoSFColor::setHSVValue |
( |
const float |
hsv[3] | ) |
|
void SoSFColor::setHSVValue |
( |
float |
h, |
|
|
float |
s, |
|
|
float |
v |
|
) |
| |
void SoSFColor::setValue |
( |
const float |
rgb[3] | ) |
|
void SoSFColor::setValue |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
| |
void SoSFColor::setValue |
( |
const SbVec3f & |
vec | ) |
|
The documentation for this class was generated from the following file:
- MeVis/ThirdParty/Sources/Inventor/inventor/lib/database/include/Inventor/fields/SoSFColor.h