VR-Forces Development_Version 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::DtCigiEntityMappingLogic Class Reference

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...

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

Public Member Functions

 DtCigiEntityMappingLogic (DtDe &de, DtCigiEntityMappingInterface *entMapIf, DtCigiSettingsInterface *settingsIf, DtMapEditorInterface *entTypeIf, DtMapEditorInterface *artPartIf, DtPersistenceControlsInterface *importExportIf)
 Constructor.
virtual ~DtCigiEntityMappingLogic ()
 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 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 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_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

DtMapEditorInterfacemyEntityTypeInterface
DtMapEditorInterfacemyArtPartInterface
DtCigiEntityMappingInterfacemyEntityMappingInterface
QStringList myModelDefinitions
QStringList myArtPartPossibleValues
int myCurrentEntityTypeSelected
- Protected Attributes inherited from makVrv::DtCigiSettingsLogic
DtDemyDe
DtCigiSettingsInterfacemySettingsInterface
DtPersistenceControlsInterfacemyToolbarInterface
DtSharedCigiSettingsManagermySettingsManager
DtSignalConnectionManager myConnectionManager

Detailed Description

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.

Constructor & Destructor Documentation

makVrv::DtCigiEntityMappingLogic::DtCigiEntityMappingLogic ( DtDe de,
DtCigiEntityMappingInterface entMapIf,
DtCigiSettingsInterface settingsIf,
DtMapEditorInterface entTypeIf,
DtMapEditorInterface artPartIf,
DtPersistenceControlsInterface importExportIf 
)

Constructor.

virtual makVrv::DtCigiEntityMappingLogic::~DtCigiEntityMappingLogic ( )
virtual

Destructor.

Member Function Documentation

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

Updates the GUI from the shared settings.

Reimplemented from makVrv::DtCigiSettingsLogic.

virtual void makVrv::DtCigiEntityMappingLogic::updatePossibleValues ( )
protectedvirtual

Sets the possible values for model definitions.

virtual void makVrv::DtCigiEntityMappingLogic::rebuildDefinitions ( )
protectedvirtual

Gets the list of possible model definitions from the shared state.

virtual void makVrv::DtCigiEntityMappingLogic::updateEntityMappings ( )
protectedvirtual

Updates the entity mappings portion of the GUI.

virtual void makVrv::DtCigiEntityMappingLogic::updateArtParts ( )
protectedvirtual

Update the articulated parts mappings portion of the GUI.

virtual void makVrv::DtCigiEntityMappingLogic::cigiMappingsRestored ( const DtSettingsBackup s)
protectedvirtual
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)
protectedvirtual

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)
protectedvirtual

Member Data Documentation

DtMapEditorInterface& makVrv::DtCigiEntityMappingLogic::myEntityTypeInterface
protected
DtMapEditorInterface& makVrv::DtCigiEntityMappingLogic::myArtPartInterface
protected
DtCigiEntityMappingInterface& makVrv::DtCigiEntityMappingLogic::myEntityMappingInterface
protected
QStringList makVrv::DtCigiEntityMappingLogic::myModelDefinitions
protected
QStringList makVrv::DtCigiEntityMappingLogic::myArtPartPossibleValues
protected
int makVrv::DtCigiEntityMappingLogic::myCurrentEntityTypeSelected
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)