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,
OsgSimulator *lpVsSim);
27 virtual void InitStandalone(Simulator *lpSim,
OsgSimulator *lpVsSim);
28 virtual void TrackCamera();
35 virtual CStdFPoint GetCameraPosition();
37 virtual BodyPart *TrackBody() {
return m_lpTrackBody;};
38 virtual osg::Matrix GetScreenMatrix();
39 virtual osg::Viewport* GetViewport();
40 virtual osgViewer::Viewer *Viewer() {
return m_osgViewer.get();};
42 virtual void SetupTrackCamera(
bool bResetEyePos);
43 virtual void SetCameraLookAt(CStdFPoint oTarget,
bool bResetEyePos);
44 virtual void SetCameraPositionAndLookAt(CStdFPoint oCameraPos, CStdFPoint oTarget);
45 virtual void SetCameraPositionAndLookAt(osg::Vec3d vCameraPos, osg::Vec3d vTarget);
46 virtual void SetCameraPostion(CStdFPoint vCameraPos);
48 virtual float *GetDataPointer(
const std::string &strDataType);
50 virtual void UpdateBackgroundColor();
52 virtual void Initialize();
53 virtual void Update();
56 virtual void OnGetFocus();
57 virtual void OnLoseFocus();
bool m_bEyePosSet
true if we have set the eye position at least once.
Base class for a simulation window.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.