![]() |
VR-Forces 4.10 Class Documentation
|
Classes | |
| class | DtWriteSnapshotJob |
Public Member Functions | |
| DtSnapshotManager (DtCgf *cgf) | |
| virtual | ~DtSnapshotManager () |
| virtual bool | init () |
| virtual void | tick () |
| virtual void | setSimTime (double) |
| Sets current simulation time so internal variable for heartbeat and snapshot can be initialized appropriately. More... | |
| virtual void | enablePeriodicSnapshots (bool flag) |
| Default is disabled. More... | |
| virtual bool | periodicSnapshotsEnabled () const |
| virtual void | setSnapshotPeriod (double period) |
| Default is 1 second. More... | |
| virtual double | snapshotPeriod () const |
| virtual void | setNumberOfSnapshotsToKeep (int) |
| Number of periodic snapshots to keep around. 0 means keep all. More... | |
| virtual int | numberOfSnapshotsToKeep () const |
| virtual void | setPauseCleanup (bool) |
| Pauses cleanup of snapshotss. More... | |
| bool | pauseCleanup () const |
| virtual void | clear (bool allButBase=false) |
| virtual bool | isBaseSnapshot (DtInMemorySnapshot *) const |
| Returns true if this is the base snapshot. More... | |
| virtual DtInMemorySnapshot * | takeSnapshot (bool isPeriodic=false, bool makeBase=false) |
| Snapshots at the current point. More... | |
| virtual void | rollbackToSimTime (double simTime) |
| Rolls back the snapshot to the current simulation time. More... | |
| virtual void | rollbackTo (DtInMemorySnapshot *, int scenarioRunId=0) |
| Rolls back to the given in memory snapshot. If supplied, the new scenario run id. More... | |
| virtual void | clearOutStaleSnapshots () |
| Clears out snapshots that are not within the window of snapshot keeping. More... | |
| virtual DtInMemorySnapshot * | snapshotFor (int id) const |
| Returns the in memory snapshot for this id. More... | |
| virtual void | setSnapshotHeartbeatTime (double d) |
| Sets the tim to send out all the snapshots. Default is 2 seconds or the periodic snapshot time, whichever is greater. More... | |
| virtual double | snapshotHeartbeatTime () const |
| virtual void | sendCurrentSnapshots () |
| Sends the current snapshots out. More... | |
| virtual bool | saveSnapshot (const DtFilename &saveFolder, DtCompressedFileTransporter &tr, DtIfSaveScenario *msg, const DtScenario ¤tScenario, const DtSimulationAddress &requestor) |
| Saves the closest snapshot of the given sim time to save. More... | |
| virtual DtInMemorySnapshot * | snapshotClosestToSimTime (double simTime) const |
| Returns the snapshot closest to the given sim time. More... | |
| virtual void | removeSnapshotsAfter (double simTime) |
| Removes all snapshots after the given simulation time. More... | |
| virtual bool | hasSnapshots () const |
| Returns true if there are snapshots in the manager. More... | |
| virtual void | clearAllSnapshots () |
| Clears out all snapshots. If there is no scenario loaded also closes terrain. More... | |
Protected Types | |
| typedef std::map< int, DtInMemorySnapshot * > | Snapshots |
| typedef std::map< int, DtVrfCallbackQueue::CallbackInterface::Ptr > | SavingSnapshots |
Protected Member Functions | |
| virtual void | processSettings (const DtPeriodicSnapshotSettings *) |
| virtual void | processSnapshotsRequest (DtSimMessage *) |
| virtual void | processRollbackToSnapshot (DtSimMessage *) |
| virtual void | finishSavingSnapshots () |
| Any snapshot runs that are done save here. More... | |
Static Protected Member Functions | |
| static void | clearAllSnapshotsCallback (DtSimMessage *, void *) |
| Will tell all locally vrf simulated object so be ready for reinitialize, delete all the objects. More... | |
| static void | settingConsumerCallback (const DtSettingsObject *settingsObject, void *usr) |
| static void | requestSnapshots (DtSimMessage *, void *) |
| static void | rollbackToSnapshot (DtSimMessage *, void *) |
Private Member Functions | |
| DtSnapshotManager (const DtSnapshotManager &) | |
| Not implemented. More... | |
| DtSnapshotManager & | operator= (const DtSnapshotManager &) |
| Not implemented. More... | |
|
protected |
|
protected |
|
private |
Not implemented.
| DtSnapshotManager::DtSnapshotManager | ( | DtCgf * | cgf | ) |
|
virtual |
|
private |
Not implemented.
|
virtual |
|
virtual |
|
virtual |
Sets current simulation time so internal variable for heartbeat and snapshot can be initialized appropriately.
|
virtual |
Default is disabled.
|
virtual |
|
virtual |
Default is 1 second.
|
virtual |
|
virtual |
Number of periodic snapshots to keep around. 0 means keep all.
|
virtual |
|
virtual |
Pauses cleanup of snapshotss.
Use when rolling back just to be sure the rollback snapshot is not mistakenly cleaned up
|
inline |
|
virtual |
|
virtual |
Returns true if this is the base snapshot.
|
virtual |
Snapshots at the current point.
Will not effect the periodic snapshot timing. If makeBase is true makes this snapshot the new "base" snapshot (which is one the front-end can rewind to by a single click). If makeBase is true and periodic is also true, periodic will be turned to non-periodic
|
virtual |
Rolls back the snapshot to the current simulation time.
Note that this is only good for this cgf. In a multiple cgf environment calling this method will have unpredictable, and possibly buggy, results
|
virtual |
Rolls back to the given in memory snapshot. If supplied, the new scenario run id.
|
virtual |
Clears out snapshots that are not within the window of snapshot keeping.
|
virtual |
Returns the in memory snapshot for this id.
|
virtual |
Sets the tim to send out all the snapshots. Default is 2 seconds or the periodic snapshot time, whichever is greater.
|
virtual |
|
virtual |
Sends the current snapshots out.
|
virtual |
Saves the closest snapshot of the given sim time to save.
If none exists returns false.
|
virtual |
Returns the snapshot closest to the given sim time.
|
virtual |
Removes all snapshots after the given simulation time.
|
virtual |
Returns true if there are snapshots in the manager.
|
virtual |
Clears out all snapshots. If there is no scenario loaded also closes terrain.
|
staticprotected |
Will tell all locally vrf simulated object so be ready for reinitialize, delete all the objects.
|
staticprotected |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
protectedvirtual |
Any snapshot runs that are done save here.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |