|
http://www.sim.no/ http://www.coin3d.org/ |
The SoSFColorRGBA class is a container for an SbColor4f value. More...
#include <Inventor/fields/SoSFColorRGBA.h>
Static Public Member Functions | |
| static void * | createInstance (void) |
| static SoType | getClassTypeId (void) |
| static void | initClass (void) |
Static Public Member Functions inherited from SoSField | |
| static void | initClass (void) |
| static SoType | getClassTypeId (void) |
| static void | atexit_cleanup (void) |
Static Public Member Functions inherited from SoField | |
| static void | initClass (void) |
| static void | initClasses (void) |
| static void | cleanupClass (void) |
| static SoType | getClassTypeId (void) |
Protected Attributes | |
| SbColor4f | value |
Additional Inherited Members | |
Public Types inherited from SoField | |
| enum | FieldType { NORMAL_FIELD = 0 , EVENTIN_FIELD , EVENTOUT_FIELD , EXPOSED_FIELD } |
Protected Member Functions inherited from SoSField | |
| SoSField (void) | |
Protected Member Functions inherited from SoField | |
| 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 |
The SoSFColorRGBA class is a container for an SbColor4f value.
This field is used where nodes, engines or other field containers needs to store a single color value (i.e. Red + Green + Blue + Alpha).
Fields of this type stores their value to file as a "R G B A" quadruple 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 SoSFColorRGBA::setValue | ( | float | red, |
| float | green, | ||
| float | blue, | ||
| float | alpha ) |
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 SoSFColorRGBA::setHSVValue | ( | float | h, |
| float | s, | ||
| float | v, | ||
| float | a ) |
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.
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated for Coin by Doxygen 1.10.0.