VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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]

Public Member Functions

 DtCigiModelStateMappingLogic (DtDe &de, DtCigiModelStateMappingInterface *componentMapIf, DtCigiSettingsInterface *settingsIf, DtMapEditorInterface *editorIf, DtPersistenceControlsInterface *toolbarIf)
 Constructor.
virtual ~DtCigiModelStateMappingLogic ()
 Destructor.
- Public Member Functions inherited from makVrv::DtCigiSettingsLogic
 DtCigiSettingsLogic (DtDe &de, DtCigiSettingsInterface *settingsIf, DtPersistenceControlsInterface *toolbarIf)
 Constructor.
virtual ~DtCigiSettingsLogic ()
 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 Member Functions inherited from makVrv::DtCigiSettingsLogic
virtual void on_newSettingsRequested ()
 Called when new settings are added.
virtual void on_deleteSettingsRequested (const std::string &mapperName)
 Called when settings are deleted.
virtual void on_renameSettingsRequested (const std::string &oldName, const std::string &newName)
 Called when settings are renamed.
virtual void on_currentSettingsChanged (const std::string &name)
 Called when the current settings change.
virtual void on_pageEnabled (bool trueFalse)
 Called when the page is enabled.
virtual std::string generateName () const
 Generates a new name. Used when new settings are created.
virtual void on_import ()
 Called when import is requested.
virtual void on_importFilenameChosen (const std::string &name)
 Called when the user chooses a file to import.
virtual void on_export ()
 Called when export is requested.
virtual void on_exportFilenameChosen (const std::string &name)
 Called when the user chooses a file to import to.
virtual void on_settingsToBeDeletedExternal (const std::string &name)
 Called when the settngs manager reports a settings object is to be deleted.
int stringToInt (const std::string &str)
 Utility function translates str into an integer. Returns -1 if fails.

Protected Attributes

DtCigiModelStateMappingInterfacemyMapInterface
DtMapEditorInterfacemyEditorInterface
DtModelSemanticsMappermyModelSemanticsMapper
QStringList myStateStrings
std::map< int, std::string > myStateIdToNameMap
std::map< std::string, intmyNameToStateIdMap
- Protected Attributes inherited from makVrv::DtCigiSettingsLogic
DtDemyDe
DtCigiSettingsInterfacemySettingsInterface
DtPersistenceControlsInterfacemyToolbarInterface
DtSharedCigiSettingsManagermySettingsManager
DtSignalConnectionManager myConnectionManager

Detailed Description

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

Constructor & Destructor Documentation

makVrv::DtCigiModelStateMappingLogic::DtCigiModelStateMappingLogic ( DtDe de,
DtCigiModelStateMappingInterface componentMapIf,
DtCigiSettingsInterface settingsIf,
DtMapEditorInterface editorIf,
DtPersistenceControlsInterface toolbarIf 
)

Constructor.

virtual makVrv::DtCigiModelStateMappingLogic::~DtCigiModelStateMappingLogic ( )
virtual

Destructor.

Member Function Documentation

virtual void makVrv::DtCigiModelStateMappingLogic::updateValues ( )
protectedvirtual

Updates the value in the GUI from the shared settings.

Reimplemented from makVrv::DtCigiSettingsLogic.

virtual void makVrv::DtCigiModelStateMappingLogic::initializeStateStrings ( )
protectedvirtual

Initializes the model state names.

virtual void makVrv::DtCigiModelStateMappingLogic::on_valueAdded ( const std::string &  key,
const std::string &  value,
int  index 
)
protectedvirtual

Called when a new mapping is added.

virtual void makVrv::DtCigiModelStateMappingLogic::on_valueDeleted ( const std::string &  key)
protectedvirtual

Called when a mapping is removed.

virtual void makVrv::DtCigiModelStateMappingLogic::on_valueRenamed ( const std::string &  oldName,
const std::string &  newName 
)
protectedvirtual

Called when a mapping is renamed.

virtual void makVrv::DtCigiModelStateMappingLogic::cigiMappingsRestored ( const DtSettingsBackup s)
protectedvirtual

Member Data Documentation

DtCigiModelStateMappingInterface& makVrv::DtCigiModelStateMappingLogic::myMapInterface
protected
DtMapEditorInterface& makVrv::DtCigiModelStateMappingLogic::myEditorInterface
protected
DtModelSemanticsMapper& makVrv::DtCigiModelStateMappingLogic::myModelSemanticsMapper
protected
QStringList makVrv::DtCigiModelStateMappingLogic::myStateStrings
protected
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 Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)