![]() |
VR-Forces 4.0.4 Class Documentation
|
A DtCigiEntityMappingLogic object provides the logic for a widget that maps entity types to model definitions and art part ID's to model art part numbers. More...

Public Member Functions | |
| DtCigiEntityMappingLogic (DtDe &de, DtCigiEntityMappingInterface *entMapIf, DtCigiSettingsInterface *settingsIf, DtMapEditorInterface *entTypeIf, DtMapEditorInterface *artPartIf, DtPersistenceControlsInterface *importExportIf) | |
| Constructor. | |
| virtual | ~DtCigiEntityMappingLogic () |
| Destructor. | |
Protected Member Functions | |
| virtual void | updateValues () |
| Updates the GUI from the shared settings. | |
| virtual void | updatePossibleValues () |
| Sets the possible values for model definitions. | |
| virtual void | rebuildDefinitions () |
| Gets the list of possible model definitions from the shared state. | |
| virtual void | updateEntityMappings () |
| Updates the entity mappings portion of the GUI. | |
| virtual void | updateArtParts () |
| Update the articulated parts mappings portion of the GUI. | |
| virtual void | cigiMappingsRestored (const DtSettingsBackup *s) |
| void | on_deleteEntityTypeValue (const std::string &key) |
| Called when an entity type mappings is removed. | |
| void | on_addEntityTypeValue (const std::string &key, const std::string &value, int index) |
| Called when an entity type mapping is added. | |
| void | on_renameEntityTypeValue (const std::string &oldName, const std::string &newName) |
| Called when the entity type of a mapping is changed. | |
| void | on_newEntityTypeSelected (const std::string &entType) |
| Called when an entity type mapping is selected. | |
| void | on_addArtPartValue (const std::string &key, const std::string &value, int index) |
| Called when an art part mapping is added. | |
| void | on_renameArtPartValue (const std::string &oldName, const std::string &newName) |
| Called when the art part ID of a mapping is changed. | |
| void | on_deleteArtPartValue (const std::string &key) |
| Called when an art part mapping is deleted. | |
| virtual void | on_currentSettingsChanged (const std::string &name) |
| Called when the current setting selection is changed. | |
| std::string | schemaForModel (const std::string &modelName) |
| Gets the scheme for the given model definition. | |
| virtual void | modelDefinitionChanged (const DtSettingsChangeObject *definition) |
Protected Attributes | |
| DtMapEditorInterface & | myEntityTypeInterface |
| DtMapEditorInterface & | myArtPartInterface |
| DtCigiEntityMappingInterface & | mySettingsInterface |
| QStringList | myModelDefinitions |
| QStringList | myArtPartPossibleValues |
| int | myCurrentEntityTypeSelected |
A DtCigiEntityMappingLogic object provides the logic for a widget that maps entity types to model definitions and art part ID's to model art part numbers.
| makVrv::DtCigiEntityMappingLogic::DtCigiEntityMappingLogic | ( | DtDe & | de, |
| DtCigiEntityMappingInterface * | entMapIf, | ||
| DtCigiSettingsInterface * | settingsIf, | ||
| DtMapEditorInterface * | entTypeIf, | ||
| DtMapEditorInterface * | artPartIf, | ||
| DtPersistenceControlsInterface * | importExportIf | ||
| ) |
Constructor.
| virtual makVrv::DtCigiEntityMappingLogic::~DtCigiEntityMappingLogic | ( | ) | [virtual] |
Destructor.
| virtual void makVrv::DtCigiEntityMappingLogic::updateValues | ( | ) | [protected, virtual] |
Updates the GUI from the shared settings.
Reimplemented from makVrv::DtCigiSettingsLogic.
| virtual void makVrv::DtCigiEntityMappingLogic::updatePossibleValues | ( | ) | [protected, virtual] |
Sets the possible values for model definitions.
| virtual void makVrv::DtCigiEntityMappingLogic::rebuildDefinitions | ( | ) | [protected, virtual] |
Gets the list of possible model definitions from the shared state.
| virtual void makVrv::DtCigiEntityMappingLogic::updateEntityMappings | ( | ) | [protected, virtual] |
Updates the entity mappings portion of the GUI.
| virtual void makVrv::DtCigiEntityMappingLogic::updateArtParts | ( | ) | [protected, virtual] |
Update the articulated parts mappings portion of the GUI.
| virtual void makVrv::DtCigiEntityMappingLogic::cigiMappingsRestored | ( | const DtSettingsBackup * | s | ) | [protected, virtual] |
| void makVrv::DtCigiEntityMappingLogic::on_deleteEntityTypeValue | ( | const std::string & | key | ) | [protected] |
Called when an entity type mappings is removed.
| void makVrv::DtCigiEntityMappingLogic::on_addEntityTypeValue | ( | const std::string & | key, |
| const std::string & | value, | ||
| int | index | ||
| ) | [protected] |
Called when an entity type mapping is added.
| void makVrv::DtCigiEntityMappingLogic::on_renameEntityTypeValue | ( | const std::string & | oldName, |
| const std::string & | newName | ||
| ) | [protected] |
Called when the entity type of a mapping is changed.
| void makVrv::DtCigiEntityMappingLogic::on_newEntityTypeSelected | ( | const std::string & | entType | ) | [protected] |
Called when an entity type mapping is selected.
Updates the art part mapping.
| void makVrv::DtCigiEntityMappingLogic::on_addArtPartValue | ( | const std::string & | key, |
| const std::string & | value, | ||
| int | index | ||
| ) | [protected] |
Called when an art part mapping is added.
| void makVrv::DtCigiEntityMappingLogic::on_renameArtPartValue | ( | const std::string & | oldName, |
| const std::string & | newName | ||
| ) | [protected] |
Called when the art part ID of a mapping is changed.
| void makVrv::DtCigiEntityMappingLogic::on_deleteArtPartValue | ( | const std::string & | key | ) | [protected] |
Called when an art part mapping is deleted.
| virtual void makVrv::DtCigiEntityMappingLogic::on_currentSettingsChanged | ( | const std::string & | name | ) | [protected, virtual] |
Called when the current setting selection is changed.
Reimplemented from makVrv::DtCigiSettingsLogic.
| std::string makVrv::DtCigiEntityMappingLogic::schemaForModel | ( | const std::string & | modelName | ) | [protected] |
Gets the scheme for the given model definition.
| virtual void makVrv::DtCigiEntityMappingLogic::modelDefinitionChanged | ( | const DtSettingsChangeObject * | definition | ) | [protected, virtual] |
Reimplemented from makVrv::DtCigiSettingsLogic.
QStringList makVrv::DtCigiEntityMappingLogic::myModelDefinitions [protected] |
QStringList makVrv::DtCigiEntityMappingLogic::myArtPartPossibleValues [protected] |
int makVrv::DtCigiEntityMappingLogic::myCurrentEntityTypeSelected [protected] |