![]() |
VR-Forces 5.0.2 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.

Public Member Functions | |
| DtPeriodicSnapshotSettings () | |
| DtPeriodicSnapshotSettings (std::string name) | |
| DtPeriodicSnapshotSettings (std::string name, bool enabled, double periodicSnapshotTime, int numberOfSnapshotsToKeep) | |
| DtPeriodicSnapshotSettings (const DtPeriodicSnapshotSettings &orig) | |
| virtual bool | operator== (const DtSettingsObject &other) const |
| virtual bool | operator!= (const DtSettingsObject &other) const |
| virtual DtSettingsObject * | clone () const |
| virtual bool | setFrom (const DtSettingsObject *other) |
| bool | enabled () const |
| void | setEnabled (bool b) |
| double | periodicSnapshotTime () const |
| void | setPeriodicSnapshotTime (double threshold) |
| void | setNumberOfSnapshotsToKeep (int) |
| int | numberOfSnapshotsToKeep () const |
Public Member Functions inherited from DtSettingsObject | |
| DtSettingsObject () | |
| DtSettingsObject (std::string name) | |
| DtSettingsObject (const DtSettingsObject &orig) | |
| virtual void | operator= (const DtSettingsObject &orig) |
| virtual std::string | name () const |
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.
|
virtual |
Equality operator.
Reimplemented from DtSettingsObject.
|
virtual |
Inequality operator.
Reimplemented from DtSettingsObject.
|
virtual |
Clone operator, returns a new settings which is a copy of this one.
Implements DtSettingsObject.
|
virtual |
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 |