![]() |
Coin
4.0.10
Coin3D core library
|
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 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 | |
| void | allocValues (int num) override |
| void | copyValue (int to, int from) override |
| void | deleteAllValues (void) override |
| int | fieldSizeof (void) const override |
| virtual SbBool | findEnumName (int value, const SbName *&name) const |
| virtual SbBool | findEnumValue (const SbName &name, int &value) |
| void | setValuesPtr (void *ptr) override |
| void * | valuesPtr (void) override |
Protected Member Functions inherited from SoMField | |
| SoMField (void) | |
| SoNotRec | createNotRec (SoBase *container) override |
| 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 | |
| SbName * | enumNames |
| int * | enumValues |
| SbBool | legalValuesSet |
| int | numEnums |
| int * | 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 SoMFEnum class is a container for a set of enumerated values.
This field is used where nodes, engines or other field containers need 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.
Copy value(s) from f into this field. f must be of the same type as this field.
Implements SoField.
|
overrideprotectedvirtual |
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.
Set the enumeration name which matches the given enumeration value.
Returns TRUE if value is a valid enumeration value, otherwise FALSE.
Return in val the enumeration value which matches the given enumeration name.
Returns TRUE if name is a valid enumeration string, otherwise FALSE.
This static method returns the SoType object associated with objects of this class.
| int SoMFEnum::getNumEnums | ( | void | ) | const |
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 value at idx to the enumeration value represented by name.
Makes a set of num enumeration names map to vals.
Set this field to contain a single value by specifying an enumeration string.
|
protected |
Array of enumeration names. Maps 1-to-1 with the enumValues.
|
protected |
Array of enumeration values. Maps 1-to-1 with the enumNames.
|
protected |
Is TRUE if a set of enum name-to-value mappings has been set.
|
protected |
Number of enumeration mappings.