HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_RampParmTemplate.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * COMMENTS:
7  */
8 
9 #ifndef __HOM_RampParmTemplate_h__
10 #define __HOM_RampParmTemplate_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_ParmTemplate.h"
14 
15 SWIGOUT(%feature("notabstract") HOM_RampParmTemplate;)
16 SWIGOUT(%rename(RampParmTemplate) HOM_RampParmTemplate;)
17 
19 {
20 public:
21 #ifdef SWIG
22 %extend {
23  %kwargs HOM_RampParmTemplate;
24  HOM_RampParmTemplate(
25  const char *name,
26  const char *label,
27  HOM_EnumValue &ramp_parm_type,
28  int default_value = 2,
29  HOM_EnumValue *default_basis = NULL,
30  bool show_controls = true,
31  HOM_EnumValue *color_type = NULL,
32  const char *disable_when = NULL,
33  bool is_hidden = false,
34  const char *help = NULL,
35  const char *script_callback = NULL,
36  HOM_EnumValue &script_callback_language =
37  HOM_scriptLanguage::Hscript,
38  const std::map<std::string, std::string> &tags =
40  const std::map<HOM_EnumValue *, std::string> &conditionals =
42  const std::string &default_expression = "",
43  const HOM_EnumValue &default_expression_language =
44  HOM_scriptLanguage::Hscript)
45  {
46  return HOM().newRampParmTemplate(
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);
51  }
52 };
53 #else
55  { HOM_CONSTRUCT_OBJECT(this) }
56 
58  : HOM_ParmTemplate(parm_template)
59  { HOM_CONSTRUCT_OBJECT(this) }
60 #endif
61 
63  { HOM_DESTRUCT_OBJECT(this) }
64 
65  // Let swig think we're overriding __repr__ for this class so it doesn't
66  // provide its own __repr__.
67  SWIGOUT(virtual std::string __repr__();)
68 
69  virtual int defaultValue() = 0;
70  virtual void setDefaultValue(int default_value) = 0;
71  virtual std::string defaultExpression() = 0;
72  virtual void setDefaultExpression(
73  const std::string &default_expression) = 0;
74  virtual HOM_EnumValue &defaultExpressionLanguage() = 0;
75  virtual void setDefaultExpressionLanguage(
76  const HOM_EnumValue &default_expression_language) = 0;
77 
78  virtual HOM_EnumValue &parmType() = 0;
79  virtual void setParmType(HOM_EnumValue &ramp_parm_type) = 0;
80 
81  virtual HOM_EnumValue &defaultBasis() = 0;
82  virtual void setDefaultBasis(HOM_EnumValue &default_basis) = 0;
83 
84  virtual HOM_EnumValue &colorType() = 0;
85  virtual void setColorType(HOM_EnumValue &color_type) = 0;
86 
87  virtual bool showsControls() = 0;
88  virtual void setShowsControls(bool on) = 0;
89 
90  virtual std::vector<HOM_ElemPtr<HOM_ParmTemplate> > parmTemplates() = 0;
91 };
92 
93 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2545
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
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) ...
Definition: CLI11.h:8978
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
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
Definition: glcorearb.h:786
std::map< HOM_EnumValue *, std::string > HOM_StdMapEnumString
Definition: HOM_Module.h:1312
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
HOM_RampParmTemplate(const HOM_RampParmTemplate &parm_template)
HOM_API HOM_Module & HOM()
std::map< std::string, std::string > HOM_StdMapStringString
Definition: HOM_Module.h:1311