HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_ViewerStateDragger2D.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_ViewerStateDragger2D_h
10 #define HOM_ViewerStateDragger2D_h
11 
12 #include "HOM_API.h"
13 #include "HOM_Module.h"
14 #include "HOM_ElemPtr.h"
15 #include "HOM_ViewerDragger2D.h"
16 #include <UT/UT_NonCopyable.h>
17 #include <UT/UT_Tuple.h>
18 
19 class HOM_Matrix4;
20 
21 SWIGOUT(%feature("notabstract") HOM_ViewerStateDragger2D;)
22 SWIGOUT(%rename(ViewerStateDragger2D) HOM_ViewerStateDragger2D;)
23 
25 {
26 public:
27 
28 #ifdef SWIG
29 %extend
30 {
32  HOM_ViewerStateDragger2D(
33  HOM_PaneTab& hpane_tab,
34  HOM_Matrix4 const & xform=HOM_Matrix4(1.0),
35  HOM_Matrix4 const & inv_xform=HOM_Matrix4(1.0))
36  {
37  return HOM().newViewerStateDragger2D(hpane_tab, xform, inv_xform);
38  }
39 }
40 #else
42  { HOM_CONSTRUCT_OBJECT(this) }
43 #endif
44 
46  { HOM_DESTRUCT_OBJECT(this) }
47 
48  // SWIG has problems with parsing deleted operator=()
49 #ifndef SWIG
51 #endif
52 
53  virtual std::string __repr__() = 0;
54 
55  virtual void setTransform(HOM_Matrix4 const & xform) = 0;
56  virtual void setInverseTransform(HOM_Matrix4 const & inv_xform) = 0;
57  virtual HOM_Matrix4 transform() const = 0;
58  virtual HOM_Matrix4 inverseTransform() const = 0;
59 };
60 
61 #endif // HOM_ViewerStateDragger2D_h
62 
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1398
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:312
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1397
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
GA_API const UT_StringHolder transform
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
GU_API void xform(CE_Context &context, bool recompile, int npts, const cl::Buffer &outPos, const cl::Buffer &inPos, const cl::Buffer &surfacexform, const cl::Buffer *grp=nullptr)
HOM_API HOM_Module & HOM()
virtual HOM_ViewerStateDragger2D * newViewerStateDragger2D(HOM_PaneTab &hpanetab, HOM_Matrix4 const &xform, HOM_Matrix4 const &inv_xform)=0