![]() |
VR-Forces 4.8 Class Documentation
|
The class that will contain information about various scenario settings. More...

Public Member Functions | |
| DtVrfSimulationSettingsManager (makVrv::DtDe &) | |
| virtual | ~DtVrfSimulationSettingsManager () |
| virtual void | setDefaultScenarioFile (const std::string &f, bool save=false) |
| Sets the scenario file used as the default when creating a new scenario. More... | |
| virtual std::string | defaultScenarioFile () const |
| virtual void | setSimulationObjectGroupTerrain (const std::string &f, bool save=false) |
| Simulation object group terrain to use when editing simulation object groups. More... | |
| virtual std::string | simulationObjectGroupTerrain () const |
| virtual void | setDefaultSimulationModelSetFile (const std::string &f, bool save=false, bool signalChange=true) |
| Sets the default .sms file to use when loading a scenario if none is found in the scenario to be loaded. More... | |
| virtual std::string | defaultSimulationModelSetFile () const |
| virtual void | setFromRecord (const DtVrfSimulationSettingsRecord &rec) |
| virtual void | loadDefaultSimulationSettings (bool loadOnlyFactorySettings=false) |
| virtual void | getRecord (DtVrfSimulationSettingsRecord &rec) const |
| virtual void | getSplitRecord (std::vector< DtVrfSimulationSettingsRecord > &rec, std::vector< std::string > &fileNames) |
| To support writing element definitions in folders as multiple files not implemented. More... | |
| virtual void | addRecords (DtVrfSimulationSettingsRecord &recs, DtVrfSimulationSettingsRecord &combinedRec) |
| To support writing element definitions in folders as multiple files not implemented. More... | |
| virtual void | setAutoSave (bool) |
| Set to false to not save on settings change. Default is true. More... | |
| virtual bool | autoSave () const |
| virtual void | setCheckForUnusedTriggersOnPlanSave (bool) |
| Sets whether or not to always check for unused triggers when saving plan. More... | |
| virtual bool | checkForUnusedTriggersOnPlanSave () const |
| virtual void | setDefaultScenarioStartTime (time_t) |
| The default scenario start time. More... | |
| virtual time_t | defaultScenarioStartTime () const |
| virtual void | setDefaultEnvironmentCondition (const std::string &defaultCondition, bool save=true) |
| The default scenario environment condition. More... | |
| virtual std::string | defaultEnvironmentCondition () const |
| virtual void | setEnablePeriodicCheckpointing (bool) |
| Sets whether or not snapshots are periodically saved to disk (checkpointed) More... | |
| virtual bool | enablePeriodicCheckpointing () const |
| virtual void | setPeriodicCheckpointingFrequency (int) |
| Checkpoint every nth snapshot. More... | |
| virtual int | periodicCheckpointingFrequency () const |
| virtual void | setPeriodicCheckpointingDirectory (const std::string &) |
| Sets the directory to save checkpoints to. If blank saves to scenario directory. More... | |
| virtual const std::string & | periodicCheckpointingDirectory () const |
| const DtFilename & | periodicCheckpointingDirectoryResolved () const |
| makVrv::DtRecordSettingsBackupInterface * | simulationSettingsBackup () |
| void | exportSimulationSettings (const std::string &fileName) |
| Exports the current cache settings to a file. More... | |
| void | importSimulationSettings (const std::string &fileName) |
| Import the current cache settings from a file. More... | |
| virtual void | setStartupTerrain (const std::string &) |
| Preference on which terrain to use when creating a new scenario. More... | |
| virtual const std::string & | startupTerrain () const |
| virtual void | setStartupScenario (const std::string &) |
| Preference on which scenario to use when loading a new scenario. Blank means choose. More... | |
| virtual const std::string & | startupScenario () const |
| virtual void | setStartupSimulationModelSet (const std::string &) |
| Preference on which simulation model set to use when loading a new scenario. More... | |
| virtual const std::string & | startupSimulationModelSet () const |
| virtual void | setAllowOrbatDeletionChoice (bool) |
| virtual bool | allowOrbatDeletionChoice () const |
| virtual void | setAggregateOnCreate (bool) |
| Sets to whether or not create aggregates as true aggregates (true) or psuedo aggregates (false) when initially created. More... | |
| bool | aggregateOnCreate () const |
| virtual void | saveSettingsAsDefault () |
| Saves if auto-save is turned on. More... | |
| virtual void | setSimulationModelSetConfigurations (const std::vector< DtVrfSimulationSettingsRecord::SimulationModelSetConfiguration > &) |
| Sets the simulation model set configurations. See DtVrfSimulationSettingsRecord for format. More... | |
| virtual const std::vector < DtVrfSimulationSettingsRecord::SimulationModelSetConfiguration > & | simulationModelSetConfigurations () const |
| virtual void | addSimulationModelSetConfiguration (const DtVrfSimulationSettingsRecord::SimulationModelSetConfiguration &, bool autoSaveIfEnabled=true) |
| If a model set configuration with the exact name exists then it will be replaced with this configuration. More... | |
| virtual void | removeSimulationModelSetConfiguration (const std::string &) |
| Removed named configuration. More... | |
| virtual void | setAutomaticallyStartMissingBackends (bool) |
| Whether or not to automatically try and start any missing back-ends when loading a scenario locally. Default is false. More... | |
| virtual bool | automaticallyStartMissingBackends () const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Static Public Member Functions | |
| static DtVrfSimulationSettingsManager & | instance (makVrv::DtDe &de) |
| Returns instance of the messager. More... | |
| static void | registerInstance (makVrv::DtDe &de, DtVrfSimulationSettingsManager *) |
Public Attributes | |
| boost::signals2::signal< void(const DtVrfSimulationSettingsRecord &)> | signal_simulationSettingsChanged |
| Sent when session settings have changed. More... | |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| DtVrfSimulationSettingsRecord | mySimulationSettings |
| makVrv::DtRecordSettingsBackupInterface * | mySimulationSettingsBackup |
| DtFilename | myPeriodicCheckpointDirectory |
The class that will contain information about various scenario settings.
| makVrf::DtVrfSimulationSettingsManager::DtVrfSimulationSettingsManager | ( | makVrv::DtDe & | ) |
|
virtual |
|
static |
Returns instance of the messager.
|
static |
|
virtual |
Sets the scenario file used as the default when creating a new scenario.
If save is true will make this change permanent
|
virtual |
|
virtual |
Simulation object group terrain to use when editing simulation object groups.
|
virtual |
|
virtual |
Sets the default .sms file to use when loading a scenario if none is found in the scenario to be loaded.
If save is true will make change permanent
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
To support writing element definitions in folders as multiple files not implemented.
|
inlinevirtual |
To support writing element definitions in folders as multiple files not implemented.
|
virtual |
Set to false to not save on settings change. Default is true.
|
virtual |
|
virtual |
Sets whether or not to always check for unused triggers when saving plan.
|
virtual |
|
virtual |
The default scenario start time.
|
virtual |
|
virtual |
The default scenario environment condition.
|
virtual |
|
virtual |
Sets whether or not snapshots are periodically saved to disk (checkpointed)
|
virtual |
|
virtual |
Checkpoint every nth snapshot.
For example, if snapshots are taken every 30 seconds a checkpoint frequency of 4 saves a checkpoint every two minutes.
|
virtual |
|
virtual |
Sets the directory to save checkpoints to. If blank saves to scenario directory.
|
virtual |
|
inline |
|
inline |
| void makVrf::DtVrfSimulationSettingsManager::exportSimulationSettings | ( | const std::string & | fileName | ) |
Exports the current cache settings to a file.
| void makVrf::DtVrfSimulationSettingsManager::importSimulationSettings | ( | const std::string & | fileName | ) |
Import the current cache settings from a file.
|
virtual |
Preference on which terrain to use when creating a new scenario.
|
virtual |
|
virtual |
Preference on which scenario to use when loading a new scenario. Blank means choose.
|
virtual |
|
virtual |
Preference on which simulation model set to use when loading a new scenario.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Sets to whether or not create aggregates as true aggregates (true) or psuedo aggregates (false) when initially created.
Default is false
| bool makVrf::DtVrfSimulationSettingsManager::aggregateOnCreate | ( | ) | const |
|
virtual |
Saves if auto-save is turned on.
|
virtual |
Sets the simulation model set configurations. See DtVrfSimulationSettingsRecord for format.
|
virtual |
|
virtual |
If a model set configuration with the exact name exists then it will be replaced with this configuration.
|
virtual |
Removed named configuration.
|
virtual |
Whether or not to automatically try and start any missing back-ends when loading a scenario locally. Default is false.
|
virtual |
| boost::signals2::signal<void (const DtVrfSimulationSettingsRecord&)> makVrf::DtVrfSimulationSettingsManager::signal_simulationSettingsChanged |
Sent when session settings have changed.
|
protected |
|
protected |
|
protected |
|
protected |