AnimatLab
2
Test
|
Public Member Functions | |
virtual void | HandleCriticalError (std::string strError) |
Handle critical-errors in the GUI. A critical error will report the error and then shut the entire application down. More... | |
virtual void | HandleNonCriticalError (std::string strError) |
Handle a non-critical error in the GUI. Non-critical errors are simply reported and the simulation stopped if it is running. More... | |
virtual bool | NeedToStopSim () |
virtual void | NeedToStopSimulation () |
Callback to inform that GUI that the currently running simulation needs to be stopped. More... | |
virtual void | PauseSimulation () |
virtual void | ResetSimulation () |
virtual void | ResumeSimulation () |
virtual void | ShutdownSimulation () |
virtual Simulator * | Sim () |
virtual void | Simulate (float fltTime=-1, bool bBlocking=true, float fltWaitTime=-1) |
virtual void | StartSimulation (std::string strSimFile, bool bForceNoWindows=false) |
virtual void | StopSimulation () |
Public Member Functions inherited from AnimatSim::ISimGUICallback | |
ISimGUICallback (void) | |
Default constructor. More... | |
virtual | ~ISimGUICallback (void) |
Destructor. More... | |
Protected Member Functions | |
virtual void | ProcessSimulation () |
Protected Attributes | |
bool | m_bNeedToStop |
bool | m_bThreadProcessing |
Simulator * | m_lpSim |
boost::thread | m_SimThread |
boost::interprocess::interprocess_condition | m_WaitForInitEndCond |
boost::interprocess::interprocess_mutex | m_WaitForInitEndMutex |
boost::interprocess::interprocess_condition | m_WaitForSimEndCond |
boost::interprocess::interprocess_mutex | m_WaitForSimEndMutex |
Definition at line 6 of file SimulationThread.h.
|
virtual |
Handle critical-errors in the GUI. A critical error will report the error and then shut the entire application down.
strError | The error. |
Implements AnimatSim::ISimGUICallback.
Definition at line 229 of file SimulationThread.cpp.
|
virtual |
Handle a non-critical error in the GUI. Non-critical errors are simply reported and the simulation stopped if it is running.
strError | The error. |
Implements AnimatSim::ISimGUICallback.
Definition at line 222 of file SimulationThread.cpp.
|
virtual |
Callback to inform that GUI that the currently running simulation needs to be stopped.
This is used when the EndSimTime property is set to allow the simulation to automatically stop after a set amount of time. When the simulation reaches that point it pauses the simulation and fires this event. The GUI then stops the simulation.
Implements AnimatSim::ISimGUICallback.
Definition at line 217 of file SimulationThread.cpp.