|
http://www.sim.no/ http://www.coin3d.org/ |
The SoMFEnum class is a container for a set of enumerated values. More...
#include <Inventor/fields/SoMFEnum.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 SoType | getClassTypeId (void) |
| static void | atexit_cleanup (void) |
| static void | initClass (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 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) |
| virtual SbBool | findEnumValue (const SbName &name, int &value) |
| virtual SbBool | findEnumName (int value, const SbName *&name) const |
Protected Member Functions inherited from SoMField | |
| SoMField (void) | |
| virtual void | makeRoom (int newnum) |
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 |
Protected Attributes | |
| int * | values |
| SbBool | legalValuesSet |
| int | numEnums |
| int * | enumValues |
| SbName * | enumNames |
Protected Attributes inherited from SoMField | |
| int | num |
| int | maxNum |
| SbBool | userDataIsUsed |
Additional Inherited Members | |
Public Types inherited from SoField | |
| enum | FieldType { NORMAL_FIELD = 0 , EVENTIN_FIELD , EVENTOUT_FIELD , EXPOSED_FIELD } |
The SoMFEnum class is a container for a set of enumerated values.
This field is used where nodes, engines or other field containers needs to store values constrained to be from an enumerated set.
A field of this type stores its values to file as the symbolic names, rather than the actual integer values.
Returns the type identification instance which uniquely identifies the Coin field class the object belongs to.
Implements SoField.
Reimplemented in SoMFBitMask.
Copy value(s) from f into this field. f must be of the same type as this field.
Implements SoField.
Reimplemented in SoMFBitMask.
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.
Set this field to contain a single value by specifying an enumeration string.
Set the value at idx to the enumeration value represented by name.
Makes a set of num enumeration names map to vals.
| int SoMFEnum::getNumEnums | ( | void | ) | const |
Return in val the enumeration value which matches the given enumeration name.
Returns TRUE if name is a valid enumeration string, otherwise FALSE.
Set the enumeration name which matches the given enumeration value.
Returns TRUE if value is a valid enumeration value, otherwise FALSE.
|
protected |
Is TRUE if a set of enum name-to-value mappings has been set.
|
protected |
Number of enumeration mappings.
|
protected |
Array of enumeration values. Maps 1-to-1 with the enumNames.
|
protected |
Array of enumeration names. Maps 1-to-1 with the enumValues.
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated for Coin by Doxygen 1.10.0.