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 public:
40  virtual ~FWViewManagerManager();
41 
42  // ---------- const member functions ---------------------
44 
45  // ---------- static member functions --------------------
46 
47  // ---------- member functions ---------------------------
48  void add(std::shared_ptr<FWViewManagerBase>);
49  void registerEventItem(const FWEventItem* iItem);
50  void removeEventItem(const FWEventItem* iItem);
51  void eventBegin();
52  void eventEnd();
53 
54  FWViewManagerManager(const FWViewManagerManager&) = delete; // stop default
55 
56  const FWViewManagerManager& operator=(const FWViewManagerManager&) = delete; // stop default
57 
58 private:
59  // ---------- member data --------------------------------
60  std::vector<std::shared_ptr<FWViewManagerBase> > m_viewManagers;
63  std::map<std::string, const FWEventItem*> m_typeToItems; //use this to tell view managers registered after the item
64 };
65 
66 #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