VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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.

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

Public Member Functions

 DtCigiEntityMappingLogic (DtDe &de, DtCigiEntityMappingInterface *entMapIf, DtCigiSettingsInterface *settingsIf, DtMapEditorInterface *entTypeIf, DtMapEditorInterface *artPartIf, DtPersistenceControlsInterface *importExportIf)
 
virtual ~DtCigiEntityMappingLogic ()
 
- Public Member Functions inherited from makVrv::DtCigiSettingsLogic
 DtCigiSettingsLogic (DtDe &de, DtCigiSettingsInterface *settingsIf, DtPersistenceControlsInterface *toolbarIf)
 
virtual ~DtCigiSettingsLogic ()
 

Protected Member Functions

virtual void updateValues ()
 
virtual void updatePossibleValues ()
 
virtual void rebuildDefinitions ()
 
virtual void updateEntityMappings ()
 
virtual void updateArtParts ()
 
virtual void cigiMappingsRestored (const DtSettingsBackup *s)
 
void on_deleteEntityTypeValue (const std::string &key)
 
void on_addEntityTypeValue (const std::string &key, const std::string &value, int index)
 
void on_renameEntityTypeValue (const std::string &oldName, const std::string &newName)
 
void on_newEntityTypeSelected (const std::string &entType)
 
void on_addArtPartValue (const std::string &key, const std::string &value, int index)
 
void on_renameArtPartValue (const std::string &oldName, const std::string &newName)
 
void on_deleteArtPartValue (const std::string &key)
 
virtual void on_currentSettingsChanged (const std::string &name)
 
std::string schemaForModel (const std::string &modelName)
 
virtual void modelDefinitionChanged (const DtSettingsChangeObject *definition)
 
- Protected Member Functions inherited from makVrv::DtCigiSettingsLogic
virtual void on_newSettingsRequested ()
 
virtual void on_deleteSettingsRequested (const std::string &mapperName)
 
virtual void on_renameSettingsRequested (const std::string &oldName, const std::string &newName)
 
virtual void on_pageEnabled (bool trueFalse)
 
virtual std::string generateName () const
 
virtual void on_import ()
 
virtual void on_importFilenameChosen (const std::string &name)
 
virtual void on_export ()
 
virtual void on_exportFilenameChosen (const std::string &name)
 
virtual void on_settingsToBeDeletedExternal (const std::string &name)
 
int stringToInt (const std::string &str)
 

Protected Attributes

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

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
DtSignalConnectionManager makVrv::DtCigiEntityMappingLogic::myConnections
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)