AnimatLab
2
Test
|
Callback methods for the simulation object. More...
#include <ISimGUICallback.h>
Public Member Functions | |
ISimGUICallback (void) | |
Default constructor. More... | |
virtual | ~ISimGUICallback (void) |
Destructor. More... | |
virtual void | HandleCriticalError (std::string strError)=0 |
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)=0 |
Handle a non-critical error in the GUI. Non-critical errors are simply reported and the simulation stopped if it is running. More... | |
virtual void | NeedToStopSimulation ()=0 |
Callback to inform that GUI that the currently running simulation needs to be stopped. More... | |
Callback methods for the simulation object.
Definition at line 11 of file ISimGUICallback.h.
AnimatSim::ISimGUICallback::ISimGUICallback | ( | void | ) |
|
virtual |
|
pure virtual |
Handle critical-errors in the GUI. A critical error will report the error and then shut the entire application down.
strError | The error. |
Implemented in AnimatSim::SimulationThread.
|
pure 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. |
Implemented in AnimatSim::SimulationThread.
|
pure 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.
Implemented in AnimatSim::SimulationThread.
Referenced by AnimatSim::Simulator::CheckEndSimulationTime().