9 #ifndef __HOM_RampParmTemplate_h__
10 #define __HOM_RampParmTemplate_h__
28 int default_value = 2,
30 bool show_controls =
true,
32 const char *disable_when = NULL,
33 bool is_hidden =
false,
34 const char *
help = NULL,
35 const char *script_callback = NULL,
37 HOM_scriptLanguage::Hscript,
38 const std::map<std::string, std::string> &tags =
40 const std::map<HOM_EnumValue *, std::string> &conditionals =
44 HOM_scriptLanguage::Hscript)
47 name, label, ramp_parm_type, default_value, default_basis,
48 show_controls, color_type, disable_when, is_hidden,
help,
49 script_callback, script_callback_language, tags, conditionals,
50 default_expression, default_expression_language);
69 virtual int defaultValue() = 0;
70 virtual void setDefaultValue(
int default_value) = 0;
72 virtual void setDefaultExpression(
75 virtual void setDefaultExpressionLanguage(
82 virtual void setDefaultBasis(
HOM_EnumValue &default_basis) = 0;
87 virtual bool showsControls() = 0;
88 virtual void setShowsControls(
bool on) = 0;
90 virtual std::vector<HOM_ElemPtr<HOM_ParmTemplate> > parmTemplates() = 0;
#define HOM_DESTRUCT_OBJECT(pointer)
GLuint GLsizei const GLchar * label
GLsizei const GLchar *const * string
string __repr__(VtArray< T > const &self)
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)
virtual HOM_RampParmTemplate * newRampParmTemplate(const char *name, const char *label, HOM_EnumValue &ramp_parm_type, int default_value, HOM_EnumValue *default_basis, bool show_controls, HOM_EnumValue *color_type, const char *disable_when, bool is_hidden, 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::string &default_expression, const HOM_EnumValue &default_expression_language)=0
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)
HOM_RampParmTemplate(const HOM_RampParmTemplate &parm_template)
~HOM_RampParmTemplate() override
HOM_API HOM_Module & HOM()
std::map< std::string, std::string > HOM_StdMapStringString