#include "SIM_API.h"#include "SIM_Options.h"Go to the source code of this file.
Classes | |
| class | SIM_OptionsUser |
Defines | |
| #define | GET_DATA_FUNC_I(DataName, FuncName) |
| #define | GET_DATA_FUNC_E(DataName, FuncName, EnumType) |
| #define | GET_DATA_FUNC_B(DataName, FuncName) |
| #define | GET_DATA_FUNC_F(DataName, FuncName) |
| #define | _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, BaseType, Accessor) |
| #define | GET_DATA_FUNC_V2(DataName, FuncName) _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Vector2, V2); |
| #define | GET_DATA_FUNC_V2D(DataName, FuncName) _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Vector2D, V2); |
| #define | GET_DATA_FUNC_UV(DataName, FuncName) _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Vector2, V2); |
| #define | GET_DATA_FUNC_V3(DataName, FuncName) _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Vector3, V3); |
| #define | GET_DATA_FUNC_V3D(DataName, FuncName) _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Vector3D, V3); |
| #define | GET_DATA_FUNC_UVW(DataName, FuncName) _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Vector3, V3); |
| #define | GET_DATA_FUNC_V4(DataName, FuncName) _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Vector4, V4); |
| #define | GET_DATA_FUNC_V4D(DataName, FuncName) _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Vector4D, V4); |
| #define | GET_DATA_FUNC_Q(DataName, FuncName) _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Quaternion, Q); |
| #define | GET_DATA_FUNC_QD(DataName, FuncName) _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_QuaternionD, Q); |
| #define | GET_DATA_FUNC_M3(DataName, FuncName) _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Matrix3, M3); |
| #define | GET_DATA_FUNC_M4(DataName, FuncName) _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Matrix4, M4); |
| #define | GET_DATA_FUNC_S(DataName, FuncName) |
| #define | _BUILD_SIM_OPTION_GUIDE_GETTERS(DataName, FuncName, Default, BaseType, Accessor) |
| #define | GET_GUIDE_FUNC_I(DataName, FuncName, Default) |
| #define | GET_GUIDE_FUNC_E(DataName, FuncName, EnumType, Default) |
| #define | GET_GUIDE_FUNC_B(DataName, FuncName, Default) |
| #define | GET_GUIDE_FUNC_F(DataName, FuncName, Default) |
| #define | GET_GUIDE_FUNC_V2(DataName, FuncName, Default) _BUILD_SIM_OPTION_GUIDE_GETTERS(DataName, FuncName, Default, UT_Vector2, V2) |
| #define | GET_GUIDE_FUNC_V3(DataName, FuncName, Default) _BUILD_SIM_OPTION_GUIDE_GETTERS(DataName, FuncName, Default, UT_Vector3, V3) |
| #define | GET_GUIDE_FUNC_V4(DataName, FuncName, Default) _BUILD_SIM_OPTION_GUIDE_GETTERS(DataName, FuncName, Default, UT_Vector4, V4) |
| #define | GET_GUIDE_FUNC_S(DataName, FuncName, Default) |
| #define | SET_DATA_FUNC_I(DataName, FuncName) |
| #define | SET_DATA_FUNC_E(DataName, FuncName, EnumType) |
| #define | SET_DATA_FUNC_B(DataName, FuncName) |
| #define | SET_DATA_FUNC_F(DataName, FuncName) |
| #define | SET_DATA_FUNC_V2(DataName, FuncName) |
| #define | SET_DATA_FUNC_UV(DataName, FuncName) |
| #define | SET_DATA_FUNC_V3(DataName, FuncName) |
| #define | SET_DATA_FUNC_UVW(DataName, FuncName) |
| #define | SET_DATA_FUNC_V4(DataName, FuncName) |
| #define | SET_DATA_FUNC_Q(DataName, FuncName) |
| #define | SET_DATA_FUNC_M3(DataName, FuncName) |
| #define | SET_DATA_FUNC_M4(DataName, FuncName) |
| #define | SET_DATA_FUNC_S(DataName, FuncName) |
| #define | GETSET_DATA_FUNCS_I(DataName, FuncName) |
| #define | GETSET_DATA_FUNCS_E(DataName, FuncName, EnumType) |
| #define | GETSET_DATA_FUNCS_B(DataName, FuncName) |
| #define | GETSET_DATA_FUNCS_F(DataName, FuncName) |
| #define | GETSET_DATA_FUNCS_V2(DataName, FuncName) |
| #define | GETSET_DATA_FUNCS_UV(DataName, FuncName) |
| #define | GETSET_DATA_FUNCS_V3(DataName, FuncName) |
| #define | GETSET_DATA_FUNCS_UVW(DataName, FuncName) |
| #define | GETSET_DATA_FUNCS_V4(DataName, FuncName) |
| #define | GETSET_DATA_FUNCS_Q(DataName, FuncName) |
| #define | GETSET_DATA_FUNCS_M3(DataName, FuncName) |
| #define | GETSET_DATA_FUNCS_M4(DataName, FuncName) |
| #define | GETSET_DATA_FUNCS_S(DataName, FuncName) |
| #define _BUILD_SIM_OPTION_GETTERS | ( | DataName, | |||
| FuncName, | |||||
| BaseType, | |||||
| Accessor | ) |
Value:
const BaseType##D get##FuncName##D() const \ { return getOptions().getOption##Accessor(DataName); } \ const BaseType##F get##FuncName##F() const \ { return getOptions().getOption##Accessor(DataName); } \ const BaseType##F get##FuncName() const \ { return getOptions().getOption##Accessor(DataName); }
Definition at line 61 of file SIM_OptionsUser.h.
| #define _BUILD_SIM_OPTION_GUIDE_GETTERS | ( | DataName, | |||
| FuncName, | |||||
| Default, | |||||
| BaseType, | |||||
| Accessor | ) |
Value:
const BaseType##D get##FuncName##D(const SIM_Options &options) const \ { return options.hasOption(DataName) \ ? options.getOption##Accessor(DataName) \ : BaseType##D Default; \ } \ const BaseType##F get##FuncName##F(const SIM_Options &options) const \ { return options.hasOption(DataName) \ ? options.getOption##Accessor(DataName) \ : BaseType##D Default; \ } \ const BaseType##F get##FuncName(const SIM_Options &options) const \ { return options.hasOption(DataName) \ ? options.getOption##Accessor(DataName) \ : BaseType##D Default; \ }
Definition at line 97 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_B | ( | DataName, | |||
| FuncName | ) |
Value:
bool get##FuncName() const \ { return getOptions().getOptionB(DataName); }
Definition at line 54 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_E | ( | DataName, | |||
| FuncName, | |||||
| EnumType | ) |
Value:
EnumType get##FuncName() const \ { return static_cast<EnumType> \ (getOptions().getOptionI(DataName)); }
Definition at line 50 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_F | ( | DataName, | |||
| FuncName | ) |
Value:
fpreal64 get##FuncName() const \ { return getOptions().getOptionF(DataName); }
Definition at line 57 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_I | ( | DataName, | |||
| FuncName | ) |
Value:
int64 get##FuncName() const \ { return getOptions().getOptionI(DataName); }
Definition at line 47 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_M3 | ( | DataName, | |||
| FuncName | ) | _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Matrix3, M3); |
Definition at line 89 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_M4 | ( | DataName, | |||
| FuncName | ) | _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Matrix4, M4); |
Definition at line 91 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_Q | ( | DataName, | |||
| FuncName | ) | _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Quaternion, Q); |
Definition at line 85 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_QD | ( | DataName, | |||
| FuncName | ) | _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_QuaternionD, Q); |
Definition at line 87 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_S | ( | DataName, | |||
| FuncName | ) |
Value:
Definition at line 93 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_UV | ( | DataName, | |||
| FuncName | ) | _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Vector2, V2); |
Definition at line 73 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_UVW | ( | DataName, | |||
| FuncName | ) | _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Vector3, V3); |
Definition at line 79 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_V2 | ( | DataName, | |||
| FuncName | ) | _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Vector2, V2); |
Definition at line 69 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_V2D | ( | DataName, | |||
| FuncName | ) | _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Vector2D, V2); |
Definition at line 71 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_V3 | ( | DataName, | |||
| FuncName | ) | _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Vector3, V3); |
Definition at line 75 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_V3D | ( | DataName, | |||
| FuncName | ) | _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Vector3D, V3); |
Definition at line 77 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_V4 | ( | DataName, | |||
| FuncName | ) | _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Vector4, V4); |
Definition at line 81 of file SIM_OptionsUser.h.
| #define GET_DATA_FUNC_V4D | ( | DataName, | |||
| FuncName | ) | _BUILD_SIM_OPTION_GETTERS(DataName, FuncName, UT_Vector4D, V4); |
Definition at line 83 of file SIM_OptionsUser.h.
| #define GET_GUIDE_FUNC_B | ( | DataName, | |||
| FuncName, | |||||
| Default | ) |
Value:
bool get##FuncName(const SIM_Options &options) const \ { return options.hasOption(DataName) \ ? options.getOptionB(DataName) \ : Default; \ }
Definition at line 126 of file SIM_OptionsUser.h.
| #define GET_GUIDE_FUNC_E | ( | DataName, | |||
| FuncName, | |||||
| EnumType, | |||||
| Default | ) |
Value:
EnumType get##FuncName(const SIM_Options &options) const \ { return static_cast<EnumType> (options.hasOption(DataName) \ ? options.getOptionI(DataName) \ : Default); \ }
Definition at line 120 of file SIM_OptionsUser.h.
| #define GET_GUIDE_FUNC_F | ( | DataName, | |||
| FuncName, | |||||
| Default | ) |
Value:
fpreal64 get##FuncName(const SIM_Options &options) const \ { return options.hasOption(DataName) \ ? options.getOptionF(DataName) \ : Default; \ }
Definition at line 132 of file SIM_OptionsUser.h.
| #define GET_GUIDE_FUNC_I | ( | DataName, | |||
| FuncName, | |||||
| Default | ) |
Value:
int64 get##FuncName(const SIM_Options &options) const \ { return options.hasOption(DataName) \ ? options.getOptionI(DataName) \ : Default; \ }
Definition at line 114 of file SIM_OptionsUser.h.
| #define GET_GUIDE_FUNC_S | ( | DataName, | |||
| FuncName, | |||||
| Default | ) |
Value:
void get##FuncName(UT_String &value, const SIM_Options &options) const \ { if (options.hasOption(DataName)) \ options.getOptionS(DataName, value); \ else \ value = Default; \ }
Definition at line 145 of file SIM_OptionsUser.h.
| #define GET_GUIDE_FUNC_V2 | ( | DataName, | |||
| FuncName, | |||||
| Default | ) | _BUILD_SIM_OPTION_GUIDE_GETTERS(DataName, FuncName, Default, UT_Vector2, V2) |
Definition at line 138 of file SIM_OptionsUser.h.
| #define GET_GUIDE_FUNC_V3 | ( | DataName, | |||
| FuncName, | |||||
| Default | ) | _BUILD_SIM_OPTION_GUIDE_GETTERS(DataName, FuncName, Default, UT_Vector3, V3) |
Definition at line 140 of file SIM_OptionsUser.h.
| #define GET_GUIDE_FUNC_V4 | ( | DataName, | |||
| FuncName, | |||||
| Default | ) | _BUILD_SIM_OPTION_GUIDE_GETTERS(DataName, FuncName, Default, UT_Vector4, V4) |
Definition at line 142 of file SIM_OptionsUser.h.
| #define GETSET_DATA_FUNCS_B | ( | DataName, | |||
| FuncName | ) |
Value:
GET_DATA_FUNC_B(DataName, FuncName) \ SET_DATA_FUNC_B(DataName, FuncName)
Definition at line 216 of file SIM_OptionsUser.h.
| #define GETSET_DATA_FUNCS_E | ( | DataName, | |||
| FuncName, | |||||
| EnumType | ) |
Value:
GET_DATA_FUNC_E(DataName, FuncName, EnumType) \ SET_DATA_FUNC_E(DataName, FuncName, EnumType)
Definition at line 213 of file SIM_OptionsUser.h.
| #define GETSET_DATA_FUNCS_F | ( | DataName, | |||
| FuncName | ) |
Value:
GET_DATA_FUNC_F(DataName, FuncName) \ SET_DATA_FUNC_F(DataName, FuncName)
Definition at line 219 of file SIM_OptionsUser.h.
| #define GETSET_DATA_FUNCS_I | ( | DataName, | |||
| FuncName | ) |
Value:
GET_DATA_FUNC_I(DataName, FuncName) \ SET_DATA_FUNC_I(DataName, FuncName)
Definition at line 210 of file SIM_OptionsUser.h.
| #define GETSET_DATA_FUNCS_M3 | ( | DataName, | |||
| FuncName | ) |
Value:
GET_DATA_FUNC_M3(DataName, FuncName) \ SET_DATA_FUNC_M3(DataName, FuncName)
Definition at line 240 of file SIM_OptionsUser.h.
| #define GETSET_DATA_FUNCS_M4 | ( | DataName, | |||
| FuncName | ) |
Value:
GET_DATA_FUNC_M4(DataName, FuncName) \ SET_DATA_FUNC_M4(DataName, FuncName)
Definition at line 243 of file SIM_OptionsUser.h.
| #define GETSET_DATA_FUNCS_Q | ( | DataName, | |||
| FuncName | ) |
Value:
GET_DATA_FUNC_Q(DataName, FuncName) \ SET_DATA_FUNC_Q(DataName, FuncName)
Definition at line 237 of file SIM_OptionsUser.h.
| #define GETSET_DATA_FUNCS_S | ( | DataName, | |||
| FuncName | ) |
Value:
GET_DATA_FUNC_S(DataName, FuncName) \ SET_DATA_FUNC_S(DataName, FuncName)
Definition at line 246 of file SIM_OptionsUser.h.
| #define GETSET_DATA_FUNCS_UV | ( | DataName, | |||
| FuncName | ) |
Value:
GET_DATA_FUNC_UV(DataName, FuncName) \ SET_DATA_FUNC_UV(DataName, FuncName)
Definition at line 225 of file SIM_OptionsUser.h.
| #define GETSET_DATA_FUNCS_UVW | ( | DataName, | |||
| FuncName | ) |
Value:
GET_DATA_FUNC_UVW(DataName, FuncName) \ SET_DATA_FUNC_UVW(DataName, FuncName)
Definition at line 231 of file SIM_OptionsUser.h.
| #define GETSET_DATA_FUNCS_V2 | ( | DataName, | |||
| FuncName | ) |
Value:
GET_DATA_FUNC_V2(DataName, FuncName) \ SET_DATA_FUNC_V2(DataName, FuncName)
Definition at line 222 of file SIM_OptionsUser.h.
| #define GETSET_DATA_FUNCS_V3 | ( | DataName, | |||
| FuncName | ) |
Value:
GET_DATA_FUNC_V3(DataName, FuncName) \ SET_DATA_FUNC_V3(DataName, FuncName)
Definition at line 228 of file SIM_OptionsUser.h.
| #define GETSET_DATA_FUNCS_V4 | ( | DataName, | |||
| FuncName | ) |
Value:
GET_DATA_FUNC_V4(DataName, FuncName) \ SET_DATA_FUNC_V4(DataName, FuncName)
Definition at line 234 of file SIM_OptionsUser.h.
| #define SET_DATA_FUNC_B | ( | DataName, | |||
| FuncName | ) |
Value:
Definition at line 160 of file SIM_OptionsUser.h.
| #define SET_DATA_FUNC_E | ( | DataName, | |||
| FuncName, | |||||
| EnumType | ) |
Value:
void set##FuncName(const EnumType value) \ { getOptions().setOptionI(DataName, \ static_cast<int>(value)); }
Definition at line 156 of file SIM_OptionsUser.h.
| #define SET_DATA_FUNC_F | ( | DataName, | |||
| FuncName | ) |
Value:
Definition at line 163 of file SIM_OptionsUser.h.
| #define SET_DATA_FUNC_I | ( | DataName, | |||
| FuncName | ) |
Value:
Definition at line 153 of file SIM_OptionsUser.h.
| #define SET_DATA_FUNC_M3 | ( | DataName, | |||
| FuncName | ) |
Value:
void set##FuncName(const UT_Matrix3F &value) \ { getOptions().setOptionM3(DataName, value); } \ void set##FuncName(const UT_Matrix3D &value) \ { getOptions().setOptionM3(DataName, value); }
Definition at line 196 of file SIM_OptionsUser.h.
| #define SET_DATA_FUNC_M4 | ( | DataName, | |||
| FuncName | ) |
Value:
void set##FuncName(const UT_Matrix4F &value) \ { getOptions().setOptionM4(DataName, value); } \ void set##FuncName(const UT_Matrix4D &value) \ { getOptions().setOptionM4(DataName, value); }
Definition at line 201 of file SIM_OptionsUser.h.
| #define SET_DATA_FUNC_Q | ( | DataName, | |||
| FuncName | ) |
Value:
void set##FuncName(const UT_QuaternionF &value) \ { getOptions().setOptionQ(DataName, value); } \ void set##FuncName(const UT_QuaternionD &value) \ { getOptions().setOptionQ(DataName, value); }
Definition at line 191 of file SIM_OptionsUser.h.
| #define SET_DATA_FUNC_S | ( | DataName, | |||
| FuncName | ) |
Value:
Definition at line 206 of file SIM_OptionsUser.h.
| #define SET_DATA_FUNC_UV | ( | DataName, | |||
| FuncName | ) |
Value:
void set##FuncName(const UT_Vector2F &value) \ { getOptions().setOptionUV(DataName, value); } \ void set##FuncName(const UT_Vector2D &value) \ { getOptions().setOptionUV(DataName, value); }
Definition at line 171 of file SIM_OptionsUser.h.
| #define SET_DATA_FUNC_UVW | ( | DataName, | |||
| FuncName | ) |
Value:
void set##FuncName(const UT_Vector3F &value) \ { getOptions().setOptionUVW(DataName, value); } \ void set##FuncName(const UT_Vector3D &value) \ { getOptions().setOptionUVW(DataName, value); }
Definition at line 181 of file SIM_OptionsUser.h.
| #define SET_DATA_FUNC_V2 | ( | DataName, | |||
| FuncName | ) |
Value:
void set##FuncName(const UT_Vector2F &value) \ { getOptions().setOptionV2(DataName, value); } \ void set##FuncName(const UT_Vector2D &value) \ { getOptions().setOptionV2(DataName, value); }
Definition at line 166 of file SIM_OptionsUser.h.
| #define SET_DATA_FUNC_V3 | ( | DataName, | |||
| FuncName | ) |
Value:
void set##FuncName(const UT_Vector3F &value) \ { getOptions().setOptionV3(DataName, value); } \ void set##FuncName(const UT_Vector3D &value) \ { getOptions().setOptionV3(DataName, value); }
Definition at line 176 of file SIM_OptionsUser.h.
| #define SET_DATA_FUNC_V4 | ( | DataName, | |||
| FuncName | ) |
Value:
void set##FuncName(const UT_Vector4F &value) \ { getOptions().setOptionV4(DataName, value); } \ void set##FuncName(const UT_Vector4D &value) \ { getOptions().setOptionV4(DataName, value); }
Definition at line 186 of file SIM_OptionsUser.h.
1.5.9