HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_OpNodeType.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_OpNodeType_h__
10 #define __HOM_OpNodeType_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_NodeType.h"
14 
15 SWIGOUT(%rename(OpNodeType) HOM_OpNodeType;)
16 
18 {
19 public:
21  { HOM_CONSTRUCT_OBJECT(this) }
23  : HOM_NodeType(type)
24  { HOM_CONSTRUCT_OBJECT(this) }
25  ~HOM_OpNodeType() override
26  { HOM_DESTRUCT_OBJECT(this) }
27 
28  int __hash__() override = 0;
29  std::string __repr__() override = 0;
30 
31  virtual std::string sectionData(const char *name) = 0;
32  virtual HOM_BinaryString binarySectionData(const char *name) = 0;
33  virtual bool hasSectionData(const char *name) = 0;
34 
35  virtual HOM_EnumValue &source() = 0;
36  virtual std::string sourcePath() = 0;
37 
38  SWIGOUT(%newobject sourceNetwork;)
39  virtual HOM_Node *sourceNetwork() = 0;
40 
41  SWIGOUT(%newobject definition;)
42  virtual HOM_HDADefinition *definition() = 0;
43 
44  virtual std::vector<HOM_ElemPtr<HOM_HDADefinition> >
45  allInstalledDefinitions() = 0;
46 
47  virtual void uninstallFromPath(const char *path) = 0;
48 
49  SWIGOUT(%newobject hdaModule;)
50  virtual HOM_HDAModule *hdaModule() = 0;
51  SWIGOUT(%newobject hdaViewerStateModule;)
52  virtual HOM_HDAViewerStateModule *hdaViewerStateModule() = 0;
53  SWIGOUT(%newobject hdaViewerHandleModule;)
54  virtual HOM_HDAViewerHandleModule *hdaViewerHandleModule() = 0;
55 
56  virtual std::vector<std::string> aliases() = 0;
57  virtual void addAlias(const char *alias) = 0;
58  virtual void removeAlias(const char *alias) = 0;
59  virtual bool hidden() = 0;
60  virtual void setHidden(bool hidden) = 0;
61  virtual bool deprecated() = 0;
62  virtual std::map<std::string, hboost::any> deprecationInfo() = 0;
63 
64  virtual std::vector<HOM_ElemPtr<HOM_Node> > instances() = 0;
65 
66  // This method was implemented for the experimental edit optype parms
67  // workflow that is currently disabled.
68  SWIGOUT(%ignore reloadParmTemplates;)
69  virtual void reloadParmTemplates() = 0;
70 
71  // This method was implemented for the experimental edit optype parms
72  // workflow that is currently disabled.
73  SWIGOUT(%ignore baseParmTemplateGroup;)
74  SWIGOUT(%newobject baseParmTemplateGroup;)
75  virtual HOM_ParmTemplateGroup *baseParmTemplateGroup() = 0;
76 
77  // generatorFlag() is deprecated in favour of isGenerator().
79  { return isGenerator(); }
80  // managerFlag() is deprecated in favour of isManager().
81  SWIGOUT(%kwargs isManager);
82  bool managerFlag()
83  { return isManager(); }
84  // unorderedInputsFlag() is deprecated in favour of hasUnorderedInputs().
86  { return hasUnorderedInputs(); }
87 
88  virtual void *_asVoidPointer() = 0;
89 
90  // We need a quick way to get the OP_OpTypeId from C++ code so we know
91  // which subclass of HOM_NodeType we should cast to, so that's why
92  // opTypeIdAsInt() exists.
93  SWIGOUT(%ignore opTypeIdAsInt;)
94  virtual int opTypeIdAsInt() = 0;
95 };
96 
97 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
GLsizei const GLchar *const * path
Definition: glcorearb.h:3341
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:352
HOM_OpNodeType(const HOM_OpNodeType &type)
#define HOM_API
Definition: HOM_API.h:13
void ignore(T const &) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:6508
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:803
void * _asVoidPointer()
Definition: HOM_Vector3.h:148
GLuint const GLchar * name
Definition: glcorearb.h:786
bool generatorFlag()
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
bool unorderedInputsFlag()
type
Definition: core.h:1059
~HOM_OpNodeType() override
int __hash__()