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_NonCopyable.h>
17 #include <UT/UT_Tuple.h>
18 
19 class HOM_Matrix4;
20 
21 SWIGOUT(%feature("notabstract") HOM_ViewerStateDragger;)
22 SWIGOUT(%rename(ViewerStateDragger) HOM_ViewerStateDragger;)
23 
25 {
26 public:
27 
28 #ifdef SWIG
29 %extend
30 {
31  %kwargs HOM_ViewerStateDragger;
32  HOM_ViewerStateDragger(std::string const & name=std::string(), HOM_Matrix4 const & xform=HOM_Matrix4(1.0),
33  HOM_Matrix4 const & inv_xform=HOM_Matrix4(1.0))
34  {
35  return HOM().newViewerStateDragger(name, xform, inv_xform);
36  }
37 }
38 #else
40  { HOM_CONSTRUCT_OBJECT(this) }
41 #endif
42 
44  { HOM_DESTRUCT_OBJECT(this) }
45 
46  // SWIG has problems with parsing deleted operator=()
47 #ifndef SWIG
49 #endif
50 
51  virtual std::string __repr__() = 0;
52 
53  virtual void setTransform(HOM_Matrix4 const & xform) = 0;
54  virtual void setInverseTransform(HOM_Matrix4 const & inv_xform) = 0;
55  virtual HOM_Matrix4 transform() const = 0;
56  virtual HOM_Matrix4 inverseTransform() const = 0;
57 };
58 
59 #endif // HOM_ViewerStateDragger_h
60 
#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
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
GLuint const GLchar * name
Definition: glcorearb.h:786
GA_API const UT_StringHolder transform
virtual HOM_ViewerStateDragger * newViewerStateDragger(std::string const &name, HOM_Matrix4 const &xform, HOM_Matrix4 const &inv_xform)=0
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
HOM_API HOM_Module & HOM()