CMS 3D CMS Logo

FWViewManagerManager.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWViewManagerManager_h
2 #define Fireworks_Core_FWViewManagerManager_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWViewManagerManager
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Tue Jan 15 10:26:23 EST 2008
19 //
20 
21 // system include files
22 #include <vector>
23 #include <map>
24 #include <memory>
25 #include <set>
26 #include <string>
27 
28 // user include files
29 
30 // forward declarations
31 class FWViewManagerBase;
32 class FWEventItem;
34 class FWColorManager;
36 
38 {
39 
40 public:
42  virtual ~FWViewManagerManager();
43 
44  // ---------- const member functions ---------------------
46 
47  // ---------- static member functions --------------------
48 
49  // ---------- member functions ---------------------------
50  void add( std::shared_ptr<FWViewManagerBase>);
51  void registerEventItem(const FWEventItem*iItem);
52  void removeEventItem(const FWEventItem*iItem);
53  void eventBegin();
54  void eventEnd();
55 
56 private:
57  FWViewManagerManager(const FWViewManagerManager&) = delete; // stop default
58 
59  const FWViewManagerManager& operator=(const FWViewManagerManager&) = delete; // stop default
60 
61  // ---------- member data --------------------------------
62  std::vector<std::shared_ptr<FWViewManagerBase> > m_viewManagers;
65  std::map<std::string, const FWEventItem*> m_typeToItems; //use this to tell view managers registered after the item
66 
67 };
68 
69 
70 #endif
void registerEventItem(const FWEventItem *iItem)
void removeEventItem(const FWEventItem *iItem)
FWTypeToRepresentations supportedTypesAndRepresentations() const
FWModelChangeManager * m_changeManager
FWViewManagerManager(FWModelChangeManager *, FWColorManager *)
std::map< std::string, const FWEventItem * > m_typeToItems
const FWViewManagerManager & operator=(const FWViewManagerManager &)=delete
std::vector< std::shared_ptr< FWViewManagerBase > > m_viewManagers
void add(std::shared_ptr< FWViewManagerBase >)
FWColorManager * m_colorManager