4 #include "OsgMovableItem.h"
7 #include "OsgMouseSpring.h"
8 #include "OsgCameraManipulator.h"
9 #include "OsgSimulationWindowMgr.h"
22 OsgSimulationWindowMgr *m_vsWinMgr;
25 osg::ref_ptr<osg::MatrixTransform> m_grpScene;
28 osg::ref_ptr<osgManipulator::CommandManager> m_osgCmdMgr;
30 osg::AlphaFunc *m_osgAlphafunc;
32 double m_dblTotalStepTime;
33 long m_lStepTimeCount;
37 virtual void SnapshotStopFrame();
39 virtual void UpdateSimulationWindows();
41 osg::NotifySeverity ConvertTraceLevelToOSG();
43 osg::ref_ptr<osg::Node> m_Spline;
45 OsgMouseSpring *m_lpMouseSpring;
53 OsgMovableItem *TrackBody();
54 osg::MatrixTransform *OSGRoot() {
return m_grpScene.get();};
55 osgManipulator::CommandManager *OsgCmdMgr() {
return m_osgCmdMgr.get();};
63 OsgMouseSpring *MouseSpring() {
return m_lpMouseSpring;};
65 #pragma region HelperMethods
68 virtual unsigned long long GetTimerTick();
69 virtual double TimerDiff_n(
unsigned long long lStart,
unsigned long long lEnd);
70 virtual double TimerDiff_u(
unsigned long long lStart,
unsigned long long lEnd);
71 virtual double TimerDiff_m(
unsigned long long lStart,
unsigned long long lEnd);
72 virtual double TimerDiff_s(
unsigned long long lStart,
unsigned long long lEnd);
73 virtual void MicroSleep(
unsigned int iMicroTime);
75 virtual void WriteToConsole(std::string strMessage);
79 virtual void AlphaThreshold(
float fltValue);
81 virtual float *GetDataPointer(
const std::string &strDataType);
85 virtual void Initialize(
int argc,
const char **argv);
86 virtual void ShutdownSimulation();
87 virtual void ToggleSimulation();
88 virtual void StopSimulation();
89 virtual bool StartSimulation();
90 virtual bool PauseSimulation();
91 virtual void Save(std::string strFile);
Simulates the entire environment.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
Vortex physical structure implementation.
Declares the vortex MeshMgr class.
Declares the vortex heads-up display class.