| DtSnapshotManager::DtSnapshotManager |
( |
DtCgf * |
cgf | ) |
|
| virtual DtSnapshotManager::~DtSnapshotManager |
( |
| ) |
|
|
virtual |
| virtual bool DtSnapshotManager::init |
( |
| ) |
|
|
virtual |
| virtual void DtSnapshotManager::tick |
( |
| ) |
|
|
virtual |
| virtual void DtSnapshotManager::setSimTime |
( |
double |
| ) |
|
|
virtual |
Sets current simulation time so internal variable for heartbeat and snapshot can be initialized appropriately.
| virtual void DtSnapshotManager::enablePeriodicSnapshots |
( |
bool |
flag | ) |
|
|
virtual |
| virtual bool DtSnapshotManager::periodicSnapshotsEnabled |
( |
| ) |
const |
|
virtual |
| virtual void DtSnapshotManager::setSnapshotPeriod |
( |
double |
period | ) |
|
|
virtual |
| virtual double DtSnapshotManager::snapshotPeriod |
( |
| ) |
const |
|
virtual |
| virtual void DtSnapshotManager::setNumberOfSnapshotsToKeep |
( |
int |
| ) |
|
|
virtual |
Number of periodic snapshots to keep around. 0 means keep all.
| virtual int DtSnapshotManager::numberOfSnapshotsToKeep |
( |
| ) |
const |
|
virtual |
| virtual void DtSnapshotManager::setPauseCleanup |
( |
bool |
| ) |
|
|
virtual |
Pauses cleanup of snapshotss. Use when rolling back just to be sure the rollback snapshot is not mistakenly cleaned up.
| bool DtSnapshotManager::pauseCleanup |
( |
| ) |
const |
|
inline |
| virtual void DtSnapshotManager::clear |
( |
bool |
allButBase = false | ) |
|
|
virtual |
Returns true if this is the base snapshot.
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 void DtSnapshotManager::rollbackToSimTime |
( |
double |
simTime | ) |
|
|
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.
Rolls back to the given in memory snapshot. If supplied, the new scenario run id.
| virtual void DtSnapshotManager::clearOutStaleSnapshots |
( |
| ) |
|
|
virtual |
Clears out snapshots that are not within the window of snapshot keeping.
Returns the in memory snapshot for this id.
| virtual void DtSnapshotManager::setSnapshotHeartbeatTime |
( |
double |
d | ) |
|
|
virtual |
Sets the tim to send out all the snapshots. Default is 2 seconds or the periodic snapshot time, whichever is greater.
| virtual double DtSnapshotManager::snapshotHeartbeatTime |
( |
| ) |
const |
|
virtual |
| virtual void DtSnapshotManager::sendCurrentSnapshots |
( |
| ) |
|
|
virtual |
Sends the current snapshots out.
Saves the closest snapshot of the given sim time to save. If none exists returns false.
Returns the snapshot closest to the given sim time.
| virtual void DtSnapshotManager::removeSnapshotsAfter |
( |
double |
simTime | ) |
|
|
virtual |
Removes all snapshots after the given simulation time.
| virtual bool DtSnapshotManager::hasSnapshots |
( |
| ) |
const |
|
virtual |
Returns true if there are snapshots in the manager.
| virtual void DtSnapshotManager::clearAllSnapshots |
( |
| ) |
|
|
virtual |
Clears out all snapshots. If there is no scenario loaded also closes terrain.
| static void DtSnapshotManager::clearAllSnapshotsCallback |
( |
DtSimMessage * |
, |
|
|
void * |
|
|
) |
| |
|
staticprotected |
Will tell all locally vrf simulated object so be ready for reinitialize, delete all the objects.
| static void DtSnapshotManager::settingConsumerCallback |
( |
const DtSettingsObject * |
settingsObject, |
|
|
void * |
usr |
|
) |
| |
|
staticprotected |
| static void DtSnapshotManager::requestSnapshots |
( |
DtSimMessage * |
, |
|
|
void * |
|
|
) |
| |
|
staticprotected |
| virtual void DtSnapshotManager::processSnapshotsRequest |
( |
DtSimMessage * |
| ) |
|
|
protectedvirtual |
| static void DtSnapshotManager::rollbackToSnapshot |
( |
DtSimMessage * |
, |
|
|
void * |
|
|
) |
| |
|
staticprotected |
| virtual void DtSnapshotManager::processRollbackToSnapshot |
( |
DtSimMessage * |
| ) |
|
|
protectedvirtual |
| virtual void DtSnapshotManager::finishSavingSnapshots |
( |
| ) |
|
|
protectedvirtual |
Any snapshot runs that are done save here.
| DtCgf* DtSnapshotManager::myCgf |
|
protected |
| bool DtSnapshotManager::myPeriodicSnapshotsEnabled |
|
protected |
| double DtSnapshotManager::mySnapshotPeriod |
|
protected |
| double DtSnapshotManager::myLastSnapshotHeartbeat |
|
protected |
| double DtSnapshotManager::mySnapshotHeartbeatTime |
|
protected |
| double DtSnapshotManager::myLastTimePeriodicSnapshoted |
|
protected |
| int DtSnapshotManager::myNumberOfSnapshotsToKeep |
|
protected |
| int DtSnapshotManager::myNextSnapshotId |
|
protected |
| Snapshots DtSnapshotManager::myPeriodicSnapshots |
|
protected |
| bool DtSnapshotManager::mySnapshotsModified |
|
protected |
| bool DtSnapshotManager::myPauseCleanup |
|
protected |
The documentation for this class was generated from the following file:
- /data/exports/nrhent7-1/nightly/docs/vrForces.vrf5-0-branch/include/vrfcgf/snapshotManager.h