HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HOM_Agent.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_Agent_h__
10 #define __HOM_Agent_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_ElemPtr.h"
14 #include "HOM_PackedPrim.h"
15 
16 class HOM_AgentClip;
18 class HOM_AgentLayer;
19 class HOM_AgentRig;
20 
21 SWIGOUT(%rename(Agent) HOM_Agent;)
22 
23 class HOM_API HOM_Agent : virtual public HOM_PackedPrim
24 {
25 public:
27  { HOM_CONSTRUCT_OBJECT(this) }
28 
29  HOM_Agent(const HOM_Agent &prim)
30  : HOM_Prim(prim), HOM_PackedPrim(prim)
31  { HOM_CONSTRUCT_OBJECT(this) }
32 
33  virtual ~HOM_Agent()
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  SWIGOUT(%newobject definition;)
41  virtual HOM_AgentDefinition *definition() = 0;
42 
43  virtual void setDefinition(const HOM_AgentDefinition &definition) = 0;
44 
45  SWIGOUT(%newobject currentLayer;)
46  virtual HOM_AgentLayer *currentLayer() = 0;
47 
48  virtual void setCurrentLayer(const HOM_AgentLayer &layer) = 0;
49 
50  SWIGOUT(%newobject collisionLayer;)
51  virtual HOM_AgentLayer *collisionLayer() = 0;
52 
53  virtual void setCollisionLayer(const HOM_AgentLayer &layer) = 0;
54 
55  virtual std::vector<HOM_ElemPtr<HOM_AgentClip> > clips() = 0;
56 
57  virtual void setClips(const std::vector<HOM_AgentClip *> &clips) = 0;
58 
59  virtual std::vector<double> clipTimes() = 0;
60 
61  virtual void setClipTimes(const std::vector<double> &times) = 0;
62 
63  virtual std::vector<double> clipWeights() = 0;
64 
65  virtual void setClipWeights(const std::vector<double> &weights) = 0;
66 
67  SWIGOUT(%newobject localTransform;)
68  virtual HOM_Matrix4 *localTransform(int i) = 0;
69 
70  virtual void setLocalTransform(const HOM_Matrix4 &xform, int i) = 0;
71 
72  SWIGOUT(%newobject worldTransform;)
73  virtual HOM_Matrix4 *worldTransform(int i) = 0;
74 
75  virtual void setWorldTransform(const HOM_Matrix4 &xform, int i) = 0;
76 };
77 
78 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:973
GLenum GLuint GLint GLint layer
Definition: glcorearb.h:1298
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
png_uint_32 i
Definition: png.h:2877
virtual std::string __repr__() const =0
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:972
HOM_Agent(const HOM_Agent &prim)
Definition: HOM_Agent.h:29
HOM_Agent()
Definition: HOM_Agent.h:26
virtual ~HOM_Agent()
Definition: HOM_Agent.h:33