9 #ifndef __HOM_FloatParmTemplate_h__
10 #define __HOM_FloatParmTemplate_h__
24 HOM_FloatParmTemplate(
28 const std::vector<double> &default_value = std::vector<double>(),
29 double min = 0.0,
double max = 10.0,
30 bool min_is_strict =
false,
bool max_is_strict =
false,
33 const char *disable_when = NULL,
34 bool is_hidden =
false,
35 bool is_label_hidden =
false,
36 bool join_with_next =
false,
37 const char *
help = NULL,
38 const char *script_callback = NULL,
40 HOM_scriptLanguage::Hscript,
41 const std::map<std::string, std::string> &tags =
43 const std::map<HOM_EnumValue *, std::string> &conditionals =
45 const std::vector<std::string> &default_expression =
46 std::vector<std::string>(),
47 const std::vector<HOM_EnumValue *> &default_expression_language =
48 std::vector<HOM_EnumValue *>())
51 name, label, num_components, default_value,
52 min,
max, min_is_strict, max_is_strict, look, naming_scheme,
53 disable_when, is_hidden, is_label_hidden, join_with_next,
help,
54 script_callback, script_callback_language, tags, conditionals,
55 default_expression, default_expression_language);
74 virtual double minValue() = 0;
75 virtual void setMinValue(
double min_value) = 0;
76 virtual double maxValue() = 0;
77 virtual void setMaxValue(
double max_value) = 0;
78 virtual bool minIsStrict() = 0;
79 virtual void setMinIsStrict(
bool on) = 0;
80 virtual bool maxIsStrict() = 0;
81 virtual void setMaxIsStrict(
bool on) = 0;
83 virtual std::vector<double> defaultValue() = 0;
84 virtual void setDefaultValue(
const std::vector<double> &default_value) = 0;
85 virtual std::vector<std::string> defaultExpression() = 0;
86 virtual void setDefaultExpression(
87 const std::vector<std::string> &default_expression) = 0;
88 virtual std::vector<HOM_EnumValue *> defaultExpressionLanguage() = 0;
89 virtual void setDefaultExpressionLanguage(
90 const std::vector<HOM_EnumValue *> &default_expression_language) = 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) ...
#define HOM_CONSTRUCT_OBJECT(pointer)
~HOM_FloatParmTemplate() override
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)
HOM_API HOM_Module & HOM()
virtual HOM_FloatParmTemplate * newFloatParmTemplate(const char *name, const char *label, int num_components, const std::vector< double > &default_value, double min, double max, bool min_is_strict, bool max_is_strict, HOM_EnumValue &look, HOM_EnumValue &naming_scheme, 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
std::map< std::string, std::string > HOM_StdMapStringString
HOM_FloatParmTemplate(const HOM_FloatParmTemplate &parm_template)