![]() |
Coin3D is Free Software, published under the BSD 3-clause license. |
https://bitbucket.org/Coin3D/ http://www.kongsberg.com/kogt/ |
The SoSFColor class is a container for an SbColor value. More...
#include <Inventor/fields/SoSFColor.h>
Static Public Member Functions | |
static void * | createInstance (void) |
static SoType | getClassTypeId (void) |
static void | initClass (void) |
![]() | |
static void | initClass (void) |
static SoType | getClassTypeId (void) |
static void | atexit_cleanup (void) |
![]() | |
static void | initClass (void) |
static void | initClasses (void) |
static void | cleanupClass (void) |
static SoType | getClassTypeId (void) |
Protected Attributes | |
SbColor | value |
Additional Inherited Members | |
![]() | |
enum | FieldType { NORMAL_FIELD = 0 , EVENTIN_FIELD , EVENTOUT_FIELD , EXPOSED_FIELD } |
![]() | |
SoSField (void) | |
![]() | |
SoField (void) | |
void | valueChanged (SbBool resetdefault=TRUE) |
virtual void | evaluateConnection (void) const |
virtual SbBool | readConnection (SoInput *in) |
virtual void | writeConnection (SoOutput *out) const |
SbBool | isDestructing (void) const |
virtual SoNotRec | createNotRec (SoBase *cont) |
The SoSFColor class is a container for an SbColor value.
This field is used where nodes, engines or other field containers needs to store a single color value (i.e. Red + Green + Blue).
Fields of this type stores their value to file as a "R G B" triple component, where each color component value is between 0.0 and 1.0.
Copy value(s) from f into this field. f must be of the same type as this field.
Implements SoField.
Check for equal type and value(s).
Implements SoField.
Set color value from a vector with three elements. The three elements will be interpreted as red, green and blue, respectively.
void SoSFColor::setValue | ( | float | red, |
float | green, | ||
float | blue | ||
) |
Set color value from a floating point number array with three elements. The three elements will be interpreted as red, green and blue, respectively.
void SoSFColor::setHSVValue | ( | float | h, |
float | s, | ||
float | v | ||
) |
Set color value from h, s and v, where is "hue", s is "saturation" and v is "value".
Set color value from a floating point number array with three elements. The three elements will be interpreted as hue, saturation and value, respectively.