HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_ViewerStateDragger.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_ViewerStateDragger_h
10 #define HOM_ViewerStateDragger_h
11 
12 #include "HOM_API.h"
13 #include "HOM_Module.h"
14 #include "HOM_ElemPtr.h"
15 #include "HOM_ViewerDragger.h"
16 #include <UT/UT_Tuple.h>
17 
18 class HOM_Matrix4;
19 
20 SWIGOUT(%feature("notabstract") HOM_ViewerStateDragger;)
21 SWIGOUT(%rename(ViewerStateDragger) HOM_ViewerStateDragger;)
22 
24 {
25 public:
26 
27 #ifdef SWIG
28 %extend
29 {
30  %kwargs HOM_ViewerStateDragger;
31  HOM_ViewerStateDragger(std::string const & name=std::string(), HOM_Matrix4 const & xform=HOM_Matrix4(1.0),
32  HOM_Matrix4 const & inv_xform=HOM_Matrix4(1.0))
33  {
34  return HOM().newViewerStateDragger(name, xform, inv_xform);
35  }
36 }
37 #else
39  { HOM_CONSTRUCT_OBJECT(this) }
40 #endif
41 
43  { HOM_DESTRUCT_OBJECT(this) }
44 
45  virtual std::string __repr__() = 0;
46 
47  virtual void setTransform(HOM_Matrix4 const & xform) = 0;
48  virtual void setInverseTransform(HOM_Matrix4 const & inv_xform) = 0;
49  virtual HOM_Matrix4 transform() const = 0;
50  virtual HOM_Matrix4 inverseTransform() const = 0;
51 };
52 
53 #endif // HOM_ViewerStateDragger_h
54 
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1238
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:353
GLuint const GLchar * name
Definition: glcorearb.h:785
GLuint GLenum GLenum transform
Definition: glew.h:15055
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1237
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
virtual HOM_ViewerStateDragger * newViewerStateDragger(std::string const &name, HOM_Matrix4 const &xform, HOM_Matrix4 const &inv_xform)=0
HOM_API HOM_Module & HOM()