![]() |
VR-Forces 4.3.1 Class Documentation
|
Settings manager for handling aggregate display settings. More...

Public Member Functions | |
| virtual | ~DtSharedAggregateDisplaySettingsManager () |
| DTOR. | |
| void | connectInputSignals () |
| Connect to signal indicating settings have been backed up. | |
Setting Getters/Setters | |
| virtual bool | displayAggregates () const |
| virtual void | setDisplayAggregates (bool enabled) |
| virtual bool | displayAggregateLeafNodes () const |
| virtual void | setDisplayAggregateLeafNodes (bool enabled) |
| virtual bool | displayAggregateBoundingBoxes () const |
| virtual void | setDisplayAggregateBoundingBoxes (bool enabled) |
| virtual bool | displayAggregateBoundingBoxesForSelected () const |
| virtual void | setDisplayAggregateBoundingBoxesForSelected (bool enabled) |
| virtual bool | displayMainIcon () const |
| virtual void | setDisplayMainIcon (bool enabled) |
| virtual bool | ghostEchelonLevelItems () const |
| virtual void | setGhostEchelonLevelItems (bool enabled) |
| virtual bool | allowSelectionOfGhostedItems () const |
| virtual void | setAllowSelectionOfGhostedItems (bool enabled) |
| virtual int | echelonLevel () const |
| virtual void | setEchelonLevel (int level) |
| virtual DtSharedAggregateDisplaySettings::ColorizedModelColorType | colorizedModelColorTypeForAggregates () const |
| virtual void | setColorizedModelColorTypeForAggregates (DtSharedAggregateDisplaySettings::ColorizedModelColorType type) |
Public Member Functions inherited from makVrv::DtBaseSharedSettingsManager< makArchives::DtAggregateSettingsRecord, DtSharedAggregateDisplaySettings > | |
| DtBaseSharedSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext) | |
| CTOR. | |
| virtual | ~DtBaseSharedSettingsManager () |
| Virtual DTOR. | |
| virtual void | initializeBackup () |
| Creates a backup of the settings' current state. | |
| virtual void | setFromRecord (const makArchives::DtAggregateSettingsRecord &record) |
| Set the current settings' state from the given record. | |
| virtual void | getRecord (makArchives::DtAggregateSettingsRecord &record) const |
| Store the current settings' state in the given record. | |
Public Member Functions inherited from makVrv::DtCommonBaseSettingsManager< makArchives::DtAggregateSettingsRecord > | |
| DtCommonBaseSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext) | |
| CTOR The name, displayName, and extension parameters are used for creating the settings object (DtDeSettings) and backup, and for constructing the filename when readin/writing the records to disk. | |
| virtual | ~DtCommonBaseSettingsManager () |
| Virtual DTOR. | |
| virtual void | autoSaveIfNecessary () |
| Saves the current settings as defaults if autosave is enabled. | |
| virtual void | setAutoSave (bool doit) |
| Sets whether autosave is enabled for the settings manager. | |
| virtual bool | autoSave () const |
| Gets whether autosave is enabled for the settings manager. | |
| virtual void | setUseDefaultSettingsRecord (bool useit) |
| Sets whether setting initialization should check for a default record. | |
| virtual bool | useDefaultSettingsRecord () const |
| Gets whether setting initialization should check for a default record. | |
| virtual DtDeSettings * | settings () |
| Accessor for the manager's DtDeSettings object. | |
| virtual const DtDeSettings * | settings () const |
| Accessor for the manager's DtDeSettings object (const). | |
| virtual DtSettingsBackup * | settingsBackup () |
| Accessor for the manager's settings backup. | |
| virtual const DtSettingsBackup * | settingsBackup () const |
| Accessor for the manager's settings backup (const). | |
| virtual void | loadDefaults () |
| Initializes the settings and creates a backup. | |
| virtual void | saveDefaultSettings () |
| Saves the current settings' state as the default (on disk). | |
| virtual void | loadDefaultSettings (bool loadOnlyFactorySettings) |
| Loads the default settings from disk. | |
| virtual void | importSettings (const std::string &filePath) |
| Load the settings' state from the given file. | |
| virtual void | exportSettings (const std::string &filePath) const |
| Save the current settings' state to the given file. | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtSharedAggregateDisplaySettingsManager & | instance (DtDe &de) |
| Get an instance of the settings manager. | |
Protected Member Functions | |
| DtSharedAggregateDisplaySettingsManager (DtDe &de) | |
| Protected CTOR ( use instance(..) ) | |
| virtual void | slot_backupRestored (const DtSettingsBackup *s) |
| Called when a mapping is restored, save out if auto save is true. | |
Friends | |
| template<typename ManagerClass > | |
| ManagerClass & | defaultManagerInstanceFunction (DtDe &, bool) |
| Befriend the manager instance functions for instance retreival/creation. | |
| template<typename ManagerClass > | |
| void | defaultManagerRegisterInstanceFunction (DtDe &, ManagerClass *) |
| Befriend the manager instance functions for instance retreival/creation. | |
Additional Inherited Members | |
Protected Types inherited from makVrv::DtBaseSharedSettingsManager< makArchives::DtAggregateSettingsRecord, DtSharedAggregateDisplaySettings > | |
| typedef DtSharedRecordSettingsBackup < DtSharedAggregateDisplaySettings, makArchives::DtAggregateSettingsRecord > | SharedRecordBackupType |
Protected Attributes inherited from makVrv::DtCommonBaseSettingsManager< makArchives::DtAggregateSettingsRecord > | |
| DtSignalConnectionManager | myConnections |
| std::string | myName |
| std::string | myExtension |
| std::string | myDisplayName |
| bool | myUseDefaultSettingsRecordFlag |
| bool | myAutoSaveFlag |
| DtSettingsBackup * | mySettingsBackup |
| DtDe & | myDe |
Settings manager for handling aggregate display settings.
|
virtual |
DTOR.
|
protected |
Protected CTOR ( use instance(..) )
|
static |
Get an instance of the settings manager.
| void makVrv::DtSharedAggregateDisplaySettingsManager::connectInputSignals | ( | ) |
Connect to signal indicating settings have been backed up.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
Called when a mapping is restored, save out if auto save is true.
|
friend |
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
Manager requirements:
1) Static instance function
2) Protected DtSignalConnectionManager named myConnections.
3) Member functioned called loadDefaults which takes no arguments.
and loads the default settings of the manager or factory from disk.
4) define defaultManagerInstanceFunction as friend.
5) define defaultManagerRegisterInstanceFunction as friend (see below).
5) Protected Constructor which only takes a DtDe reference.
@code
class Manager { public: static Manager& instance(DtDe& de); void loadDefaults(); protected: template <typename managerclass>=""> friend ManagerClass& defaultManagerInstanceFunction(DtDe& de, bool); template <typename managerclass>=""> friend void defaultManagerRegisterInstanceFunction(DtDe& de, ManagerClass* mgr) Manager(DtDe&); DtSignalConnectionManager myConnections; };
Then simply in the implementation of instance call defaultManagerInstanceFunction with the de object and return the return value. @code
Manager& Manager::instance(DtDe& de) { return defaultManagerInstanceFunction<Manager>(de); }
|
friend |
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
@code
static void Manager::registerInstance(DtDe& de, Manager* mgr) { defaultManagerRegisterInstanceFunction(de,mgr); } ...else where call. // Assuming class NewManager : public Manager Manager::registerInstance(de,new NewManager(de));