5 namespace Visualization
20 osg::Vec3 m_vPickPoint;
21 osg::Vec3 m_vPickNormal;
22 MovableItem *m_lpPicked;
23 osg::Vec3 m_vSelectedVertex;
25 osg::Quat m_quatRotation;
28 osg::ref_ptr<osgViewer::Viewer> m_osgViewer;
29 osg::ref_ptr<osg::Viewport> m_osgViewport;
31 virtual const osg::Camera *GetCamera(
float x,
float y,
float &local_x,
float &local_y);
32 virtual const osg::Camera *GetCamera(
float x,
float y);
34 virtual osg::Vec3 FindSelectedVertex(osgUtil::LineSegmentIntersector::Intersections::iterator &hitr);
37 bool CanDoMouseSpring();
38 bool DoMouseSpring(
const GUIEventAdapter& ea,
float x,
float y);
39 void DoPan(
const GUIEventAdapter& ea,
float x,
float y);
40 void DoZoom(
const GUIEventAdapter& ea,
float x,
float y);
41 void DoRotate(
const GUIEventAdapter& ea,
float x,
float y);
43 osg::Vec3 ConvertMouseTo3D(
const GUIEventAdapter& ea,
int x,
int y, osg::Vec3 vGrabPos);
45 void pick(
const osgGA::GUIEventAdapter& ea, GUIActionAdapter& aa);
46 float tb_project_to_sphere(
float r,
float x,
float y);
49 VsCameraManipulator(Simulator *lpSim, osgViewer::Viewer *osgViewer, osg::Viewport *osgViewport = NULL);
53 virtual bool handle(
const GUIEventAdapter& ea,GUIActionAdapter& us);
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
virtual bool handle(const GUIEventAdapter &ea, GUIActionAdapter &us)