Open Inventor Reference
SoSFEnum.h File Reference

Go to the source code of this file.

Classes

class  SoSFEnum
 Field containing an enumerated value. More...
 
class  SoSFTypedEnum< T >
 End of macros. More...
 

Macros

#define SO__SF_ENUM_CHECK_DATA(vals, typeName, fieldName, containerMacroName)   { int _value_false= 0; while(_value_false) {} }
 Debugging macros (used by other macros in this file).
 
#define SO__SF_ENUM_SET_TYPE(fieldName, enumType, contMacroName, contData)
 This defines the specific type of enum expected by a particular SoSFEnum field.
 
#define SO_NODE_SET_SF_ENUM_TYPE(fieldName, enumType)    SO__SF_ENUM_SET_TYPE(fieldName,enumType,"NODE",fieldData)
 
#define SO_ENGINE_SET_SF_ENUM_TYPE(fieldName, enumType)    SO__SF_ENUM_SET_TYPE(fieldName,enumType,"ENGINE",inputData)
 

Macro Definition Documentation

◆ SO__SF_ENUM_CHECK_DATA

#define SO__SF_ENUM_CHECK_DATA (   vals,
  typeName,
  fieldName,
  containerMacroName 
)    { int _value_false= 0; while(_value_false) {} }

The container must have a field 'firstInstance'.

Definition at line 140 of file SoSFEnum.h.

◆ SO__SF_ENUM_SET_TYPE

#define SO__SF_ENUM_SET_TYPE (   fieldName,
  enumType,
  contMacroName,
  contData 
)
Value:
{ \
int _so_sf_enum_num; \
int *_so_sf_enum_vals; \
SbName *_so_sf_enum_names; \
contData->getEnumData(SO__QUOTE(enumType), \
_so_sf_enum_num, \
_so_sf_enum_vals, \
_so_sf_enum_names); \
SO__SF_ENUM_CHECK_DATA(_so_sf_enum_vals, \
SO__QUOTE(enumType), \
SO__QUOTE(fieldName), \
contMacroName); \
fieldName.setEnums(_so_sf_enum_num, \
_so_sf_enum_vals, \
_so_sf_enum_names); \
}
#define SO__QUOTE(str)
Handy macros.
Definition SoBasic.h:69
Character string stored in a hash table.
Definition SbString.h:264

Definition at line 150 of file SoSFEnum.h.

◆ SO_ENGINE_SET_SF_ENUM_TYPE

#define SO_ENGINE_SET_SF_ENUM_TYPE (   fieldName,
  enumType 
)     SO__SF_ENUM_SET_TYPE(fieldName,enumType,"ENGINE",inputData)

Definition at line 170 of file SoSFEnum.h.

◆ SO_NODE_SET_SF_ENUM_TYPE

#define SO_NODE_SET_SF_ENUM_TYPE (   fieldName,
  enumType 
)     SO__SF_ENUM_SET_TYPE(fieldName,enumType,"NODE",fieldData)

Definition at line 167 of file SoSFEnum.h.