HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_ViewerEvent.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_ViewerEvent_h
10 #define HOM_ViewerEvent_h
11 
12 #include "HOM_API.h"
13 #include "HOM_ElemPtr.h"
14 #include "HOM_UIEvent.h"
15 #include <UT/UT_Tuple.h>
16 class HOM_Vector3;
17 
19 
20 SWIGOUT(%feature("notabstract") HOM_ViewerEvent;)
21 SWIGOUT(%rename(ViewerEvent) HOM_ViewerEvent;)
22 
23 class HOM_API HOM_ViewerEvent : virtual public HOM_UIEvent
24 {
25 public:
26 #ifdef SWIG
27 %extend
28 {
30  {
31  return HOM().newViewerEvent(sceneViewer, val);
32  }
33 }
34 #else
36  { HOM_CONSTRUCT_OBJECT(this) }
37 #endif
38 
39  ~HOM_ViewerEvent() override
40  { HOM_DESTRUCT_OBJECT(this) }
41 
42  SWIGOUT(virtual std::string __repr__() = 0;)
43 
45  virtual std::map<std::string, hboost::any> snappingRay() = 0;
46  virtual UT_Tuple<HOM_ElemPtr<HOM_Vector3>, HOM_ElemPtr<HOM_Vector3> > screenToRay(double scrx, double scry) = 0;
47 
48  SWIGOUT(%newobject curViewport;)
49  virtual HOM_GeometryViewport *curViewport() = 0;
50 };
51 
52 #endif // HOM_ViewerEvent_h
53 
~HOM_ViewerEvent() override
#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
std::tuple< Types...> UT_Tuple
Definition: UT_Tuple.h:53
#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_ViewerEvent * newViewerEvent(HOM_SceneViewer &sceneViewer, int64 val)=0
long long int64
Definition: SYS_Types.h:116
GLuint GLfloat * val
Definition: glcorearb.h:1607
HOM_API HOM_Module & HOM()