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