HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_SopNode.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_SopNode_h__
10 #define __HOM_SopNode_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_OpNode.h"
16 
17 class HOM_Geometry;
18 class HOM_GeometryDelta;
19 class HOM_Point;
20 class HOM_Prim;
21 class HOM_Vertex;
22 class HOM_SopVerb;
23 
24 SWIGOUT(%rename(SopNode) HOM_SopNode;)
25 
26 class HOM_API HOM_SopNode : virtual public HOM_OpNode
27 {
28 public:
30  : HOM_NetworkMovableItem(HOM_networkItemType::Node)
31  { HOM_CONSTRUCT_OBJECT(this) }
32  HOM_SopNode(const HOM_SopNode &sop_node)
33  : HOM_OpNode(sop_node),
34  HOM_NetworkMovableItem(sop_node)
35  { HOM_CONSTRUCT_OBJECT(this) }
36  ~HOM_SopNode() override
37  { HOM_DESTRUCT_OBJECT(this) }
38 
39  // Let swig know we're overriding __repr__ for this class so it doesn't
40  // provide its own __repr__.
41  SWIGOUT(virtual std::string __repr__() = 0;)
42 
43  SWIGOUT(%newobject geometry;)
44  SWIGOUT(%kwargs geometry;)
45  virtual HOM_Geometry *geometry(int output_index=0) = 0;
46 
47  SWIGOUT(%newobject geometryNoDep;)
48  SWIGOUT(%kwargs geometryNoDep;)
49  virtual HOM_Geometry *geometryNoDep(int output_index=0) = 0;
50 
51  SWIGOUT(%kwargs geometryDep;)
52  virtual void geometryDep(int output_index=0) = 0;
53 
54  SWIGOUT(%newobject geometryAtFrame;)
55  SWIGOUT(%kwargs geometryAtFrame;)
56  virtual HOM_Geometry *geometryAtFrame(double frame, int output_index=0) = 0;
57  SWIGOUT(%newobject inputGeometry;)
58  virtual HOM_Geometry *inputGeometry(int index) = 0;
59  SWIGOUT(%newobject inputGeometryAtFrame;)
60  virtual HOM_Geometry *inputGeometryAtFrame(double frame, int index) = 0;
61 
62  SWIGOUT(%newobject geometryDelta;)
63  virtual HOM_GeometryDelta *geometryDelta() = 0;
64 
65  virtual bool hasVerb() = 0;
66  SWIGOUT(%newobject verb;)
67  virtual HOM_SopVerb *verb() = 0;
68 
69  // This method is deprecated.
70  SWIGOUT(%newobject selection;)
71  virtual HOM_Selection *selection(HOM_EnumValue &selection_type) = 0;
72  // This method is deprecated.
73  virtual void setSelection(HOM_Selection &selection) = 0;
74 
75  virtual void _sendSelectionChangedEvent() = 0;
76 
77  SWIGOUT(%newobject curPoint;)
78  virtual HOM_Point *curPoint() = 0;
79  virtual void setCurPoint(HOM_Point *point_or_none) = 0;
80 
81  SWIGOUT(%newobject curPrim;)
82  virtual HOM_Prim *curPrim() = 0;
83  virtual void setCurPrim(HOM_Prim *prim_or_none) = 0;
84 
85  SWIGOUT(%newobject curVertex;)
86  virtual HOM_Vertex *curVertex() = 0;
87  virtual void setCurVertex(HOM_Vertex *vertex_or_none) = 0;
88 
89  virtual bool managesAttribDataIds() = 0;
90  virtual void setManagesAttribDataIds(bool on) = 0;
91 
92  virtual bool isBypassed() = 0;
93  virtual void bypass(bool on) = 0;
94  virtual bool isDisplayFlagSet() = 0;
95  virtual void setDisplayFlag(bool on) = 0;
96  virtual bool isRenderFlagSet() = 0;
97  virtual void setRenderFlag(bool on) = 0;
98  virtual bool isTemplateFlagSet() = 0;
99  virtual void setTemplateFlag(bool on) = 0;
100  virtual bool isSelectableTemplateFlagSet() = 0;
101  virtual void setSelectableTemplateFlag(bool on) = 0;
102  virtual bool isHighlightFlagSet() = 0;
103  virtual void setHighlightFlag(bool on) = 0;
104  virtual bool isSoftLocked() = 0;
105  virtual void setSoftLocked(bool on) = 0;
106  virtual bool isHardLocked() = 0;
107  virtual void setHardLocked(bool on) = 0;
108  virtual bool isUnloadFlagSet() = 0;
109  virtual void setUnloadFlag(bool on) = 0;
110 
111  // This method is deprecated.
112  virtual void copyNodeSelectionToUserSelection(bool force_cook = false) = 0;
113 
114  SWIGOUT(%newobject displayNode;)
115  virtual HOM_Node *displayNode() = 0;
116  SWIGOUT(%newobject renderNode;)
117  virtual HOM_Node *renderNode() = 0;
118 
119  virtual void _setCurrentMicroNodeName(const char * name) = 0;
120  virtual std::map<std::string, int> _getMicroNodesStates() = 0;
121  virtual void _dirtyMicroNodesStates(
122  const std::vector<std::string> &names) = 0;
123 };
124 
125 #endif
GT_API const UT_StringHolder selection
~HOM_SopNode() override
Definition: HOM_SopNode.h:36
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
Definition: Node.h:52
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
HOM_SopNode(const HOM_SopNode &sop_node)
Definition: HOM_SopNode.h:32
#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
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
GLuint index
Definition: glcorearb.h:786