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_Color.h"
14 #include "HOM_Drawable.h"
15 #include "HOM_Vector4.h"
16 
17 SWIGOUT(%rename(SimpleDrawable) HOM_SimpleDrawable;)
18 SWIGOUT(%feature("notabstract") HOM_SimpleDrawable;)
19 
20 class HOM_EnumValue;
21 class HOM_Geometry;
23 
24 class HOM_API HOM_SimpleDrawable : virtual public HOM_Drawable
25 {
26 public:
27 #ifdef SWIG
28 %extend
29 {
31  HOM_SceneViewer& scene_viewer,
32  HOM_EnumValue const &prim_type,
33  std::string const &name)
34  {
35  return HOM().newSimpleDrawable(scene_viewer, prim_type, name);
36  }
37 
39  HOM_SceneViewer& scene_viewer,
40  HOM_Geometry const &geometry,
41  std::string const &name)
42  {
43  return HOM().newSimpleDrawable(scene_viewer, geometry, name);
44  }
45 }
46 #else
48  { HOM_CONSTRUCT_OBJECT(this) }
49 #endif
50 
52  { HOM_DESTRUCT_OBJECT(this) }
53 
54  virtual std::string __repr__() = 0;
55 
56  virtual void enable(bool value) = 0;
57  virtual bool enabled() const = 0;
58 
59  virtual void setDisplayMode(HOM_EnumValue const & value) = 0;
60  virtual HOM_EnumValue& displayMode() const = 0;
61 
62  virtual void setWireframeColor(HOM_Color const &color) = 0;
63  virtual HOM_Color wireframeColor() = 0;
64 
65  virtual void setUseWireframeColor(bool value) = 0;
66  virtual bool useWireframeColor() = 0;
67 
68  virtual void setXray(bool value) = 0;
69  virtual bool isXray() = 0;
70 
71  virtual void setShowMaterials(bool value) = 0;
72  virtual bool isShowMaterials() = 0;
73 
74  virtual void setCastShadows(bool value) = 0;
75  virtual bool isCastShadows() = 0;
76 
77  virtual void setDrawOutline(bool value) = 0;
78  virtual bool isDrawOutline() = 0;
79 
80  virtual void setOutlineColor(HOM_Color const &color) = 0;
81  virtual void setOutlineColor(HOM_Vector4 const &color) = 0;
82  virtual HOM_Vector4 outlineColor() = 0;
83 
84  virtual void setSeparateOutline(bool value) = 0;
85  virtual bool isSeparateOutline() = 0;
86 
87  virtual void setOutlineOnly(bool value) = 0;
88  virtual bool isOutlineOnly() = 0;
89 
90  SWIGOUT(%newobject geometry;)
91  virtual HOM_Geometry* geometry() const = 0;
92  virtual void setGeometry(HOM_Geometry const &geometry) = 0;
93 
94  virtual void setVisibleInViewport(HOM_GeometryViewport const &viewport) = 0;
95  virtual void setVisibleInAllViewports() = 0;
96  virtual bool isVisibleInViewport(HOM_GeometryViewport const &viewport) = 0;
97 
98  virtual void _setMaterial(const std::string &material) = 0;
99  virtual void setIsControl(bool control) = 0;
100  virtual bool isControl() = 0;
101 };
102 
103 #endif // HOM_SimpleDrawable_h
104 
#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
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:1302
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()