HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_Handle.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_Handle_h
10 #define HOM_Handle_h
11 
12 #include "HOM_API.h"
13 #include "HOM_Module.h"
14 #include "HOM_Defines.h"
15 
17 SWIGOUT(%feature("notabstract") HOM_Handle;)
18 
20 {
21 public:
22 #ifdef SWIG
23 %extend
24 {
25  HOM_Handle(
26  HOM_SceneViewer& scene_viewer,
27  std::string const &name )
28  {
29  return HOM().newHandle(scene_viewer, name);
30  }
31 }
32 #else
34  {
36  }
37 #endif
38 
39  virtual ~HOM_Handle()
40  {
41  HOM_DESTRUCT_OBJECT(this)
42  }
43 
44  virtual std::string __repr__() = 0;
45  virtual std::string name() const = 0;
46  SWIGOUT(%warnfilter(321) type;)
47  virtual std::string type() const = 0;
48  virtual void show(bool value) = 0;
49  SWIGOUT(%kwargs update;)
50  virtual void update(bool immediate=false) = 0;
51  virtual bool visible() const = 0;
52  virtual void enableParms(std::vector<std::string> const & parm_names=std::vector<std::string>()) = 0;
53  virtual void disableParms(std::vector<std::string> const & parm_names=std::vector<std::string>()) = 0;
54  virtual void applySettings(std::string const& settings) = 0;
55 };
56 
57 #endif // HOM_Handle_h
58 
virtual HOM_Handle * newHandle(HOM_SceneViewer &scene_viewer, std::string const &name)=0
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1210
GLuint const GLchar * name
Definition: glew.h:1814
virtual ~HOM_Handle()
Definition: HOM_Handle.h:39
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 GLuint GLsizei GLenum type
Definition: glew.h:1253
GLsizei const GLchar *const * string
Definition: glew.h:1844
HOM_API HOM_Module & HOM()
GLsizei const GLfloat * value
Definition: glew.h:1849
type
Definition: core.h:528
void * Handle
Definition: plugin.h:53