HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_SimpleDrawable.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_SimpleDrawable_h
10 #define HOM_SimpleDrawable_h
11 
12 #include "HOM_API.h"
13 #include "HOM_Drawable.h"
14 
15 SWIGOUT(%rename(SimpleDrawable) HOM_SimpleDrawable;)
16 SWIGOUT(%feature("notabstract") HOM_SimpleDrawable;)
17 
18 class HOM_Matrix4;
19 
20 class HOM_API HOM_SimpleDrawable : virtual public HOM_Drawable
21 {
22 public:
23 #ifdef SWIG
24 %extend
25 {
27  HOM_SceneViewer& scene_viewer,
28  HOM_EnumValue const &prim_type,
29  std::string const &name)
30  {
31  return HOM().newSimpleDrawable(scene_viewer, prim_type, name);
32  }
33 
35  HOM_SceneViewer& scene_viewer,
36  HOM_Geometry const &geometry,
37  std::string const &name)
38  {
39  return HOM().newSimpleDrawable(scene_viewer, geometry, name);
40  }
41 }
42 #else
44  { HOM_CONSTRUCT_OBJECT(this) }
45 #endif
46 
48  { HOM_DESTRUCT_OBJECT(this) }
49 
50  virtual std::string __repr__() = 0;
51 
52  virtual void enable(bool value) = 0;
53  virtual bool enabled() const = 0;
54 
55  virtual void setDisplayMode(HOM_EnumValue const & value) = 0;
56  virtual HOM_EnumValue& displayMode() const = 0;
57 
58  virtual void setWireframeColor(HOM_Color const &color) = 0;
59 
60  virtual void setShowMaterials(bool value) = 0;
61  virtual bool isShowMaterials() = 0;
62 
63  SWIGOUT(%newobject geometry;)
64  virtual HOM_Geometry* geometry() const = 0;
65  virtual void setGeometry(HOM_Geometry const &geometry) = 0;
66 };
67 
68 #endif // HOM_SimpleDrawable_h
69 
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1210
GLuint const GLchar * name
Definition: glew.h:1814
OIIO_API bool rename(string_view from, string_view to, std::string &err)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1209
GLuint color
Definition: glew.h:7902
GLsizei const GLchar *const * string
Definition: glew.h:1844
GLenum GLsizei const GLuint GLboolean enabled
Definition: glew.h:2579
virtual HOM_SimpleDrawable * newSimpleDrawable(HOM_SceneViewer &scene_viewer, HOM_EnumValue const &prim_type, std::string const &name)=0
~HOM_SimpleDrawable() override
HOM_API HOM_Module & HOM()
GLsizei const GLfloat * value
Definition: glew.h:1849
GLboolean enable
Definition: glew.h:2745