HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_ViewerDragger2D.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_ViewerDragger2D_h
10 #define HOM_ViewerDragger2D_h
11 
12 #include "HOM_API.h"
13 #include "HOM_ElemPtr.h"
14 #include "HOM_Matrix3.h"
15 #include "HOM_Module.h"
16 #include "HOM_Vector3.h"
17 #include <UT/UT_Tuple.h>
18 
19 class HOM_UIEvent;
20 
21 SWIGOUT(%rename(ViewerDragger2D) HOM_ViewerDragger2D;)
22 
24 {
25 public:
26  typedef std::map<std::string, hboost::any> DragValueMap;
27 
29  { HOM_CONSTRUCT_OBJECT(this) }
30 
32  { HOM_DESTRUCT_OBJECT(this) }
33 
34  virtual bool update(HOM_UIEvent& event) = 0;
35 
36  virtual bool valid() const = 0;
37 
38  SWIGOUT(%kwargs startDrag;)
39  virtual void startDrag( const HOM_Vector3 & start_pos,
40  double radius=0.0,
41  const HOM_Matrix3 & orient=HOM_Matrix3(1),
42  const HOM_Vector3 & plane_dir=HOM_Vector3(0,0,1)) = 0;
43  virtual void endDrag() = 0;
44 
45  virtual DragValueMap dragXY() = 0;
46  virtual DragValueMap dragAlongX() = 0;
47  virtual DragValueMap dragAlongY() = 0;
48  virtual DragValueMap dragRotate() = 0;
49 
50  virtual HOM_Vector3 position() const = 0;
51  virtual HOM_Vector3 startPosition() const = 0;
52  virtual HOM_Vector3 startDirection() const = 0;
53  virtual HOM_Vector3 startRotatePosition() const = 0;
54 
55 };
56 
57 #endif // HOM_ViewerDragger2D_h
58 
std::map< std::string, hboost::any > DragValueMap
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1398
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
struct _cl_event * event
Definition: glcorearb.h:2961
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1397
GA_API const UT_StringHolder orient
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
SIM_API const UT_StringHolder position