5 namespace Visualization
21 osg::Vec3 m_vPickPoint;
22 osg::Vec3 m_vPickNormal;
23 MovableItem *m_lpPicked;
24 osg::Vec3 m_vSelectedVertex;
26 osg::Quat m_quatRotation;
29 osg::ref_ptr<osgViewer::Viewer> m_osgViewer;
30 osg::ref_ptr<osg::Viewport> m_osgViewport;
32 virtual const osg::Camera *GetCamera(
float x,
float y,
float &local_x,
float &local_y);
33 virtual const osg::Camera *GetCamera(
float x,
float y);
35 virtual osg::Vec3 FindSelectedVertex(osgUtil::LineSegmentIntersector::Intersections::iterator &hitr);
38 bool CanDoMouseSpring();
39 bool DoMouseSpring(
const GUIEventAdapter& ea,
float x,
float y);
40 void DoPan(
const GUIEventAdapter& ea,
float x,
float y);
41 void DoZoom(
const GUIEventAdapter& ea,
float x,
float y);
42 void DoRotate(
const GUIEventAdapter& ea,
float x,
float y);
44 osg::Vec3 ConvertMouseTo3D(
const GUIEventAdapter& ea,
int x,
int y, osg::Vec3 vGrabPos);
46 void pick(
const osgGA::GUIEventAdapter& ea, GUIActionAdapter& aa);
47 float tb_project_to_sphere(
float r,
float x,
float y);
50 OsgCameraManipulator(Simulator *lpSim, osgViewer::Viewer *osgViewer, osg::Viewport *osgViewport = NULL);
54 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)