CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWDetailViewManager.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWDetailViewManager_h
2 #define Fireworks_Core_FWDetailViewManager_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWDetailViewManager
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Wed Mar 5 09:13:43 EST 2008
19 // $Id: FWDetailViewManager.h,v 1.25 2011/05/27 04:03:42 amraktad Exp $
20 //
21 #include <map>
22 #include <string>
23 
24 class FWColorManager;
25 class TEveCompositeFrameInMainFrame;
26 class FWDetailViewBase;
27 class FWModelId;
28 class TEveWindow;
29 
31 {
32 public:
34  virtual ~FWDetailViewManager();
35 
36  std::vector<std::string> detailViewsFor(const FWModelId&) const;
37  // void assertMainFrame();
38  void openDetailViewFor(const FWModelId&, const std::string&);
39  void colorsChanged();
40  void newEventCallback();
41  void eveWindowDestroyed(TEveWindow*);
42 
43 protected:
45 
46 private:
47 
48  FWDetailViewManager(const FWDetailViewManager&); // stop default
49  const FWDetailViewManager& operator=(const FWDetailViewManager&); // stop default
50 
51  std::vector<std::string> findViewersFor(const std::string&) const;
52 
53  struct ViewFrame
54  {
55  TEveCompositeFrameInMainFrame *m_eveFrame;
57  TEveWindow *m_eveWindow;
58 
59  ViewFrame(TEveCompositeFrameInMainFrame *f, FWDetailViewBase* v, TEveWindow* w):
60  m_eveFrame(f), m_detailView(v), m_eveWindow(w) {}
61  };
62 
63  typedef std::vector<ViewFrame> vViews_t;
64  typedef vViews_t::iterator vViews_i;
66 
67  mutable std::map<std::string, std::vector<std::string> > m_typeToViewers;
68 };
69 
70 #endif
ViewFrame(TEveCompositeFrameInMainFrame *f, FWDetailViewBase *v, TEveWindow *w)
FWDetailViewManager(FWColorManager *)
vViews_t::iterator vViews_i
std::vector< std::string > findViewersFor(const std::string &) const
std::vector< ViewFrame > vViews_t
void eveWindowDestroyed(TEveWindow *)
std::map< std::string, std::vector< std::string > > m_typeToViewers
double f[11][100]
FWColorManager * m_colorManager
std::vector< std::string > detailViewsFor(const FWModelId &) const
void openDetailViewFor(const FWModelId &, const std::string &)
TEveCompositeFrameInMainFrame * m_eveFrame
const FWDetailViewManager & operator=(const FWDetailViewManager &)
mathSSE::Vec4< T > v
T w() const