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
The SbName class stores strings by reference.
Definition: SbName.h:31
SbBool legalValuesSet
Definition: SoMFEnum.h:50
The SoMField class is the base class for fields which can contain multiple values.
Definition: SoMField.h:32
SbName * enumNames
Definition: SoMFEnum.h:53
The SoMFEnum class is a container for a set of enumerated values.
Definition: SoMFEnum.h:30
int numEnums
Definition: SoMFEnum.h:51
int * enumValues
Definition: SoMFEnum.h:52
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated for Coin by Doxygen 1.8.18.