HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_DopNode.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_DopNode_h__
10 #define __HOM_DopNode_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_OpNode.h"
16 #include <vector>
17 
18 class HOM_DopData;
19 class HOM_DopNetNode;
20 class HOM_DopSimulation;
21 
22 SWIGOUT(%rename(DopNode) HOM_DopNode;)
23 
24 class HOM_API HOM_DopNode : virtual public HOM_OpNode
25 {
26 public:
28  : HOM_NetworkMovableItem(HOM_networkItemType::Node)
29  { HOM_CONSTRUCT_OBJECT(this) }
30  HOM_DopNode(const HOM_DopNode &dop_node)
31  : HOM_OpNode(dop_node),
32  HOM_NetworkMovableItem(dop_node)
33  { HOM_CONSTRUCT_OBJECT(this) }
34  ~HOM_DopNode() override
35  { HOM_DESTRUCT_OBJECT(this) }
36 
37  // Let swig know we're overriding __repr__ for this class so it doesn't
38  // provide its own __repr__.
39  SWIGOUT(virtual std::string __repr__() = 0;)
40 
41  SWIGOUT(%newobject dopNetNode;)
42  virtual HOM_Node *dopNetNode() = 0;
43  SWIGOUT(%newobject simulation;)
44  HOM_DopSimulation *simulation() override = 0;
45 
46  virtual std::vector<HOM_ElemPtr<HOM_DopData> > processedObjects() = 0;
47 
48  virtual std::vector<HOM_ElemPtr<HOM_DopData> > createdObjects() = 0;
49 
50  virtual bool isBypassed() = 0;
51  virtual void bypass(bool on) = 0;
52  virtual bool isDisplayFlagSet() = 0;
53  virtual void setDisplayFlag(bool on) = 0;
54  virtual bool isTemplateFlagSet() = 0;
55  virtual void setTemplateFlag(bool on) = 0;
56 
57  SWIGOUT(%newobject displayNode;)
58  virtual HOM_Node *displayNode() = 0;
59  SWIGOUT(%newobject renderNode;)
60  virtual HOM_Node *renderNode() = 0;
61 
62  virtual std::vector<HOM_ElemPtr<HOM_DopData> > objectsToProcess() = 0;
63 
64  SWIGOUT(%newobject pythonSolverData;)
65  virtual HOM_DopData *pythonSolverData() = 0;
66 };
67 
68 #endif
HOM_DopNode(const HOM_DopNode &dop_node)
Definition: HOM_DopNode.h:30
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
Definition: Node.h:52
~HOM_DopNode() override
Definition: HOM_DopNode.h:34
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:349
virtual HOM_Node * dopNetNode()=0
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)