![]() |
VR-Forces 4.7 Class Documentation
|
Settings Manager for GL-Studio cockpits. More...

Public Member Functions | |
| virtual | ~DtSharedCockpitSettingsManager () |
| DTOR. | |
| void | loadDefaultMappings (DtEntityTypeMapper &mapper, bool useFactory) |
| Saving and loading is NOT thread save, these functions must be called in the main thread (because they use DtDe). | |
| void | saveDefaultMappings (const DtEntityTypeMapper &mapper) |
| Save a default mapper. | |
| void | loadMapFile (const std::string &filePath, DtEntityTypeMapper &mapper) |
| Load an entity type mapper from a file. | |
| void | saveMapFile (const std::string &filePath, const DtEntityTypeMapper &mapper) |
| Save an entity type mapper to a file. | |
| void | saveDefaultMappings () |
| Save the default settings, this will internally acquire a read lock (released at end). | |
| void | loadDefaultMappings (bool useFactory) |
| Load the default settings, this will acquire a write lock (released at end). | |
| virtual void | mapperChanged (const DtEntityTypeMapper &) |
| Called when a mapper has changed, saves if autosave is true. | |
| virtual void | backupMapper (DtEntityTypeMapper &) |
| Called when a mapper wants to be backed up. Get lock on appropriate objects to back-up. | |
| virtual void | entityTypeMappingsRestored (const DtSettingsBackup *) |
| Called when a mapping is restored, save out if auto save it true. | |
| virtual void | updateCockpitSettingsState () |
| Call to automaticall save (if set) cockpit settings record as well as reset values in cockpit to send out signals. | |
Setting persistence methods | |
| void | loadDefaultSettings (bool useOnlyFactorySettings) |
| Load the default settings. | |
| void | saveDefaultSettings () |
| Save the current settings as the defaults. | |
| void | loadSettings (const std::string &filePath) |
| Import settings from the named file. | |
| void | saveSettings (const std::string &filePath) |
| Export settings to the named file. | |
| void | setAutoSaveTypeMapping (bool b) |
| Sets whether the type mappings should autosave. | |
| bool | autoSaveTypeMapping () const |
| Gets whether the type mappings are autosaving. | |
| void | setAutoSaveSettings (bool b) |
| Sets whether the settings should autosave. | |
| bool | autoSaveSettings () const |
| Gets whether the settings are autosaving. | |
Routines to set items in the shared cockpit settings. | |
Will auto save record if auto save is true. | |
| virtual void | setCockpitsEnabled (bool enable) |
| virtual void | setSmoothingEnabled (bool enable) |
| virtual void | setSmoothingPeriod (float period) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtSharedCockpitSettingsManager & | instance (DtDe &de) |
| Static instance method. | |
Protected Member Functions | |
| virtual bool | checkCockpitMapper (const std::string &node, DtSettingsChangeObject::UseType t, std::string &inUse) |
| Called to see if model definition is in use by the cockpit mapping with in use message if in use. | |
| DtSharedCockpitSettingsManager (DtDe &de) | |
| CTOR. | |
Private Member Functions | |
| void | initializeMappings () |
| Initializes the cockpit mappings from the settings file. | |
Private Attributes | |
| DtDe & | myDe |
| bool | myAutoSaveTypeMappingFlag |
| bool | myAutoSaveSettingsFlag |
| DtSignalConnectionManager | myConnections |
Settings Manager for GL-Studio cockpits.
|
virtual |
DTOR.
|
protected |
CTOR.
|
static |
Static instance method.
| void makVrv::DtSharedCockpitSettingsManager::loadDefaultMappings | ( | DtEntityTypeMapper & | mapper, |
| bool | useFactory | ||
| ) |
Saving and loading is NOT thread save, these functions must be called in the main thread (because they use DtDe).
| void makVrv::DtSharedCockpitSettingsManager::saveDefaultMappings | ( | const DtEntityTypeMapper & | mapper | ) |
Save a default mapper.
| void makVrv::DtSharedCockpitSettingsManager::loadMapFile | ( | const std::string & | filePath, |
| DtEntityTypeMapper & | mapper | ||
| ) |
Load an entity type mapper from a file.
| void makVrv::DtSharedCockpitSettingsManager::saveMapFile | ( | const std::string & | filePath, |
| const DtEntityTypeMapper & | mapper | ||
| ) |
Save an entity type mapper to a file.
| void makVrv::DtSharedCockpitSettingsManager::saveDefaultMappings | ( | ) |
Save the default settings, this will internally acquire a read lock (released at end).
| void makVrv::DtSharedCockpitSettingsManager::loadDefaultMappings | ( | bool | useFactory | ) |
Load the default settings, this will acquire a write lock (released at end).
|
virtual |
Called when a mapper has changed, saves if autosave is true.
|
virtual |
Called when a mapper wants to be backed up. Get lock on appropriate objects to back-up.
|
virtual |
Called when a mapping is restored, save out if auto save it true.
| void makVrv::DtSharedCockpitSettingsManager::loadDefaultSettings | ( | bool | useOnlyFactorySettings | ) |
Load the default settings.
| void makVrv::DtSharedCockpitSettingsManager::saveDefaultSettings | ( | ) |
Save the current settings as the defaults.
| void makVrv::DtSharedCockpitSettingsManager::loadSettings | ( | const std::string & | filePath | ) |
Import settings from the named file.
| void makVrv::DtSharedCockpitSettingsManager::saveSettings | ( | const std::string & | filePath | ) |
Export settings to the named file.
| void makVrv::DtSharedCockpitSettingsManager::setAutoSaveTypeMapping | ( | bool | b | ) |
Sets whether the type mappings should autosave.
| bool makVrv::DtSharedCockpitSettingsManager::autoSaveTypeMapping | ( | ) | const |
Gets whether the type mappings are autosaving.
| void makVrv::DtSharedCockpitSettingsManager::setAutoSaveSettings | ( | bool | b | ) |
Sets whether the settings should autosave.
| bool makVrv::DtSharedCockpitSettingsManager::autoSaveSettings | ( | ) | const |
Gets whether the settings are autosaving.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Call to automaticall save (if set) cockpit settings record as well as reset values in cockpit to send out signals.
|
protectedvirtual |
Called to see if model definition is in use by the cockpit mapping with in use message if in use.
|
private |
Initializes the cockpit mappings from the settings file.
|
private |
|
private |
|
private |
|
private |