CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: FWViewManagerManager.h,v 1.12 2009/11/05 22:06:02 dmytro Exp $
20 //
21 
22 // system include files
23 #include <vector>
24 #include <map>
25 #include <boost/shared_ptr.hpp>
26 #include <set>
27 #include <string>
28 
29 // user include files
30 
31 // forward declarations
32 class FWViewManagerBase;
33 class FWEventItem;
35 class FWColorManager;
37 
39 {
40 
41 public:
43  virtual ~FWViewManagerManager();
44 
45  // ---------- const member functions ---------------------
47 
48  // ---------- static member functions --------------------
49 
50  // ---------- member functions ---------------------------
51  void add( boost::shared_ptr<FWViewManagerBase>);
52  void registerEventItem(const FWEventItem*iItem);
53  void removeEventItem(const FWEventItem*iItem);
54  void eventBegin();
55  void eventEnd();
56 
57 private:
58  FWViewManagerManager(const FWViewManagerManager&); // stop default
59 
60  const FWViewManagerManager& operator=(const FWViewManagerManager&); // stop default
61 
62  // ---------- member data --------------------------------
63  std::vector<boost::shared_ptr<FWViewManagerBase> > m_viewManagers;
66  std::map<std::string, const FWEventItem*> m_typeToItems; //use this to tell view managers registered after the item
67 
68 };
69 
70 
71 #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
void add(boost::shared_ptr< FWViewManagerBase >)
const FWViewManagerManager & operator=(const FWViewManagerManager &)
FWColorManager * m_colorManager
std::vector< boost::shared_ptr< FWViewManagerBase > > m_viewManagers