Manager that is responsible for simulation engines and simulation.
Inherits :
| DAZ Script | |
|---|---|
| DzError | clearSimulation () |
| DzSimulationEngine | findSimulationEngine ( String className ) |
| DzSimulationEngine | getActiveSimulationEngine () |
| Number | getNumSimulationEngines () |
| DzSimulationEngine | getSimulationEngine ( Number which ) |
| Array | getSimulationEngineList () |
| Boolean | isSimulating () |
| void | setActiveSimulationEngine ( DzSimulationEngine engine ) |
| DzError | simulate () |
| void | activeSimulationEngineChanged ( DzSimulationEngine engine ) |
| void | simulationEngineAdded ( DzSimulationEngine engine ) |
| void | simulationError ( String errorMsg ) |
| void | simulationFinished ( Boolean succeeded ) |
| void | simulationOptionDefaultsRestored () |
| void | simulationStarting () |
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().
See Also:
Since:
Clears all simulation data in the scene for the active simulation engine.
Return Value:
See Also:
DzSimulationEngine : findSimulationEngine( String className )
Return Value:
DzSimulationEngine : getActiveSimulationEngine()
Return Value:
Number : getNumSimulationEngines()
Return Value:
DzSimulationEngine : getSimulationEngine( Number which )
Return Value:
which is within the range [0, getNumSimulationEngines() - 1], the simulation engine at the given index, otherwise null.Array : getSimulationEngineList()
Return Value:
Boolean : isSimulating()
Return Value:
true if the application is currently simulating, otherwise false.void : setActiveSimulationEngine( DzSimulationEngine engine )
Sets the active simulation engine for the application.
Parameter(s):
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.
Return Value:
See Also:
void : activeSimulationEngineChanged( DzSimulationEngine engine )
Signature:“activeSimulationEngineChanged(DzSimulationEngine*)”
Emitted when the active simulation engine has changed.
Parameter(s):
void : simulationEngineAdded( DzSimulationEngine engine )
Signature:“simulationEngineAdded(DzSimulationEngine*)”
Emitted when a new simulation engine is added to the manager. This only occurs at startup as plug-ins are being loaded.
Parameter(s):
void : simulationError( String errorMsg )
Signature:“simulationError(const QString&)”
Emitted when an error occurs while the active simulation engine is simulating.
Parameter(s):
void : simulationFinished( Boolean succeeded )
Signature:“simulationFinished(bool)”
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().
Parameter(s):
true if the simulation was successful, false if the simulation failed or was cancelled by the user.See Also:
void : simulationOptionDefaultsRestored()
Signature:“simulationOptionDefaultsRestored()”
Emitted when the default options for the active simulation engine have been restored.
void : simulationStarting()
Signature:“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().
See Also: