![]() |
Coin3D is Free Software, published under the BSD 3-clause license. |
https://coin3d.github.io https://www.kongsberg.com/en/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 need 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.
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Creates a new instance of the class type corresponding to the SoType object.
This static method returns the SoType object associated with objects of this class.
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.
Internal method called upon initialization of the library (from SoDB::init()) to set up the type system.
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.