17 #ifndef GEPETTO_GUI_PICK_HANDLER_HH
18 #define GEPETTO_GUI_PICK_HANDLER_HH
22 #include <osg/ref_ptr>
23 #include <osgGA/GUIEventHandler>
26 #include <QModelIndex>
31 class LineSegmentIntersector;
43 virtual bool handle(
const osgGA::GUIEventAdapter& ea,
44 osgGA::GUIActionAdapter& aa );
46 void getUsage (osg::ApplicationUsage &usage)
const;
49 void computeIntersection (osgGA::GUIActionAdapter& aa,
50 const float& x,
const float& y);
52 void selectionNodeUnderCursor (osgGA::GUIActionAdapter& aa,
53 const float& x,
const float& y,
int modMask);
55 void centerViewToMouse (osgGA::GUIActionAdapter& aa,
56 const float& x,
const float& y);
58 void setCameraToSelected (osgGA::GUIActionAdapter& aa,
bool zoom);
66 osg::ref_ptr<osgUtil::LineSegmentIntersector> intersector_;
71 #endif // GEPETTO_GUI_PICK_HANDLER_HH