HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_DataParmTemplate.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_DataParmTemplate_h__
10 #define __HOM_DataParmTemplate_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_ParmTemplate.h"
14 
15 SWIGOUT(%feature("notabstract") HOM_DataParmTemplate;)
16 SWIGOUT(%rename(DataParmTemplate) HOM_DataParmTemplate;)
17 
19 {
20 public:
21 #ifdef SWIG
22 %extend {
23  %kwargs HOM_DataParmTemplate;
24  HOM_DataParmTemplate(
25  const char *name,
26  const char *label,
27  int num_components,
28  HOM_EnumValue &look = HOM_parmLook::Regular,
29  HOM_EnumValue &naming_scheme = HOM_parmNamingScheme::XYZW,
30  HOM_EnumValue &data_parm_type = HOM_dataParmType::Geometry,
31  const char *disable_when = NULL,
32  bool is_hidden = false,
33  bool is_label_hidden = false,
34  bool join_with_next = false,
35  const char *help = NULL,
36  const char *script_callback = NULL,
37  HOM_EnumValue &script_callback_language =
38  HOM_scriptLanguage::Hscript,
39  const std::map<std::string, std::string> &tags =
41  const std::map<HOM_EnumValue *, std::string> &conditionals =
43  const std::vector<std::string> &default_expression =
44  std::vector<std::string>(),
45  const std::vector<HOM_EnumValue *> &default_expression_language =
46  std::vector<HOM_EnumValue *>())
47  {
48  return HOM().newDataParmTemplate(
49  name, label, num_components, look, naming_scheme, data_parm_type,
50  disable_when, is_hidden, is_label_hidden, join_with_next, help,
51  script_callback, script_callback_language, tags, conditionals,
52  default_expression, default_expression_language);
53  }
54 };
55 #else
57  { HOM_CONSTRUCT_OBJECT(this) }
58 
60  : HOM_ParmTemplate(parm_template)
61  { HOM_CONSTRUCT_OBJECT(this) }
62 #endif
63 
65  { HOM_DESTRUCT_OBJECT(this) }
66 
67  // Let swig think we're overriding __repr__ for this class so it doesn't
68  // provide its own __repr__.
69  SWIGOUT(virtual std::string __repr__();)
70 
71  virtual HOM_EnumValue &dataParmType() = 0;
72  virtual void setDataParmType(HOM_EnumValue &data_type) = 0;
73 
74  virtual std::vector<std::string> defaultExpression() = 0;
75  virtual void setDefaultExpression(
76  const std::vector<std::string> &default_expression) = 0;
77  virtual std::vector<HOM_EnumValue *> defaultExpressionLanguage() = 0;
78  virtual void setDefaultExpressionLanguage(
79  const std::vector<HOM_EnumValue *> &default_expression_language) = 0;
80 };
81 
82 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
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:352
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:1290
GLuint const GLchar * name
Definition: glcorearb.h:786
std::map< HOM_EnumValue *, std::string > HOM_StdMapEnumString
Definition: HOM_Module.h:1300
HOM_DataParmTemplate(const HOM_DataParmTemplate &parm_template)
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
virtual HOM_DataParmTemplate * newDataParmTemplate(const char *name, const char *label, int num_components, HOM_EnumValue &look, HOM_EnumValue &naming_scheme, HOM_EnumValue &data_parm_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
HOM_API HOM_Module & HOM()
std::map< std::string, std::string > HOM_StdMapStringString
Definition: HOM_Module.h:1299