VR-Forces 5.0.2 Developer's Guide
 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 
9 
10 #ifndef DtCigiEntityMappingLogic_H_
11 #define DtCigiEntityMappingLogic_H_
12 
13 #include <vrvCigiQt/vrvCigiQt.h>
15 
16 #include <QtCore/QStringList>
17 
18 namespace makVrv
19 {
20  class DtCigiEntityMappingInterface;
21  class DtCigiEntityMappingInterface;
22  class DtMapEditorInterface;
23  class DtPersistenceControlsInterface;
24  class DtSharedCigiSettingsManager;
25  class DtPersistenceControlsInterface;
26  class DtSettingsBackup;
27  class DtSettingsChangeObject;
28 
34  {
35  public:
38  DtCigiSettingsInterface* settingsIf,
39  DtMapEditorInterface* entTypeIf, DtMapEditorInterface* artPartIf,
40  DtPersistenceControlsInterface* importExportIf);
41 
43  virtual ~DtCigiEntityMappingLogic();
44 
45  protected:
47  virtual void updateValues();
48 
50  virtual void updatePossibleValues();
51 
53  virtual void rebuildDefinitions();
54 
56  virtual void updateEntityMappings();
57 
59  virtual void updateArtParts();
60  virtual void cigiMappingsRestored(const DtSettingsBackup* s);
61 
63  void on_deleteEntityTypeValue(const std::string& key);
64 
66  void on_addEntityTypeValue(const std::string& key,const std::string& value, int index);
67 
69  void on_renameEntityTypeValue(const std::string& oldName, const std::string& newName );
70 
73  void on_newEntityTypeSelected(const std::string& entType);
74 
76  void on_addArtPartValue(const std::string& key, const std::string& value, int index);
77 
79  void on_renameArtPartValue(const std::string& oldName, const std::string& newName);
80 
82  void on_deleteArtPartValue(const std::string& key);
83 
85  virtual void on_currentSettingsChanged(const std::string& name);
86 
88  std::string schemaForModel(const std::string& modelName);
89 
90  virtual void modelDefinitionChanged( const DtSettingsChangeObject* definition );
91 
92  protected:
96  QStringList myModelDefinitions;
99  };
100 }
101 
102 #endif
This class provides the logic to handle multiple named CIGI settings, including adding, removing, importing, exporting, renaming, etc. them.
Definition: DtCigiSettingsLogic.h:26
A DtCigiSettingsInterface is an abstract interface for a CIGI settings widget. There may be different...
Definition: DtCigiSettingsInterface.h:23
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:20
QStringList myArtPartPossibleValues
Definition: DtCigiEntityMappingLogic.h:97
DtMapEditorInterface & myArtPartInterface
Definition: DtCigiEntityMappingLogic.h:94
DtMapEditorInterface & myEntityTypeInterface
Definition: DtCigiEntityMappingLogic.h:93
Provides a method of doign settings backup.
Definition: DtSettingsBackup.h:23
QStringList myModelDefinitions
Definition: DtCigiEntityMappingLogic.h:96
Interface for a key/value pair editor GUI.
Definition: DtMapEditorInterface.h:19
DtCigiEntityMappingInterface & myEntityMappingInterface
Definition: DtCigiEntityMappingLogic.h:95
int myCurrentEntityTypeSelected
Definition: DtCigiEntityMappingLogic.h:98
A DtCigiEntityMappingLogic object provides the logic for a widget that maps entity types to model def...
Definition: DtCigiEntityMappingLogic.h:33
makVrv::DtSettingsChangeObject is a base class for all settings change objects
Definition: DtSettingsChangeManager.h:31
Contains DLL export macros.
Contains makVrv::DtCigiSettingsLogic class.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)