1 #ifndef COIN_SOMFENUM_H 2 #define COIN_SOMFENUM_H 36 #include <Inventor/fields/SoMField.h> 37 #include <Inventor/fields/SoSubField.h> 45 static void initClass(
void);
47 void setValue(
const SbName name);
48 void set1Value(
const int idx,
const SbName name);
49 void setEnums(
const int num,
const int *
const values,
50 const SbName *
const names);
52 int getNumEnums(
void)
const;
53 int getEnum(
const int idx,
SbName & name)
const;
56 virtual SbBool findEnumValue(
const SbName & name,
int & value);
57 virtual SbBool findEnumName(
int value,
const SbName * & name)
const;
67 #include <Inventor/fields/SoSFEnum.h> 69 #define SO_ENGINE_SET_MF_ENUM_TYPE(_fieldname_, _enumtype_) \ 70 PRIVATE_SOENUM_SET_TYPE(_fieldname_, _enumtype_, inputdata) 72 #define SO_NODE_SET_MF_ENUM_TYPE(_fieldname_, _enumtype_) \ 73 PRIVATE_SOENUM_SET_TYPE(_fieldname_, _enumtype_, fieldData) 75 #endif // !COIN_SOMFENUM_H SbBool legalValuesSet
Definition: SoMFEnum.h:59
int * enumValues
Definition: SoMFEnum.h:61
The SoMField class is the base class for fields which can contain multiple values.
Definition: SoMField.h:41
The SoMFEnum class is a container for a set of enumerated values.
Definition: SoMFEnum.h:39
SbName * enumNames
Definition: SoMFEnum.h:62
int numEnums
Definition: SoMFEnum.h:60
The SbName class stores strings by reference.
Definition: SbName.h:40