HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_FloatParmTemplate.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_FloatParmTemplate_h__
10 #define __HOM_FloatParmTemplate_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_ParmTemplate.h"
14 
15 SWIGOUT(%feature("notabstract") HOM_FloatParmTemplate;)
16 SWIGOUT(%rename(FloatParmTemplate) HOM_FloatParmTemplate;)
17 
19 {
20 public:
21 #ifdef SWIG
22 %extend {
23  %kwargs HOM_FloatParmTemplate;
24  HOM_FloatParmTemplate(
25  const char *name,
26  const char *label,
27  int num_components,
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,
31  HOM_EnumValue &look = HOM_parmLook::Regular,
32  HOM_EnumValue &naming_scheme = HOM_parmNamingScheme::XYZW,
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,
39  HOM_EnumValue &script_callback_language =
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 *>())
49  {
50  return HOM().newFloatParmTemplate(
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);
56  }
57 };
58 #else
60  { HOM_CONSTRUCT_OBJECT(this) }
61 
63  : HOM_ParmTemplate(parm_template)
64  { HOM_CONSTRUCT_OBJECT(this) }
65 #endif
66 
68  { HOM_DESTRUCT_OBJECT(this) }
69 
70  // Let swig think we're overriding __repr__ for this class so it doesn't
71  // provide its own __repr__.
72  SWIGOUT(virtual std::string __repr__();)
73 
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;
82 
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;
91 
92 };
93 
94 #endif
constexpr auto max_value() -> T
Definition: format.h:303
#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
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) ...
Definition: CLI11.h:8978
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
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)
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
Definition: HOM_Module.h:1311
HOM_FloatParmTemplate(const HOM_FloatParmTemplate &parm_template)