![]() |
VR-Forces Developer's Guide
|
Manager for the display units settings.

Static Public Member Functions | |
| static DtDisplayUnitsSettingsManager & | instance (DtDe &de) |
Protected Member Functions | |
| DtDisplayUnitsSettingsManager (DtDe &de) | |
| virtual void | slot_initializeSynchronizer () |
| virtual void | slot_displayEngineAdded (const DtDeRecord &deRec) |
| virtual void | slot_backupRestored (const DtSettingsBackup *s) |
Protected Attributes | |
| DtDisplayUnitsConverter * | myDisplayUnitsConverter |
| DtDisplayUnitsSettingsSynchronizerAgent * | mySettingsSynchronizer |
Protected Attributes inherited from makVrv::DtCommonBaseSettingsManager< makArchives::DtDisplayUnitsSettingsRecord > | |
| DtSignalConnectionManager | myConnections |
| std::string | myName |
| std::string | myExtension |
| std::string | myDisplayName |
| bool | myUseDefaultSettingsRecordFlag |
| bool | myAutoSaveFlag |
| DtSettingsBackup * | mySettingsBackup |
| DtDe & | myDe |
Friends | |
| template<typename ManagerClass > | |
| ManagerClass & | defaultManagerInstanceFunction (DtDe &, bool) |
| template<typename ManagerClass > | |
| void | defaultManagerRegisterInstanceFunction (DtDe &, ManagerClass *) |
Additional Inherited Members | |
Protected Types inherited from makVrv::DtBaseSharedSettingsManager< makArchives::DtDisplayUnitsSettingsRecord, DtSharedDisplayUnitsSettings > | |
| typedef DtSharedRecordSettingsBackup < DtSharedDisplayUnitsSettings, makArchives::DtDisplayUnitsSettingsRecord > | SharedRecordBackupType |
|
virtual |
DTOR.
|
protected |
Protected CTOR ( use instance(..) )
|
static |
Get an instance of the settings manager.
| void makVrv::DtDisplayUnitsSettingsManager::connectInputSignals | ( | ) |
Connect to signal indicating settings have been backed up.
| void makVrv::DtDisplayUnitsSettingsManager::setCoordinateSystem | ( | DtDisplayUnitsConverter::CoordSys | cs | ) |
Set the Coordinate System display unit in the 'Application' collection Similar to calling: setDisplayUnitUnit(theApplicationDisplayUnitCollectionName, theCoordinateSystemDisplayUnitName, cs) but uses DtSharedDisplayUnitsSettings::setCoordinateSystem instead of DtSharedDisplayUnitsSettings::setDisplayUnitUnit which has slightly different behavior.
| void makVrv::DtDisplayUnitsSettingsManager::setDisplayUnitUnit | ( | const DtUnicode & | displayUnitCollectionName, |
| const DtUnicode & | displayUnitName, | ||
| unsigned int | unitEnumValue | ||
| ) |
Set the unit of measurement used for a display unit.
| displayUnitCollectionName | The name of the collection the display unit is in |
| displayUnitName | The name of the display unit of interest |
| unitEnumValue | The unsigned integer value that corresponds to a unit of measurement in a specific Units enumeration, e.g. DtDisplayUnitsSettingsRecord::RotVelocityUnits. |
| void makVrv::DtDisplayUnitsSettingsManager::setDisplayUnitDecimals | ( | const DtUnicode & | displayUnitCollectionName, |
| const DtUnicode & | displayUnitName, | ||
| unsigned int | decimals | ||
| ) |
Set the unit of measurement used for a display unit.
| displayUnitCollectionName | The name of the collection the display unit is in |
| displayUnitName | The name of the display unit of interest |
| decimals | The number of decimal places to use for a given display unit |
|
virtual |
Use the settings from the given settings record. Overridden to perform some validation on the settings in the record.
Reimplemented from makVrv::DtBaseSharedSettingsManager< makArchives::DtDisplayUnitsSettingsRecord, DtSharedDisplayUnitsSettings >.
| void makVrv::DtDisplayUnitsSettingsManager::setSuppressMagneticNorthNotationEnabled | ( | bool | isEnabled | ) |
Set whether or not to suppress the Heading Notation when using Magnetic North.
| isEnabled | Whether or not to suppress Magnetic North Heading Notation |
| bool makVrv::DtDisplayUnitsSettingsManager::isSuppressMagneticNorthNotationEnabled | ( | ) | const |
Get whether or not to suppress the Heading Notation when using Magnetic North.
| const DtDisplayUnitsConverter& makVrv::DtDisplayUnitsSettingsManager::converter | ( | ) |
Returns the manager's internal converter.
| void makVrv::DtDisplayUnitsSettingsManager::slot_quit | ( | ) |
For shutting down the DtDisplayUnitsSettingsManager agents before the de shuts down the agent manager.
|
protectedvirtual |
Initializes the synchronizer agent to keep RDE settings in sync. Instantiates a synchronizer (DtDisplayUnitsSettingsSynchronizerAgent) to keep remote De's display units settings manager's in sync with the master De's settings manager. Also connects to the IG communicator's clientAdded signal so the synchronizer can be reinitialized when a new De is connected.
|
protectedvirtual |
Receives notification that a new De has been connected. Re-initializes the synchronizer so the new De's settings manager can be kept up to date.
|
protectedvirtual |
Called when the setting is restored, save out if auto save is true.
|
friend |
Befriend the manager instance functions for instance retrieval/creation.
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
Then simply in the implementation of instance call defaultManagerInstanceFunction with the de object and return the return value.
|
friend |
Befriend the manager instance functions for instance retrieval/creation.
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
|
protected |
|
protected |