9 #ifndef __HOM_IntParmTemplate_h__
10 #define __HOM_IntParmTemplate_h__
28 const std::vector<int64> &default_value = std::vector<int64>(),
30 bool min_is_strict =
false,
bool max_is_strict =
false,
33 const std::vector<std::string> &menu_items =
34 std::vector<std::string>(),
35 const std::vector<std::string> &menu_labels =
36 std::vector<std::string>(),
37 const std::vector<std::string> &icon_names =
38 std::vector<std::string>(),
42 const char *disable_when = NULL,
43 bool is_hidden =
false,
44 bool is_label_hidden =
false,
45 bool join_with_next =
false,
46 const char *
help = NULL,
47 const char *script_callback = NULL,
49 HOM_scriptLanguage::Hscript,
50 const std::map<std::string, std::string> &tags =
52 const std::map<HOM_EnumValue *, std::string> &conditionals =
54 const std::vector<std::string> &default_expression =
55 std::vector<std::string>(),
56 const std::vector<HOM_EnumValue *> &default_expression_language =
57 std::vector<HOM_EnumValue *>(),
58 bool menu_use_token =
false)
61 name, label, num_components, default_value,
62 min,
max, min_is_strict, max_is_strict, look, naming_scheme,
63 menu_items, menu_labels, icon_names, item_generator_script,
64 item_generator_script_language, menu_type, menu_use_token, disable_when, is_hidden,
65 is_label_hidden, join_with_next,
help, script_callback,
66 script_callback_language, tags, conditionals, default_expression,
67 default_expression_language);
86 virtual int64 minValue() = 0;
87 virtual void setMinValue(
int64 min_value) = 0;
88 virtual int64 maxValue() = 0;
90 virtual bool minIsStrict() = 0;
91 virtual void setMinIsStrict(
bool on) = 0;
92 virtual bool maxIsStrict() = 0;
93 virtual void setMaxIsStrict(
bool on) = 0;
95 virtual std::vector<int64> defaultValue() = 0;
96 virtual void setDefaultValue(
const std::vector<int64> &default_value) = 0;
97 virtual std::vector<std::string> defaultExpression() = 0;
98 virtual void setDefaultExpression(
99 const std::vector<std::string> &default_expression) = 0;
100 virtual std::vector<HOM_EnumValue *> defaultExpressionLanguage() = 0;
101 virtual void setDefaultExpressionLanguage(
102 const std::vector<HOM_EnumValue *> &default_expression_language) = 0;
104 virtual std::vector<std::string> menuItems() = 0;
105 virtual void setMenuItems(
const std::vector<std::string> &menu_items) = 0;
107 virtual std::vector<std::string> menuLabels() = 0;
108 virtual void setMenuLabels(
const std::vector<std::string> &menu_labels) = 0;
110 virtual std::vector<std::string> iconNames() = 0;
111 virtual void setIconNames(
const std::vector<std::string> &icon_names) = 0;
114 virtual void setItemGeneratorScript(
const char *item_generator_script) = 0;
117 virtual void setItemGeneratorScriptLanguage(
HOM_EnumValue &language) = 0;
122 virtual bool menuUseToken() = 0;
123 virtual void setMenuUseToken(
bool menuusetoken) = 0;
constexpr auto max_value() -> T
#define HOM_DESTRUCT_OBJECT(pointer)
GLuint GLsizei const GLchar * label
GLsizei const GLchar *const * string
string __repr__(VtArray< T > const &self)
ImageBuf OIIO_API min(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
std::string help(const App *app, const Error &e)
Printout the full help string on error (if this fn is set, the old default for CLI11) ...
~HOM_IntParmTemplate() override
#define HOM_CONSTRUCT_OBJECT(pointer)
HOM_IntParmTemplate(const HOM_IntParmTemplate &parm_template)
GLuint const GLchar * name
std::map< HOM_EnumValue *, std::string > HOM_StdMapEnumString
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
ImageBuf OIIO_API max(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
virtual HOM_IntParmTemplate * newIntParmTemplate(const char *name, const char *label, int num_components, const std::vector< int64 > &default_value, int64 min, int64 max, bool min_is_strict, bool max_is_strict, HOM_EnumValue &look, HOM_EnumValue &naming_scheme, const std::vector< std::string > &menu_items, const std::vector< std::string > &menu_labels, const std::vector< std::string > &icon_names, const std::string &item_generator_script, HOM_EnumValue *item_generator_script_language, HOM_EnumValue &menu_type, bool menu_use_token, const char *disable_when, bool is_hidden, bool is_label_hidden, bool join_with_next, const char *help, const char *script_callback, HOM_EnumValue &script_callback_language, const std::map< std::string, std::string > &tags, const std::map< HOM_EnumValue *, std::string > &conditionals, const std::vector< std::string > &default_expression, const std::vector< HOM_EnumValue * > &default_expression_language)=0
HOM_API HOM_Module & HOM()
std::map< std::string, std::string > HOM_StdMapStringString