VR-Forces 4.0.4 Class Documentation
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]

List of all members.

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

DtMapEditorInterfacemyEntityTypeInterface
DtMapEditorInterfacemyArtPartInterface
DtCigiEntityMappingInterfacemySettingsInterface
QStringList myModelDefinitions
QStringList myArtPartPossibleValues
int myCurrentEntityTypeSelected

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

Constructor.

Destructor.


Member Function Documentation

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]

Member Data Documentation

Reimplemented from makVrv::DtCigiSettingsLogic.


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)