![]() |
VR-Forces 5.0.3 Developer's Guide
|
DtObserverSettingsManager keeps track of the mapping between string and integer keys for observer settings; display names for observer settings; which observer settings are global, projection- specific, and model set-specific; and which settings should appear on the Observer menu and Observer toolbar. Observer Settings Integer keys are used everywhere internally; the string keys are written to and read from files (and the mapping from int to string and vice versa is done at write and/or read time).

Public Member Functions | |
| virtual | ~DtObserverSettingsManager () |
| int | registerGlobalObserverSetting (const std::string &stringKey, const DtQIconConfigurations &iconConfigurations) |
| void | registerGlobalObserverSetting (const std::string &stringKey, int intKey, const DtQIconConfigurations &iconConfigurations) |
| int | registerGlobalObserverSetting (const std::string &stringKey, const std::string &iconName="") |
| void | registerGlobalObserverSetting (const std::string &stringKey, int intKey, const std::string &iconName="") |
| int | registerProjectionSpecificObserverSetting (const std::string &stringKey, bool is2D, const DtQIconConfigurations &iconConfigurations) |
| void | registerProjectionSpecificObserverSetting (const std::string &stringKey, int intKey, bool is2D, const DtQIconConfigurations &iconConfigurations) |
| int | registerProjectionSpecificObserverSetting (const std::string &stringKey, bool is2D, const std::string &iconName="") |
| void | registerProjectionSpecificObserverSetting (const std::string &stringKey, int intKey, bool is2D, const std::string &iconName="") |
| int | registerModelSetSpecificObserverSetting (const std::string &stringKey, ModelSetList modelSets, const DtQIconConfigurations &iconConfigurations) |
| void | registerModelSetSpecificObserverSetting (const std::string &stringKey, int intKey, ModelSetList modelSets, const DtQIconConfigurations &iconConfigurations) |
| int | registerModelSetSpecificObserverSetting (const std::string &stringKey, ModelSetList modelSets, const std::string &iconName="") |
| void | registerModelSetSpecificObserverSetting (const std::string &stringKey, int intKey, ModelSetList modelSets, const std::string &iconName="") |
| int | lookupObserverSettingIntKey (const std::string &stringKey) const |
| const std::string * | findObserverSettingStringKey (int intKey) const |
| const DtUnicode * | findObserverSettingDisplayName (int intKey) const |
| const DtUnicode * | findObserverSettingToolTip (int intKey) const |
| bool | findObserverSettingVisualType (int intKey) const |
| const DtQIconConfigurations * | findObserverSettingIconConfigurations (int intKey) const |
| const GlobalSettingsList & | globalSettings () const |
| const ProjectionSettingsList & | projectionSpecificSettings (bool is2D) const |
| const ModelSetSettingsList & | modelSetSpecificSettings (int modelSet) const |
| bool | isSettingValid (bool projection, int modelSet, int settingKey) |
| DtObserverSettingsDisplayNameProvider & | displayNameProvider () const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtObserverSettingsManager & | instance (DtDe &de) |
Protected Types | |
| typedef std::map< bool, ProjectionSettingsList > | ProjectionSettingsMap |
| typedef std::map< int, ModelSetSettingsList > | ModelSetSettingsMap |
| typedef std::map< int, DtQIconConfigurations > | IconConfigurationsMap |
| typedef std::map< int, bool > | InclusionMap |
Protected Member Functions | |
| void | registerSettingKey (ModelSetList modelSets, int key) |
| DtObserverSettingsManager (DtDe &) | |
| void | registerProjectionSetting (bool projection, int key) |
| void | registerModelSetSetting (int modelSet, int key) |
| void | registerIconConfigurations (int key, const DtQIconConfigurations &iconConfigurations) |
Friends | |
| class | DtObserverSettingsManagerCreator |
| typedef std::vector<int> makVrv::DtObserverSettingsManager::GlobalSettingsList |
| typedef std::vector<int> makVrv::DtObserverSettingsManager::ProjectionSettingsList |
| typedef std::vector<int> makVrv::DtObserverSettingsManager::ModelSetSettingsList |
|
protected |
|
protected |
|
protected |
|
protected |
|
virtual |
DTOR.
|
protected |
CTOR.
|
static |
Get an instance used to emit, or to connect.
| int makVrv::DtObserverSettingsManager::registerGlobalObserverSetting | ( | const std::string & | stringKey, |
| const DtQIconConfigurations & | iconConfigurations | ||
| ) |
Register a setting as global, and generate an integer key.
| void makVrv::DtObserverSettingsManager::registerGlobalObserverSetting | ( | const std::string & | stringKey, |
| int | intKey, | ||
| const DtQIconConfigurations & | iconConfigurations | ||
| ) |
Register a setting as global, specifying the integer key.
| int makVrv::DtObserverSettingsManager::registerGlobalObserverSetting | ( | const std::string & | stringKey, |
| const std::string & | iconName = "" |
||
| ) |
Register a setting as global, and generate an integer key.
| void makVrv::DtObserverSettingsManager::registerGlobalObserverSetting | ( | const std::string & | stringKey, |
| int | intKey, | ||
| const std::string & | iconName = "" |
||
| ) |
Register a setting as global, specifying the integer key.
| int makVrv::DtObserverSettingsManager::registerProjectionSpecificObserverSetting | ( | const std::string & | stringKey, |
| bool | is2D, | ||
| const DtQIconConfigurations & | iconConfigurations | ||
| ) |
Register a setting as projection-specific, and generate an integer key.
| void makVrv::DtObserverSettingsManager::registerProjectionSpecificObserverSetting | ( | const std::string & | stringKey, |
| int | intKey, | ||
| bool | is2D, | ||
| const DtQIconConfigurations & | iconConfigurations | ||
| ) |
Register a setting as projection-specific, specifying the integer key.
| int makVrv::DtObserverSettingsManager::registerProjectionSpecificObserverSetting | ( | const std::string & | stringKey, |
| bool | is2D, | ||
| const std::string & | iconName = "" |
||
| ) |
Register a setting as projection-specific, and generate an integer key.
| void makVrv::DtObserverSettingsManager::registerProjectionSpecificObserverSetting | ( | const std::string & | stringKey, |
| int | intKey, | ||
| bool | is2D, | ||
| const std::string & | iconName = "" |
||
| ) |
Register a setting as projection-specific, specifying the integer key.
| int makVrv::DtObserverSettingsManager::registerModelSetSpecificObserverSetting | ( | const std::string & | stringKey, |
| ModelSetList | modelSets, | ||
| const DtQIconConfigurations & | iconConfigurations | ||
| ) |
Register a setting as model set-specific, and generate an integer key.
| void makVrv::DtObserverSettingsManager::registerModelSetSpecificObserverSetting | ( | const std::string & | stringKey, |
| int | intKey, | ||
| ModelSetList | modelSets, | ||
| const DtQIconConfigurations & | iconConfigurations | ||
| ) |
Register a setting as model set-specific, specifying the integer key.
| int makVrv::DtObserverSettingsManager::registerModelSetSpecificObserverSetting | ( | const std::string & | stringKey, |
| ModelSetList | modelSets, | ||
| const std::string & | iconName = "" |
||
| ) |
Register a setting as model set-specific, and generate an integer key.
| void makVrv::DtObserverSettingsManager::registerModelSetSpecificObserverSetting | ( | const std::string & | stringKey, |
| int | intKey, | ||
| ModelSetList | modelSets, | ||
| const std::string & | iconName = "" |
||
| ) |
Register a setting as model set-specific, specifying the integer key.
| int makVrv::DtObserverSettingsManager::lookupObserverSettingIntKey | ( | const std::string & | stringKey | ) | const |
Look up the integer key for this observer setting string key. Returns -1 if the string key doesn't exist.
| const std::string* makVrv::DtObserverSettingsManager::findObserverSettingStringKey | ( | int | intKey | ) | const |
Look up the string key for this observer setting integer key. Returns "" if the integer key doesn't exist.
| const DtUnicode* makVrv::DtObserverSettingsManager::findObserverSettingDisplayName | ( | int | intKey | ) | const |
Look up the specified setting's display name.
Look up the specified setting's tool tip. If the tool tip does not exist, returns display name.
find the visual type flag for a particular key
| const DtQIconConfigurations* makVrv::DtObserverSettingsManager::findObserverSettingIconConfigurations | ( | int | intKey | ) | const |
Look up the specified setting's icon to use.
| const GlobalSettingsList& makVrv::DtObserverSettingsManager::globalSettings | ( | ) | const |
Get the list of global settings.
| const ProjectionSettingsList& makVrv::DtObserverSettingsManager::projectionSpecificSettings | ( | bool | is2D | ) | const |
Get the list of projection-specific settings.
| const ModelSetSettingsList& makVrv::DtObserverSettingsManager::modelSetSpecificSettings | ( | int | modelSet | ) | const |
Get the list of model set-specific settings.
| bool makVrv::DtObserverSettingsManager::isSettingValid | ( | bool | projection, |
| int | modelSet, | ||
| int | settingKey | ||
| ) |
Returns true if the setting is on the global list, the projection settings list for the projection specified, or the model set settings list for the model set specified.
|
inline |
Returns the display name provider to add display items to the GUI for menus.
|
protected |
|
protected |
|
protected |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |