![]() |
http://www.sim.no http://www.coin3d.org |
The SoMFColor class is a container for SbColor values. More...
#include <Inventor/fields/SoMFColor.h>
Static Public Member Functions | |
static void * | createInstance (void) |
static SoType | getClassTypeId (void) |
static void | initClass (void) |
![]() | |
static SoType | getClassTypeId (void) |
static void | initClass (void) |
![]() | |
static void | initClass (void) |
static void | initClasses (void) |
static SoType | getClassTypeId (void) |
Protected Member Functions | |
virtual void | deleteAllValues (void) |
virtual void | copyValue (int to, int from) |
virtual int | fieldSizeof (void) const |
virtual void * | valuesPtr (void) |
virtual void | setValuesPtr (void *ptr) |
virtual void | allocValues (int num) |
![]() | |
SoMField (void) | |
virtual void | makeRoom (int newnum) |
![]() | |
SoField (void) | |
void | valueChanged (SbBool resetdefault=1) |
virtual void | evaluateConnection (void) const |
virtual SbBool | readConnection (SoInput *in) |
virtual void | writeConnection (SoOutput *out) const |
SbBool | isDestructing (void) const |
Protected Attributes | |
SbColor * | values |
![]() | |
int | num |
int | maxNum |
SbBool | userDataIsUsed |
Additional Inherited Members | |
![]() | |
enum | FieldType { NORMAL_FIELD = 0 , EVENTIN_FIELD , EVENTOUT_FIELD , EXPOSED_FIELD } |
The SoMFColor class is a container for SbColor values.
This field is used where nodes, engines or other field containers needs 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.
Check for equal type and value(s).
Implements SoField.
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Implements SoMField.
|
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 contructors where necessary.
Implements SoMField.
Returns a pointer to the values array.
Referenced by SoBaseColor::doAction(), SoMaterial::doAction(), and SoVRMLColor::doAction().
Set num RGB color values, starting at index start.
References SoMField::makeRoom(), SoMField::maxNum, SoMField::num, and SoField::valueChanged().
Set num HSV color values, starting at index start.
References SoMField::makeRoom(), SoMField::maxNum, SoMField::num, setHSVValue(), and SoField::valueChanged().
Set the color array to a single value. vec is interpreted as a three element vector with the red, green and blue components, respectively.
Set the color array to a single value. r, g and b are the red, green and blue components, respectively.
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. h, s and v are the hue, saturation and value components, respectively.
Referenced by setHSVValue(), and setHSVValues().
Set the color array to a single value. hsv is a three element vector with the hue, saturation and value components, respectively.
References setHSVValue().
Set the color at idx. vec is interpreted as a three element vector with the red, green and blue components, respectively.
Set the color at idx. r, g and b is the red, green and blue 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. h, s and v is the hue, saturation and value components, respectively.
Referenced by set1HSVValue().
Set the color at idx. hsv is a three element vector with the hue, saturation and value components, respectively.
References set1HSVValue().
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Wed Jul 19 2023 for Coin by Doxygen. 1.9.8