![]() |
VR-Forces 4.0.4 Class Documentation
|
A DtCigiModelStateMappingLogic object provides the logic for a widget that maps component ID's to model state numbers. More...

Public Member Functions | |
| DtCigiModelStateMappingLogic (DtDe &de, DtCigiModelStateMappingInterface *componentMapIf, DtCigiSettingsInterface *settingsIf, DtMapEditorInterface *editorIf, DtPersistenceControlsInterface *toolbarIf) | |
| Constructor. | |
| virtual | ~DtCigiModelStateMappingLogic () |
| Destructor. | |
Protected Member Functions | |
| virtual void | updateValues () |
| Updates the value in the GUI from the shared settings. | |
| virtual void | initializeStateStrings () |
| Initializes the model state names. | |
| virtual void | on_valueAdded (const std::string &key, const std::string &value, int index) |
| Called when a new mapping is added. | |
| virtual void | on_valueDeleted (const std::string &key) |
| Called when a mapping is removed. | |
| virtual void | on_valueRenamed (const std::string &oldName, const std::string &newName) |
| Called when a mapping is renamed. | |
| virtual void | cigiMappingsRestored (const DtSettingsBackup *s) |
Protected Attributes | |
| DtCigiModelStateMappingInterface & | myMapInterface |
| DtMapEditorInterface & | myEditorInterface |
| DtModelSemanticsMapper & | myModelSemanticsMapper |
| QStringList | myStateStrings |
| std::map< int, std::string > | myStateIdToNameMap |
| std::map< std::string, int > | myNameToStateIdMap |
A DtCigiModelStateMappingLogic object provides the logic for a widget that maps component ID's to model state numbers.
| makVrv::DtCigiModelStateMappingLogic::DtCigiModelStateMappingLogic | ( | DtDe & | de, |
| DtCigiModelStateMappingInterface * | componentMapIf, | ||
| DtCigiSettingsInterface * | settingsIf, | ||
| DtMapEditorInterface * | editorIf, | ||
| DtPersistenceControlsInterface * | toolbarIf | ||
| ) |
Constructor.
| virtual makVrv::DtCigiModelStateMappingLogic::~DtCigiModelStateMappingLogic | ( | ) | [virtual] |
Destructor.
| virtual void makVrv::DtCigiModelStateMappingLogic::updateValues | ( | ) | [protected, virtual] |
Updates the value in the GUI from the shared settings.
Reimplemented from makVrv::DtCigiSettingsLogic.
| virtual void makVrv::DtCigiModelStateMappingLogic::initializeStateStrings | ( | ) | [protected, virtual] |
Initializes the model state names.
| virtual void makVrv::DtCigiModelStateMappingLogic::on_valueAdded | ( | const std::string & | key, |
| const std::string & | value, | ||
| int | index | ||
| ) | [protected, virtual] |
Called when a new mapping is added.
| virtual void makVrv::DtCigiModelStateMappingLogic::on_valueDeleted | ( | const std::string & | key | ) | [protected, virtual] |
Called when a mapping is removed.
| virtual void makVrv::DtCigiModelStateMappingLogic::on_valueRenamed | ( | const std::string & | oldName, |
| const std::string & | newName | ||
| ) | [protected, virtual] |
Called when a mapping is renamed.
| virtual void makVrv::DtCigiModelStateMappingLogic::cigiMappingsRestored | ( | const DtSettingsBackup * | s | ) | [protected, virtual] |
QStringList makVrv::DtCigiModelStateMappingLogic::myStateStrings [protected] |
std::map<int, std::string> makVrv::DtCigiModelStateMappingLogic::myStateIdToNameMap [protected] |
std::map<std::string, int> makVrv::DtCigiModelStateMappingLogic::myNameToStateIdMap [protected] |