5 namespace Visualization
13 osg::ref_ptr<osgViewer::Viewer> m_osgViewer;
15 osg::ref_ptr<osgGA::TrackballManipulator> m_osgManip;
19 BodyPart *m_lpTrackBody;
21 float m_fltCameraPosX, m_fltCameraPosY, m_fltCameraPosZ;
26 virtual void InitEmbedded(Simulator *lpSim,
VsSimulator *lpVsSim);
27 virtual void InitStandalone(Simulator *lpSim,
VsSimulator *lpVsSim);
28 virtual void TrackCamera();
34 virtual CStdFPoint GetCameraPosition();
36 virtual BodyPart *TrackBody() {
return m_lpTrackBody;};
37 virtual osg::Matrix GetScreenMatrix();
38 virtual osg::Viewport* GetViewport();
39 virtual osgViewer::Viewer *Viewer() {
return m_osgViewer.get();};
41 virtual void SetupTrackCamera(
bool bResetEyePos);
42 virtual void SetCameraLookAt(CStdFPoint oTarget,
bool bResetEyePos);
43 virtual void SetCameraPositionAndLookAt(CStdFPoint oCameraPos, CStdFPoint oTarget);
44 virtual void SetCameraPositionAndLookAt(osg::Vec3d vCameraPos, osg::Vec3d vTarget);
45 virtual void SetCameraPostion(CStdFPoint vCameraPos);
47 virtual float *GetDataPointer(
const std::string &strDataType);
49 virtual void UpdateBackgroundColor();
51 virtual void Initialize();
52 virtual void Update();
55 virtual void OnGetFocus();
56 virtual void OnLoseFocus();
Base class for a simulation window.
bool m_bEyePosSet
true if we have set the eye position at least once.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.