Inventor/fields/SoSFEnum.h File Reference

#include <Inventor/SbString.h>
#include <Inventor/errors/SoDebugError.h>
#include <Inventor/fields/SoSubField.h>

Go to the source code of this file.

Classes

class  SoSFEnum
 Field containing an enumerated value. More...

Defines

#define SO__SF_ENUM_CHECK_DATA(vals, typeName, fieldName, containerMacroName)   {}
#define SO__SF_ENUM_SET_TYPE(fieldName, enumType, contMacroName, contData)
#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)

Define Documentation

#define SO__SF_ENUM_CHECK_DATA ( vals,
typeName,
fieldName,
containerMacroName   )     {}
#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((char *)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_ENGINE_SET_SF_ENUM_TYPE ( fieldName,
enumType   )     SO__SF_ENUM_SET_TYPE(fieldName,enumType,"ENGINE",inputData)
#define SO_NODE_SET_SF_ENUM_TYPE ( fieldName,
enumType   )     SO__SF_ENUM_SET_TYPE(fieldName,enumType,"NODE",fieldData)

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/