VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCigiEntityMappingLogic.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2009 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: DtCigiEntityMappingLogic.h,v $ $Revision: 1.1 $ $State: Exp $
7 *********************************************************************/
8 
12 
13 #ifndef DtCigiEntityMappingLogic_H_
14 #define DtCigiEntityMappingLogic_H_
15 
16 #include <vrvCigiQt/vrvCigiQt.h>
18 
19 #include <QtCore/QStringList>
20 
21 namespace makVrv
22 {
23  class DtCigiEntityMappingInterface;
24  class DtCigiEntityMappingInterface;
25  class DtMapEditorInterface;
26  class DtPersistenceControlsInterface;
27  class DtSharedCigiSettingsManager;
28  class DtPersistenceControlsInterface;
29  class DtSettingsBackup;
30  class DtSettingsChangeObject;
31 
37  {
38  public:
41  DtCigiSettingsInterface* settingsIf,
42  DtMapEditorInterface* entTypeIf, DtMapEditorInterface* artPartIf,
43  DtPersistenceControlsInterface* importExportIf);
44 
46  virtual ~DtCigiEntityMappingLogic();
47 
48  protected:
50  virtual void updateValues();
51 
53  virtual void updatePossibleValues();
54 
56  virtual void rebuildDefinitions();
57 
59  virtual void updateEntityMappings();
60 
62  virtual void updateArtParts();
63  virtual void cigiMappingsRestored(const DtSettingsBackup* s);
64 
66  void on_deleteEntityTypeValue(const std::string& key);
67 
69  void on_addEntityTypeValue(const std::string& key,const std::string& value, int index);
70 
72  void on_renameEntityTypeValue(const std::string& oldName, const std::string& newName );
73 
76  void on_newEntityTypeSelected(const std::string& entType);
77 
79  void on_addArtPartValue(const std::string& key, const std::string& value, int index);
80 
82  void on_renameArtPartValue(const std::string& oldName, const std::string& newName);
83 
85  void on_deleteArtPartValue(const std::string& key);
86 
88  virtual void on_currentSettingsChanged(const std::string& name);
89 
91  std::string schemaForModel(const std::string& modelName);
92 
93  virtual void modelDefinitionChanged( const DtSettingsChangeObject* definition );
94 
95  protected:
99  QStringList myModelDefinitions;
102  };
103 }
104 
105 #endif
This class provides the logic to handle multiple named CIGI settings, including adding, removing, importing, exporting, renaming, etc.
Definition: DtCigiSettingsLogic.h:29
A DtCigiSettingsInterface is an abstract interface for a CIGI settings widget.
Definition: DtCigiSettingsInterface.h:26
Abstract interface for controlling persistence of state in a dialog.
Definition: DtPersistenceControlsInterface.h:20
#define DT_DLL_VRVCIGIQT
Definition: vrvCigiQt.h:19
Abstract interface used for mapping CIGI entity types and articulated part ID&#39;s.
Definition: DtCigiEntityMappingInterface.h:25
QStringList myArtPartPossibleValues
Definition: DtCigiEntityMappingLogic.h:100
DtMapEditorInterface & myArtPartInterface
Definition: DtCigiEntityMappingLogic.h:97
DtMapEditorInterface & myEntityTypeInterface
Definition: DtCigiEntityMappingLogic.h:96
Provides a method of doign settings backup.
Definition: DtSettingsBackup.h:26
QStringList myModelDefinitions
Definition: DtCigiEntityMappingLogic.h:99
Interface for a key/value pair editor GUI.
Definition: DtMapEditorInterface.h:19
DtCigiEntityMappingInterface & myEntityMappingInterface
Definition: DtCigiEntityMappingLogic.h:98
int myCurrentEntityTypeSelected
Definition: DtCigiEntityMappingLogic.h:101
A DtCigiEntityMappingLogic object provides the logic for a widget that maps entity types to model def...
Definition: DtCigiEntityMappingLogic.h:36
makVrv::DtSettingsChangeObject is a base class for all settings change objects
Definition: DtSettingsChangeManager.h:34
Contains DLL export macros.
Contains makVrv::DtCigiSettingsLogic class.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)