HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_NodeType.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_NodeType_h__
10 #define __HOM_NodeType_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_BinaryString.h"
14 #include "HOM_Defines.h"
15 #include "HOM_Errors.h"
16 #include "HOM_EnumValue.h"
17 #include "HOM_Color.h"
18 #include "HOM_Module.h"
19 #include "HOM_ParmTemplate.h"
20 #include "HOM_PtrOrNull.h"
21 #include <string>
22 
23 class HOM_HDADefinition;
24 class HOM_HDAModule;
29 
30 SWIGOUT(%rename(NodeType) HOM_NodeType;)
31 
33 {
34 public:
36  { HOM_CONSTRUCT_OBJECT(this) }
38  { HOM_CONSTRUCT_OBJECT(this) }
39  virtual ~HOM_NodeType()
40  { HOM_DESTRUCT_OBJECT(this) }
41 
42  virtual bool operator==(HOM_PtrOrNull<HOM_NodeType> node_type) = 0;
43  virtual bool operator!=(HOM_PtrOrNull<HOM_NodeType> node_type) = 0;
44 
45  virtual int __hash__() = 0;
46  virtual std::string __repr__() = 0;
47 
48  virtual HOM_NodeTypeCategory &category() = 0;
49 
50  virtual std::string name() = 0;
51  virtual std::vector<std::string> nameComponents() = 0;
52  virtual std::string description() = 0;
53  virtual std::string nameWithCategory() = 0;
54  virtual std::vector<std::string> namespaceOrder() = 0;
55 
56  virtual std::string icon() = 0;
57  virtual int minNumInputs() = 0;
58  virtual int maxNumInputs() = 0;
59  virtual int maxNumOutputs() = 0;
60 
61  virtual bool isGenerator() = 0;
62  virtual bool isManager(bool include_management_types=true) = 0;
63  virtual bool hasUnorderedInputs() = 0;
64  virtual bool hasEditableInputData() = 0;
65 
66  virtual std::vector<HOM_ElemPtr<HOM_ParmTemplate> > parmTemplates() = 0;
67  SWIGOUT(%newobject parmTemplateGroup;)
68  virtual HOM_ParmTemplateGroup *parmTemplateGroup() = 0;
69 
70  virtual bool hasPermanentUserDefaults() = 0;
71 
72  virtual bool isReadable() = 0;
73  virtual bool isWritable() = 0;
74  virtual bool areContentsViewable() = 0;
75 
76  virtual std::vector<std::string> containedNodeTypes() = 0;
77  virtual HOM_NodeTypeCategory *childTypeCategory() = 0;
78 
79  virtual std::string helpUrl() = 0;
80  virtual std::string defaultHelpUrl() = 0;
81  virtual std::string embeddedHelp() = 0;
82 
83  virtual std::string defaultShape() = 0;
84  virtual void setDefaultShape(const char *shape) = 0;
85  virtual HOM_Color defaultColor() = 0;
86  virtual void setDefaultColor(HOM_Color *color) = 0;
87 };
88 
89 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
std::vector< HOM_ElemPtr< HOM_ParmTemplate > > parmTemplates()
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
#define HOM_API
Definition: HOM_API.h:13
virtual ~HOM_NodeType()
Definition: HOM_NodeType.h:39
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
Definition: Mat3.h:556
GLuint const GLchar * name
Definition: glcorearb.h:786
HOM_NodeType(const HOM_NodeType &)
Definition: HOM_NodeType.h:37
GLuint color
Definition: glcorearb.h:1261
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:542