Manager that is responsible for simulation engines and simulation.
|DzSimulationEngine||findSimulationEngine ( String className )|
|DzSimulationEngine||getSimulationEngine ( Number which )|
|void||setActiveSimulationEngine ( DzSimulationEngine engine )|
|void||activeSimulationEngineChanged ( DzSimulationEngine engine )|
|void||simulationEngineAdded ( DzSimulationEngine engine )|
|void||simulationError ( String errorMsg )|
|void||simulationFinished ( Boolean succeeded )|
Responsible for the management of simulation engines, and more generally the process of performing a simulation.
There is only one instance of this manager in an application. This instance is created and owned by DzApp. Request the instance via DzApp::getSimulationMgr().
Clears all simulation data in the scene for the active simulation engine.
DzSimulationEngine : findSimulationEngine( String className )
DzSimulationEngine : getActiveSimulationEngine()
Number : getNumSimulationEngines()
DzSimulationEngine : getSimulationEngine( Number which )
whichis within the range [0, getNumSimulationEngines() - 1], the simulation engine at the given index, otherwise null.
Array : getSimulationEngineList()
Boolean : isSimulating()
trueif the application is currently simulating, otherwise
void : setActiveSimulationEngine( DzSimulationEngine engine )
Sets the active simulation engine for the application.
Performs a simulation on the scene with the given simulation settings. If no simulation settings are specified, then the current application simulation settings are used.
void : activeSimulationEngineChanged( DzSimulationEngine engine )
Emitted when the active simulation engine has changed.
void : simulationEngineAdded( DzSimulationEngine engine )
Emitted when a new simulation engine is added to the manager. This only occurs at startup as plug-ins are being loaded.
void : simulationError( String errorMsg )
Emitted when an error occurs while the active simulation engine is simulating.
void : simulationFinished( Boolean succeeded )
Emitted just after a simulation operation is finished. This is only emitted when a simulation operation is performed by calling simulate() - this includes all simulation operations that are started by the user from the interface. This may not include simulation operations performed by plug-ins, scripts, etc which do not call simulate().
trueif the simulation was successful,
falseif the simulation failed or was cancelled by the user.
void : simulationOptionDefaultsRestored()
Emitted when the default options for the active simulation engine have been restored.
void : simulationStarting()
Emitted just before a simulation operation begins. This is only emitted when a simulation operation is performed by calling simulate() - this includes all simulation operations that are started by the user from the interface. This may not include simulation operations performed by plug-ins, scripts, etc which do not call simulate().