HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_Polygon.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_Polygon_h__
10 #define __HOM_Polygon_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Face.h"
14 
15 SWIGOUT(%rename(Polygon) HOM_Polygon;)
16 
17 class HOM_API HOM_Polygon : virtual public HOM_Face
18 {
19 public:
21  { HOM_CONSTRUCT_OBJECT(this) }
22 
23  // Because the lowermost base classes initialize the virtual bases
24  // before any non-virtual bases, the correct thing to do here is
25  // explicitly call the constructor for HOM_Prim.
26  HOM_Polygon(const HOM_Polygon &polygon)
27  : HOM_Prim(polygon), HOM_Face(polygon)
28  { HOM_CONSTRUCT_OBJECT(this) }
29 
30  ~HOM_Polygon() override
31  { HOM_DESTRUCT_OBJECT(this) }
32 
33  // Let swig know we're overriding __repr__ for this class so it doesn't
34  // provide its own __repr__.
35  SWIGOUT(virtual std::string __repr__() = 0;)
36 };
37 
38 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
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
HOM_Polygon(const HOM_Polygon &polygon)
Definition: HOM_Polygon.h:26
~HOM_Polygon() override
Definition: HOM_Polygon.h:30
#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)