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;
20 class HOM_Vector4;
21 
22 class HOM_API HOM_SimpleDrawable : virtual public HOM_Drawable
23 {
24 public:
25 #ifdef SWIG
26 %extend
27 {
29  HOM_SceneViewer& scene_viewer,
30  HOM_EnumValue const &prim_type,
31  std::string const &name)
32  {
33  return HOM().newSimpleDrawable(scene_viewer, prim_type, name);
34  }
35 
37  HOM_SceneViewer& scene_viewer,
38  HOM_Geometry const &geometry,
39  std::string const &name)
40  {
41  return HOM().newSimpleDrawable(scene_viewer, geometry, name);
42  }
43 }
44 #else
46  { HOM_CONSTRUCT_OBJECT(this) }
47 #endif
48 
50  { HOM_DESTRUCT_OBJECT(this) }
51 
52  virtual std::string __repr__() = 0;
53 
54  virtual void enable(bool value) = 0;
55  virtual bool enabled() const = 0;
56 
57  virtual void setDisplayMode(HOM_EnumValue const & value) = 0;
58  virtual HOM_EnumValue& displayMode() const = 0;
59 
60  virtual void setWireframeColor(HOM_Color const &color) = 0;
61 
62  virtual void setXray(bool value) = 0;
63  virtual bool isXray() = 0;
64 
65  virtual void setShowMaterials(bool value) = 0;
66  virtual bool isShowMaterials() = 0;
67 
68  virtual void setCastShadows(bool value) = 0;
69  virtual bool isCastShadows() = 0;
70 
71  virtual void setDrawOutline(bool value) = 0;
72  virtual bool isDrawOutline() = 0;
73 
74  virtual void setOutlineColor(HOM_Color const &color) = 0;
75  virtual void setOutlineColor(HOM_Vector4 const &color) = 0;
76  virtual HOM_Vector4 outlineColor() = 0;
77 
78  virtual void setSeparateOutline(bool value) = 0;
79  virtual bool isSeparateOutline() = 0;
80 
81  virtual void setOutlineOnly(bool value) = 0;
82  virtual bool isOutlineOnly() = 0;
83 
84  SWIGOUT(%newobject geometry;)
85  virtual HOM_Geometry* geometry() const = 0;
86  virtual void setGeometry(HOM_Geometry const &geometry) = 0;
87 
88  virtual void setVisibleInViewport(HOM_GeometryViewport const &viewport) = 0;
89  virtual void setVisibleInAllViewports() = 0;
90  virtual bool isVisibleInViewport(HOM_GeometryViewport const &viewport) = 0;
91 };
92 
93 #endif // HOM_SimpleDrawable_h
94 
#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
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glcorearb.h:2539
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
GLuint const GLchar * name
Definition: glcorearb.h:786
GLuint color
Definition: glcorearb.h:1261
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
virtual HOM_SimpleDrawable * newSimpleDrawable(HOM_SceneViewer &scene_viewer, HOM_EnumValue const &prim_type, std::string const &name)=0
~HOM_SimpleDrawable() override
Definition: core.h:1131
HOM_API HOM_Module & HOM()