VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtCigiModelStateMappingLogic Class Reference

A DtCigiModelStateMappingLogic object provides the logic for a widget that maps component ID's to model state numbers. More...

Inheritance diagram for makVrv::DtCigiModelStateMappingLogic:
Inheritance graph
[legend]

List of all members.

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

DtCigiModelStateMappingInterfacemyMapInterface
DtMapEditorInterfacemyEditorInterface
DtModelSemanticsMappermyModelSemanticsMapper
QStringList myStateStrings
std::map< int, std::string > myStateIdToNameMap
std::map< std::string, int > myNameToStateIdMap

Detailed Description

A DtCigiModelStateMappingLogic object provides the logic for a widget that maps component ID's to model state numbers.


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

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]

Member Data Documentation

std::map<int, std::string> makVrv::DtCigiModelStateMappingLogic::myStateIdToNameMap [protected]
std::map<std::string, int> makVrv::DtCigiModelStateMappingLogic::myNameToStateIdMap [protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)