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 //
20 #include <map>
21 #include <string>
22 
23 class FWColorManager;
24 class TEveCompositeFrameInMainFrame;
25 class FWDetailViewBase;
26 class FWModelId;
27 class TEveWindow;
28 
29 namespace fireworks
30 {
31 class Context;
32 }
33 
35 {
36 public:
38  virtual ~FWDetailViewManager();
39 
40  std::vector<std::string> detailViewsFor(const FWModelId&) const;
41  // void assertMainFrame();
42  void openDetailViewFor(const FWModelId&, const std::string&);
43  void colorsChanged();
44  void newEventCallback();
45  void eveWindowDestroyed(TEveWindow*);
46 
47  struct ViewFrame
48  {
49  TEveCompositeFrameInMainFrame *m_eveFrame;
51  TEveWindow *m_eveWindow;
52 
53  ViewFrame(TEveCompositeFrameInMainFrame *f, FWDetailViewBase* v, TEveWindow* w):
54  m_eveFrame(f), m_detailView(v), m_eveWindow(w) {}
55  };
56 
57 protected:
59 
60 private:
61 
62  FWDetailViewManager(const FWDetailViewManager&); // stop default
63  const FWDetailViewManager& operator=(const FWDetailViewManager&); // stop default
64 
65  std::vector<std::string> findViewersFor(const std::string&) const;
66 
67  typedef std::vector<ViewFrame> vViews_t;
68  typedef vViews_t::iterator vViews_i;
70 
71  mutable std::map<std::string, std::vector<std::string> > m_typeToViewers;
72 };
73 
74 #endif
ViewFrame(TEveCompositeFrameInMainFrame *f, FWDetailViewBase *v, TEveWindow *w)
const double w
Definition: UKUtility.cc:23
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]
fireworks::Context * m_context
std::vector< std::string > detailViewsFor(const FWModelId &) const
void openDetailViewFor(const FWModelId &, const std::string &)
FWDetailViewManager(fireworks::Context *)
TEveCompositeFrameInMainFrame * m_eveFrame
const FWDetailViewManager & operator=(const FWDetailViewManager &)