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 private:
55  FWViewManagerManager(const FWViewManagerManager&) = delete; // stop default
56 
57  const FWViewManagerManager& operator=(const FWViewManagerManager&) = delete; // stop default
58 
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
FWViewManagerManager::operator=
const FWViewManagerManager & operator=(const FWViewManagerManager &)=delete
FWViewManagerManager::eventEnd
void eventEnd()
Definition: FWViewManagerManager.cc:113
FWViewManagerBase
Definition: FWViewManagerBase.h:45
FWViewManagerManager::m_colorManager
FWColorManager * m_colorManager
Definition: FWViewManagerManager.h:62
FWViewManagerManager::FWViewManagerManager
FWViewManagerManager(FWModelChangeManager *, FWColorManager *)
Definition: FWViewManagerManager.cc:35
FWViewManagerManager::add
void add(std::shared_ptr< FWViewManagerBase >)
Definition: FWViewManagerManager.cc:60
FWModelChangeManager
Definition: FWModelChangeManager.h:33
FWViewManagerManager::m_changeManager
FWModelChangeManager * m_changeManager
Definition: FWViewManagerManager.h:61
FWViewManagerManager::eventBegin
void eventBegin()
Definition: FWViewManagerManager.cc:108
FWViewManagerManager
Definition: FWViewManagerManager.h:37
FWColorManager
Definition: FWColorManager.h:45
FWViewManagerManager::m_typeToItems
std::map< std::string, const FWEventItem * > m_typeToItems
Definition: FWViewManagerManager.h:63
FWViewManagerManager::removeEventItem
void removeEventItem(const FWEventItem *iItem)
Definition: FWViewManagerManager.cc:88
FWEventItem
Definition: FWEventItem.h:56
FWViewManagerManager::m_viewManagers
std::vector< std::shared_ptr< FWViewManagerBase > > m_viewManagers
Definition: FWViewManagerManager.h:60
FWTypeToRepresentations
Definition: FWTypeToRepresentations.h:33
FWViewManagerManager::registerEventItem
void registerEventItem(const FWEventItem *iItem)
Definition: FWViewManagerManager.cc:72
FWViewManagerManager::supportedTypesAndRepresentations
FWTypeToRepresentations supportedTypesAndRepresentations() const
Definition: FWViewManagerManager.cc:97
FWViewManagerManager::~FWViewManagerManager
virtual ~FWViewManagerManager()
Definition: FWViewManagerManager.cc:43