HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HOM_IntParmTemplate.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_IntParmTemplate_h__
10 #define __HOM_IntParmTemplate_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_ParmTemplate.h"
14 
15 SWIGOUT(%feature("notabstract") HOM_IntParmTemplate;)
16 SWIGOUT(%rename(IntParmTemplate) HOM_IntParmTemplate;)
17 
19 {
20 public:
21 #ifdef SWIG
22 %extend {
23  %kwargs HOM_IntParmTemplate;
24  HOM_IntParmTemplate(
25  const char *name,
26  const char *label,
27  int num_components,
28  const std::vector<int> &default_value = std::vector<int>(),
29  int min = 0, int max = 10,
30  bool min_is_strict = false, bool max_is_strict = false,
31  HOM_EnumValue &naming_scheme = HOM_parmNamingScheme::XYZW,
32  const std::vector<std::string> &menu_items =
33  std::vector<std::string>(),
34  const std::vector<std::string> &menu_labels =
35  std::vector<std::string>(),
36  const std::vector<std::string> &icon_names =
37  std::vector<std::string>(),
38  const std::string &item_generator_script = "",
39  HOM_EnumValue *item_generator_script_language = NULL,
40  HOM_EnumValue &menu_type = HOM_menuType::Normal,
41  const char *disable_when = NULL,
42  bool is_hidden = false,
43  bool is_label_hidden = false,
44  bool join_with_next = false,
45  const char *help = NULL,
46  const char *script_callback = NULL,
47  HOM_EnumValue &script_callback_language =
48  HOM_scriptLanguage::Hscript,
49  const std::map<std::string, std::string> &tags =
51  const std::map<HOM_EnumValue, std::string> &conditionals =
53  const std::vector<std::string> &default_expression =
54  std::vector<std::string>(),
55  const std::vector<HOM_EnumValue *> &default_expression_language =
56  std::vector<HOM_EnumValue *>())
57  {
58  return HOM().newIntParmTemplate(
59  name, label, num_components, default_value,
60  min, max, min_is_strict, max_is_strict, naming_scheme,
61  menu_items, menu_labels, icon_names, item_generator_script,
62  item_generator_script_language, menu_type, disable_when, is_hidden,
63  is_label_hidden, join_with_next, help, script_callback,
64  script_callback_language, tags, conditionals, default_expression,
65  default_expression_language);
66  }
67 };
68 #else
70  { HOM_CONSTRUCT_OBJECT(this) }
71 
73  : HOM_ParmTemplate(parm_template)
74  { HOM_CONSTRUCT_OBJECT(this) }
75 #endif
76 
78  { HOM_DESTRUCT_OBJECT(this) }
79 
80  // Let swig think we're overriding __repr__ for this class so it doesn't
81  // provide its own __repr__.
82  SWIGOUT(virtual std::string __repr__();)
83 
84  virtual int minValue() = 0;
85  virtual void setMinValue(int min_value) = 0;
86  virtual int maxValue() = 0;
87  virtual void setMaxValue(int max_value) = 0;
88  virtual bool minIsStrict() = 0;
89  virtual void setMinIsStrict(bool on) = 0;
90  virtual bool maxIsStrict() = 0;
91  virtual void setMaxIsStrict(bool on) = 0;
92 
93  virtual std::vector<int> defaultValue() = 0;
94  virtual void setDefaultValue(const std::vector<int> &default_value) = 0;
95  virtual std::vector<std::string> defaultExpression() = 0;
96  virtual void setDefaultExpression(
97  const std::vector<std::string> &default_expression) = 0;
98  virtual std::vector<HOM_EnumValue *> defaultExpressionLanguage() = 0;
99  virtual void setDefaultExpressionLanguage(
100  const std::vector<HOM_EnumValue *> &default_expression_language) = 0;
101 
102  virtual std::vector<std::string> menuItems() = 0;
103  virtual void setMenuItems(const std::vector<std::string> &menu_items) = 0;
104 
105  virtual std::vector<std::string> menuLabels() = 0;
106  virtual void setMenuLabels(const std::vector<std::string> &menu_labels) = 0;
107 
108  virtual std::vector<std::string> iconNames() = 0;
109  virtual void setIconNames(const std::vector<std::string> &icon_names) = 0;
110 
111  virtual std::string itemGeneratorScript() = 0;
112  virtual void setItemGeneratorScript(const char *item_generator_script) = 0;
113 
114  virtual HOM_EnumValue &itemGeneratorScriptLanguage() = 0;
115  virtual void setItemGeneratorScriptLanguage(HOM_EnumValue &language) = 0;
116 
117  virtual HOM_EnumValue &menuType() = 0;
118  virtual void setMenuType(HOM_EnumValue &menu_type) = 0;
119 };
120 
121 #endif
virtual std::string __repr__()=0
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:973
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2544
const hboost::disable_if_c< VecTraits< T >::IsVec, T >::type & min(const T &a, const T &b)
Definition: Composite.h:128
virtual HOM_IntParmTemplate * newIntParmTemplate(const char *name, const char *label, int num_components, const std::vector< int > &default_value, int min, int max, bool min_is_strict, bool max_is_strict, 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, 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
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
const hboost::disable_if_c< VecTraits< T >::IsVec, T >::type & max(const T &a, const T &b)
Definition: Composite.h:132
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:972
HOM_IntParmTemplate(const HOM_IntParmTemplate &parm_template)
GLuint const GLchar * name
Definition: glcorearb.h:785
std::map< HOM_EnumValue, std::string > HOM_StdMapEnumString
Definition: HOM_Module.h:979
HOM_API HOM_Module & HOM()
std::map< std::string, std::string > HOM_StdMapStringString
Definition: HOM_Module.h:978