VR-Forces 4.1.1 Class Documentation
DtVisualizerCreationSettingsManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 
16 #include <vrvUtil/event_signal.h>
18 
19 #include <boost/unordered_map.hpp>
20 
21 #include <set>
22 
23 namespace makVrv
24 {
25  class DtBaseConnection;
26  class DtDe;
27  class DtObserver;
28  class DtInputDriver;
29 
35  public DtVirtualBaseClass
36  {
37  public:
38 
41 
44  static DtVisualizerCreationSettingsManager& instance(DtDe& de);
45 
48 
52  void setCreationStrategy(int, bool);
53 
57  virtual void createAndRegisterVisualizerCreationSettings(
58  DtBaseConnection& connection );
59 
60  protected:
61 
65  typedef boost::unordered_map<int, bool>
67 
70 
73  virtual void slot_observerModeSettingChanged( int observerMode,
74  int setting );
75 
78  virtual void slot_observerModeModelSetChanged( int observerMode );
79 
82  virtual void slot_observerModeChanged( DtObserver* observer,
83  int newMode );
84 
87  virtual void slot_observerCreated( DtInputDriver*, DtObserver* observer );
88 
91  virtual void slot_observerToBeDestroyed( DtInputDriver*,
92  DtObserver* observer );
93 
95  virtual void initializeCreationSettings(
96  DtVisualizerCreationSettings* settings) const;
97 
99  virtual void connectToObserver( DtObserver* observer );
100 
102  virtual void disconnectFromObserver( DtObserver* observer );
103 
106  virtual void updateAllCreationSettings() const;
107 
108  private:
109  // Copy constructor not implemented
112 
113  // Assignment operator not implemented
116 
117  protected:
118 
122 
124  std::set<DtObserver*> myObserverSet;
125  };
126 
130  : public DtVirtualBaseClass
131  {
132 
133  public:
136  static DtVisualizerCreationSettingsManagerCreator& instance(DtDe& de);
137 
139  static void registerInstance(DtDe& de,
141 
143  virtual DtVisualizerCreationSettingsManager* create(DtDe& de);
144  };
145 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)