AnimatLab  2
Test
VsDraggerHandler.h
1 #pragma once
2 
3 namespace VortexAnimatSim
4 {
5  namespace Visualization
6  {
7 
8  class VsDraggerHandler : public osgGA::GUIEventHandler
9  {
10  private:
11  Simulator *m_lpSim;
12 
13  osg::ref_ptr<osgViewer::Viewer> m_osgViewer;
14  osg::ref_ptr<osg::Viewport> m_osgViewport;
15 
16  osgManipulator::Dragger *m_osgActiveDragger;
17  osgManipulator::PointerInfo m_osgManipInfo;
18 
19  virtual void EndGripDrag();
20 
21  protected:
22  void pick(const osgGA::GUIEventAdapter& ea, GUIActionAdapter& aa);
23 
24  public:
25  VsDraggerHandler(Simulator *lpSim, osgViewer::Viewer *osgViewer, osg::Viewport *osgViewport = NULL);
26  ~VsDraggerHandler(void);
27 
29  virtual bool handle(const GUIEventAdapter& ea,GUIActionAdapter& us);
30  };
31 
32  }// end Visualization
33 }// end VortexAnimatSim
34 
virtual bool handle(const GUIEventAdapter &ea, GUIActionAdapter &us)
Classes for implementing the cm-labs vortex physics engine for AnimatLab.