HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HOM_ObjNode.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_ObjNode_h__
10 #define __HOM_ObjNode_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_Point;
18 class HOM_Matrix4;
19 class HOM_Vector3;
20 
21 SWIGOUT(%rename(ObjNode) HOM_ObjNode;)
22 
23 class HOM_API HOM_ObjNode : virtual public HOM_Node
24 {
25 public:
27  : HOM_NetworkMovableItem(HOM_networkItemType::Node)
28  { HOM_CONSTRUCT_OBJECT(this) }
29  HOM_ObjNode(const HOM_ObjNode &obj_node)
30  : HOM_Node(obj_node),
31  HOM_NetworkMovableItem(obj_node)
32  { HOM_CONSTRUCT_OBJECT(this) }
33  virtual ~HOM_ObjNode()
34  { HOM_DESTRUCT_OBJECT(this) }
35 
36  // Let swig know we're overriding __repr__ for this class so it doesn't
37  // provide its own __repr__.
38  SWIGOUT(virtual std::string __repr__() = 0;)
39 
40 
41  SWIGOUT(%newobject origin;)
42  virtual HOM_Vector3 *origin() = 0;
43 
44  SWIGOUT(%newobject localTransform;)
45  virtual HOM_Matrix4 *localTransform() = 0;
46  SWIGOUT(%newobject localTransformAtTime;)
47  virtual HOM_Matrix4 *localTransformAtTime(double time) = 0;
48 
49  SWIGOUT(%newobject worldTransform;)
50  virtual HOM_Matrix4 *worldTransform() = 0;
51 
52  SWIGOUT(%newobject worldTransformAtTime;)
53  virtual HOM_Matrix4 *worldTransformAtTime(double time) = 0;
54 
55  SWIGOUT(%kwargs setWorldTransform;)
56  virtual void setWorldTransform(
57  HOM_Matrix4 &matrix, bool fail_on_locked_parms = false) = 0;
58 
59  virtual void setCookTransform(HOM_Matrix4 &matrix) = 0;
60 
61  SWIGOUT(%newobject parmTransform;)
62  virtual HOM_Matrix4 *parmTransform() = 0;
63 
64  SWIGOUT(%kwargs setParmTransform;)
65  virtual void setParmTransform(
66  HOM_Matrix4 &matrix, bool fail_on_locked_parms = false) = 0;
67 
68  SWIGOUT(%newobject preTransform;)
69  virtual HOM_Matrix4 *preTransform() = 0;
70 
71  virtual void setPreTransform(HOM_Matrix4 &matrix) = 0;
72 
73  virtual void movePreTransformIntoParmTransform() = 0;
74 
75  virtual void moveParmTransformIntoPreTransform() = 0;
76  virtual void moveParmTranslateIntoPreTransform() = 0;
77  virtual void moveParmRotateIntoPreTransform() = 0;
78  virtual void moveParmScaleIntoPreTransform() = 0;
79 
80  virtual HOM_Matrix4 *parentAndSubnetTransform() = 0;
81 
82  SWIGOUT(%newobject getTransformToNode;)
83  virtual HOM_Matrix4 *getTransformToNode(HOM_ObjNode &obj_node) = 0;
84 
85  SWIGOUT(%newobject getTransformFromPointToPoint;)
86  virtual HOM_Matrix4 *getTransformFromPointToPoint(
87  HOM_Vector3 &pos3, HOM_ObjNode &other_node,
88  HOM_Vector3 &other_pos3) = 0;
89 
90  SWIGOUT(%newobject buildLookatRotation;)
91  virtual HOM_Matrix4 *buildLookatRotation(HOM_ObjNode &to_node,
92  HOM_Vector3 *up_vector = NULL) = 0;
93 
94  virtual bool isObjectDisplayed() = 0;
95 
96  virtual bool isDisplayFlagSet() = 0;
97  virtual void setDisplayFlag(bool on) = 0;
98  virtual bool isSelectableInViewport() = 0;
99  virtual void setSelectableInViewport(bool on) = 0;
100  virtual bool isShowingOrigin() = 0;
101  virtual void showOrigin(bool on) = 0;
102  virtual bool isUsingXray() = 0;
103  virtual void useXray(bool on) = 0;
104 
105  SWIGOUT(%newobject displayNode;)
106  virtual HOM_Node *displayNode() = 0;
107 
108  SWIGOUT(%newobject renderNode;)
109  virtual HOM_Node *renderNode() = 0;
110 
111  virtual void combine(const std::vector<HOM_Node *> &nodes) = 0;
112 
113  SWIGOUT(%kwargs material;)
114  virtual void material(const char *operation,
115  const std::vector<std::string> &parms=std::vector<std::string>()) = 0;
116 };
117 
118 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:974
HOM_ObjNode(const HOM_ObjNode &obj_node)
Definition: HOM_ObjNode.h:29
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:973
virtual ~HOM_ObjNode()
Definition: HOM_ObjNode.h:33
std::string __repr__()