1 #ifndef COIN_SOMFENUM_H 2 #define COIN_SOMFENUM_H 27 #include <Inventor/fields/SoMField.h> 28 #include <Inventor/fields/SoSubField.h> 36 static void initClass(
void);
38 void setValue(
const SbName name);
39 void set1Value(
const int idx,
const SbName name);
40 void setEnums(
const int num,
const int *
const values,
41 const SbName *
const names);
43 int getNumEnums(
void)
const;
44 int getEnum(
const int idx,
SbName & name)
const;
47 virtual SbBool findEnumValue(
const SbName & name,
int & value);
48 virtual SbBool findEnumName(
int value,
const SbName * & name)
const;
58 #include <Inventor/fields/SoSFEnum.h> 60 #define SO_ENGINE_SET_MF_ENUM_TYPE(_fieldname_, _enumtype_) \ 61 PRIVATE_SOENUM_SET_TYPE(_fieldname_, _enumtype_, inputdata) 63 #define SO_NODE_SET_MF_ENUM_TYPE(_fieldname_, _enumtype_) \ 64 PRIVATE_SOENUM_SET_TYPE(_fieldname_, _enumtype_, fieldData) 66 #endif // !COIN_SOMFENUM_H SbBool legalValuesSet
Definition: SoMFEnum.h:50
int * enumValues
Definition: SoMFEnum.h:52
The SoMField class is the base class for fields which can contain multiple values....
Definition: SoMField.h:32
The SoMFEnum class is a container for a set of enumerated values.This field is used where nodes,...
Definition: SoMFEnum.h:30
SbName * enumNames
Definition: SoMFEnum.h:53
int numEnums
Definition: SoMFEnum.h:51
The SbName class stores strings by reference.The class is used by Coin for storing keywords,...
Definition: SbName.h:31