VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCigiModelStateMappingLogic.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2018 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #pragma once
11 
13 
14 #include <QtCore/QStringList>
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtCigiModelStateMappingInterface;
21  class DtModelSemanticsMapper;
22  class DtMapEditorInterface;
23  class DtSharedCigiSettingsManager;
24  class DtPersistenceControlsInterface;
25  class DtSettingsBackup;
26 
31  {
32  public:
35  componentMapIf, DtCigiSettingsInterface* settingsIf,
36  DtMapEditorInterface* editorIf,
38 
41 
42  protected:
44  virtual void updateValues();
45 
47  virtual void initializeStateStrings();
48 
50  virtual void on_valueAdded(const std::string& key, const std::string& value, int index);
51 
53  virtual void on_valueDeleted(const std::string& key);
54 
56  virtual void on_valueRenamed(const std::string& oldName, const std::string& newName);
57  virtual void cigiMappingsRestored(const DtSettingsBackup* s);
58 
59  protected:
63  QStringList myStateStrings;
64  std::map<int, std::string> myStateIdToNameMap;
65  std::map<std::string, int> myNameToStateIdMap;
66  };
67 
68  class DtCigiConnection;
70 
72  {
73  public:
76 
79 
81  static DtCigiModelStateMappingLogicCreator& instance(DtDe& de);
82 
83  virtual void registerInstance(DtDe& de, DtCigiModelStateMappingLogicCreator* creator);
84 
87  componentMapIf, DtCigiSettingsInterface* settingsIf,
88  DtMapEditorInterface* editorIf,
89  DtPersistenceControlsInterface* toolbarIf) const;
90  };
91 }
This class provides the logic to handle multiple named CIGI settings, including adding, removing, importing, exporting, renaming, etc.
Definition: DtCigiSettingsLogic.h:29
Virtual base class.
Definition: DtVirtualBaseClass.h:22
DtModelSemanticsMapper & myModelSemanticsMapper
Definition: DtCigiModelStateMappingLogic.h:62
Definition: DtCigiModelStateMappingLogic.h:71
DtCigiModelStateMappingInterface & myMapInterface
Definition: DtCigiModelStateMappingLogic.h:60
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
QStringList myStateStrings
Definition: DtCigiModelStateMappingLogic.h:63
std::map< int, std::string > myStateIdToNameMap
Definition: DtCigiModelStateMappingLogic.h:64
Contains makVrv::DtVirtualBaseClass class.
A DtCigiModelStateMappingLogic object provides the logic for a widget that maps component ID&#39;s to mod...
Definition: DtCigiModelStateMappingLogic.h:30
Provides a method of doign settings backup.
Definition: DtSettingsBackup.h:26
This class is responsible for the actual processing of CIGI data.
Definition: DtCigiConnection.h:56
Interface for a key/value pair editor GUI.
Definition: DtMapEditorInterface.h:19
Contains makVrv::DtCigiSettingsLogic class.
The abstract interface necessary for agents.
Definition: DtAgentManagerInterface.h:36
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
std::map< std::string, int > myNameToStateIdMap
Definition: DtCigiModelStateMappingLogic.h:65
DtMapEditorInterface & myEditorInterface
Definition: DtCigiModelStateMappingLogic.h:61
A DtCigiModelStateMappingInterface provides the interface for a widget that maps component ID&#39;s to mo...
Definition: DtCigiModelStateMappingInterface.h:27
The DtModelSemanticsMapper object is responsible for mapping Names of model semantics declarations (f...
Definition: DtModelSemanticsMapper.h:27

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)