HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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  ~HOM_PackedPrim() override
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
SIM_API const UT_StringHolder vertex
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
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:352
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
~HOM_PackedPrim() override
GA_API const UT_StringHolder transform
HOM_PackedPrim(const HOM_PackedPrim &volume)
HUSD_API UT_Matrix4D fullTransform(HdSceneDelegate *scene_del, const SdfPath &prim_path)
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
GLuint index
Definition: glcorearb.h:786