HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HOM_PackedPrim.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_PackedPrim_h__
10 #define __HOM_PackedPrim_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Prim.h"
14 
15 class HOM_Matrix3;
16 class HOM_Matrix4;
17 
18 SWIGOUT(%rename(PackedPrim) HOM_PackedPrim;)
19 
20 class HOM_API HOM_PackedPrim : virtual public HOM_Prim
21 {
22 public:
24  { HOM_CONSTRUCT_OBJECT(this) }
25 
26  // Because the lowermost base classes initialize the virtual bases
27  // before any non-virtual bases, the correct thing to do here is
28  // explicitly call the constructor for HOM_Prim.
30  : HOM_Prim(volume)
31  { HOM_CONSTRUCT_OBJECT(this) }
32 
33  virtual ~HOM_PackedPrim()
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 transform;)
41  virtual HOM_Matrix3 *transform() = 0;
42 
43  SWIGOUT(%newobject fullTransform;)
44  virtual HOM_Matrix4 *fullTransform() = 0;
45 
46  virtual void setTransform(HOM_Matrix4 &transform) = 0;
47 
48  SWIGOUT(%newobject vertex;)
49  virtual HOM_Vertex *vertex(int index) = 0;
50 };
51 
52 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:973
virtual ~HOM_PackedPrim()
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
std::string __repr__()
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:972
GA_API const UT_StringHolder transform
HOM_PackedPrim(const HOM_PackedPrim &volume)
GLuint index
Definition: glcorearb.h:785