![]() |
VR-Forces Developer's Guide
|
Periodic snapshot settings are used to keep track of whether or not periodic snapshots are enabled and the simulation time to schedule the snapshots for.

Static Public Member Functions | |
| static DtSettingsObject * | create (DtSettingsObjectCreationParams ¶ms) |
Protected Attributes | |
| bool | myEnabled |
| double | myPeriodicSnapshotTime |
| int | myNumberOfSnapshotsToKeep |
Protected Attributes inherited from DtSettingsObject | |
| std::string | myName |
Private Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Friends | |
| class | boost::serialization::access |
| DtPeriodicSnapshotSettings::DtPeriodicSnapshotSettings | ( | ) |
Default constructor, required for deserialization.
| DtPeriodicSnapshotSettings::DtPeriodicSnapshotSettings | ( | std::string | name | ) |
Constructor.
| DtPeriodicSnapshotSettings::DtPeriodicSnapshotSettings | ( | std::string | name, |
| bool | enabled, | ||
| double | periodicSnapshotTime, | ||
| int | numberOfSnapshotsToKeep | ||
| ) |
Constructor.
| DtPeriodicSnapshotSettings::DtPeriodicSnapshotSettings | ( | const DtPeriodicSnapshotSettings & | orig | ) |
Copy constructor.
|
overridevirtual |
|
overridevirtual |
Equality operator.
Reimplemented from DtSettingsObject.
|
overridevirtual |
Inequality operator.
Reimplemented from DtSettingsObject.
|
overridevirtual |
Clone operator, returns a new settings which is a copy of this one.
Implements DtSettingsObject.
|
overridevirtual |
Reimplemented from DtSettingsObject.
|
static |
Creator.
| bool DtPeriodicSnapshotSettings::enabled | ( | ) | const |
Whether or not the periodic Snapshot system is enabled.
| void DtPeriodicSnapshotSettings::setEnabled | ( | bool | b | ) |
Whether or not the periodic Snapshot system is enabled.
| double DtPeriodicSnapshotSettings::periodicSnapshotTime | ( | ) | const |
Simulation time period between Snapshots. Default is 1 second.
| void DtPeriodicSnapshotSettings::setPeriodicSnapshotTime | ( | double | threshold | ) |
Simulation time period between Snapshots. Default is 1 second.
| void DtPeriodicSnapshotSettings::setNumberOfSnapshotsToKeep | ( | int | ) |
Number of periodic Snapshots to keep around. 0 means keep all.
| int DtPeriodicSnapshotSettings::numberOfSnapshotsToKeep | ( | ) | const |
Number of periodic Snapshots to keep around. 0 means keep all.
|
inlineprivate |
Serialization support.
|
friend |
|
protected |
|
protected |
|
protected |