AnimatLab  2
Test
AnimatSim::ISimGUICallback Class Referenceabstract

Callback methods for the simulation object. More...

#include <ISimGUICallback.h>

+ Inheritance diagram for AnimatSim::ISimGUICallback:
+ Collaboration diagram for AnimatSim::ISimGUICallback:

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...
 

Detailed Description

Callback methods for the simulation object.

Author
dcofer
Date
3/25/2011

Definition at line 11 of file ISimGUICallback.h.

Constructor & Destructor Documentation

AnimatSim::ISimGUICallback::ISimGUICallback ( void  )

Default constructor.

Author
dcofer
Date
3/25/2011

Definition at line 13 of file ISimGUICallback.cpp.

AnimatSim::ISimGUICallback::~ISimGUICallback ( void  )
virtual

Destructor.

Author
dcofer
Date
3/25/2011

Definition at line 23 of file ISimGUICallback.cpp.

Member Function Documentation

virtual void AnimatSim::ISimGUICallback::HandleCriticalError ( std::string  strError)
pure virtual

Handle critical-errors in the GUI. A critical error will report the error and then shut the entire application down.

Author
dcofer
Date
7/5/2011
Parameters
strErrorThe error.

Implemented in AnimatSim::SimulationThread.

virtual void AnimatSim::ISimGUICallback::HandleNonCriticalError ( std::string  strError)
pure virtual

Handle a non-critical error in the GUI. Non-critical errors are simply reported and the simulation stopped if it is running.

Author
dcofer
Date
7/5/2011
Parameters
strErrorThe error.

Implemented in AnimatSim::SimulationThread.

virtual void AnimatSim::ISimGUICallback::NeedToStopSimulation ( )
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.

Author
dcofer
Date
3/25/2011

Implemented in AnimatSim::SimulationThread.

Referenced by AnimatSim::Simulator::CheckEndSimulationTime().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: