cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
osaOSGPick.h
Go to the documentation of this file.
1 #ifndef _osaOSGPick_h
2 #define _osaOSGPick_h
3 
4 #include <osgGA/GUIEventHandler>
5 #include <osgViewer/Viewer>
6 
9 
10 class CISST_EXPORT osaOSGPick : public osgGA::GUIEventHandler{
11 
12  protected:
13 
14  double mousex;
15  double mousey;
16 
17  enum Event{ PUSH, DRAG, RELEASE };
18 
19  bool Pick( Event e, double x, double y, osgViewer::Viewer* viewer );
20 
21  virtual void PickHandler( osaOSGBody*, Event, double, double ){}
22 
23  public:
24 
25  osaOSGPick();
26 
27  // OSG virtual method
28  bool handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa );
29 
30 };
31 
32 #endif
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Definition: osaOSGBody.h:34
Definition: osaOSGPick.h:10
double mousey
Definition: osaOSGPick.h:15
Event
Definition: osaOSGPick.h:17
virtual void PickHandler(osaOSGBody *, Event, double, double)
Definition: osaOSGPick.h:21
double mousex
Definition: osaOSGPick.h:14