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 
30 {
31 public:
33  virtual ~FWDetailViewManager();
34 
35  std::vector<std::string> detailViewsFor(const FWModelId&) const;
36  // void assertMainFrame();
37  void openDetailViewFor(const FWModelId&, const std::string&);
38  void colorsChanged();
39  void newEventCallback();
40  void eveWindowDestroyed(TEveWindow*);
41 
42  struct ViewFrame
43  {
44  TEveCompositeFrameInMainFrame *m_eveFrame;
46  TEveWindow *m_eveWindow;
47 
48  ViewFrame(TEveCompositeFrameInMainFrame *f, FWDetailViewBase* v, TEveWindow* w):
49  m_eveFrame(f), m_detailView(v), m_eveWindow(w) {}
50  };
51 
52 protected:
54 
55 private:
56 
57  FWDetailViewManager(const FWDetailViewManager&); // stop default
58  const FWDetailViewManager& operator=(const FWDetailViewManager&); // stop default
59 
60  std::vector<std::string> findViewersFor(const std::string&) const;
61 
62  typedef std::vector<ViewFrame> vViews_t;
63  typedef vViews_t::iterator vViews_i;
65 
66  mutable std::map<std::string, std::vector<std::string> > m_typeToViewers;
67 };
68 
69 #endif
ViewFrame(TEveCompositeFrameInMainFrame *f, FWDetailViewBase *v, TEveWindow *w)
FWDetailViewManager(FWColorManager *)
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]
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 &)