Coin
4.0.3
Coin3D core library
|
The SoMFColorRGBA class is a container for SbColor4f values. More...
#include <Inventor/fields/SoMFColorRGBA.h>
Static Public Member Functions | |
static void * | createInstance (void) |
static SoType | getClassTypeId (void) |
static void | initClass (void) |
Static Public Member Functions inherited from SoMField | |
static void | atexit_cleanup (void) |
static SoType | getClassTypeId (void) |
static void | initClass (void) |
Static Public Member Functions inherited from SoField | |
static void | cleanupClass (void) |
static SoType | getClassTypeId (void) |
static void | initClass (void) |
static void | initClasses (void) |
Protected Member Functions | |
virtual void | allocValues (int num) |
virtual void | copyValue (int to, int from) |
virtual void | deleteAllValues (void) |
virtual int | fieldSizeof (void) const |
virtual void | setValuesPtr (void *ptr) |
virtual void * | valuesPtr (void) |
Protected Member Functions inherited from SoMField | |
SoMField (void) | |
virtual SoNotRec | createNotRec (SoBase *container) |
virtual void | makeRoom (int newnum) |
void | setChangedIndex (const int chgidx) |
void | setChangedIndices (const int chgidx=-1, const int numchgind=0) |
Protected Member Functions inherited from SoField | |
SoField (void) | |
virtual void | evaluateConnection (void) const |
SbBool | isDestructing (void) const |
virtual SbBool | readConnection (SoInput *in) |
void | valueChanged (SbBool resetdefault=TRUE) |
virtual void | writeConnection (SoOutput *out) const |
Protected Attributes | |
SbColor4f * | values |
Protected Attributes inherited from SoMField | |
int | maxNum |
int | num |
SbBool | userDataIsUsed |
Additional Inherited Members | |
Public Types inherited from SoField | |
enum | FieldType { NORMAL_FIELD = 0 , EVENTIN_FIELD , EVENTOUT_FIELD , EXPOSED_FIELD } |
The SoMFColorRGBA class is a container for SbColor4f values.
This field is used where nodes, engines or other field containers need to store multiple color values (i.e. "Red Green Blue" triplets).
This field supports application data sharing through a setValuesPointer() method. See SoMField documentation for information on how to use this function.
Copy value(s) from f into this field. f must be of the same type as this field.
Implements SoField.
|
protectedvirtual |
This method is used for moving values around internally within a multivalue field. It needs to be overridden in each field so it automatically takes care of running copy constructors where necessary.
Implements SoMField.
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 API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Implements SoMField.
This static method returns the SoType object associated with objects of this class.
Returns a pointer to the values array.
Internal method called upon initialization of the library (from SoDB::init()) to set up the type system.
Check for equal type and value(s).
Implements SoField.
Set the color at idx. hsv is a three element vector with the hue, saturation and value components, respectively.
void SoMFColorRGBA::set1HSVValue | ( | int | idx, |
float | h, | ||
float | s, | ||
float | v, | ||
float | a ) |
Set the color at idx. h, s and v is the hue, saturation and value components, respectively.
Set the color at idx. rgb is interpreted as a three element vector with the red, green and blue components, respectively.
Set the color at idx. vec is interpreted as a three element vector with the red, green and blue components, respectively.
void SoMFColorRGBA::set1Value | ( | int | idx, |
float | r, | ||
float | g, | ||
float | b, | ||
float | a ) |
Set the color at idx. r, g and b is the red, green and blue components, respectively.
Set the color array to a single value. hsv is a three element vector with the hue, saturation and value components, respectively.
void SoMFColorRGBA::setHSVValue | ( | float | h, |
float | s, | ||
float | v, | ||
float | a ) |
Set the color array to a single value. h, s and v are the hue, saturation and value components, respectively.
Set num HSV color values, starting at index start.
Set the color array to a single value. rgb is a three element vector with the red, green and blue components, respectively.
Set the color array to a single value. vec is interpreted as a three element vector with the red, green and blue components, respectively.
void SoMFColorRGBA::setValue | ( | float | r, |
float | g, | ||
float | b, | ||
float | a ) |
Set the color array to a single value. r, g and b are the red, green and blue components, respectively.
Set num RGB color values, starting at index start.