CMS 3D CMS Logo

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 <memory>
22 #include <string>
23 #include <vector>
24 
25 class FWColorManager;
26 class TEveCompositeFrameInMainFrame;
27 class FWDetailViewBase;
28 class FWModelId;
29 class TEveWindow;
30 
31 namespace fireworks {
32  class Context;
33 }
34 
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  TEveCompositeFrameInMainFrame* m_eveFrame;
49  std::unique_ptr<FWDetailViewBase> m_detailView;
50  TEveWindow* m_eveWindow;
51 
52  ViewFrame(TEveCompositeFrameInMainFrame* f, std::unique_ptr<FWDetailViewBase> v, TEveWindow* w);
53  ~ViewFrame();
54  ViewFrame(const ViewFrame&) = delete;
55  ViewFrame& operator=(const ViewFrame&) = delete;
56  ViewFrame(ViewFrame&&) = default;
57  ViewFrame& operator=(ViewFrame&&) = default;
58  };
59 
60 protected:
62 
63 private:
64  FWDetailViewManager(const FWDetailViewManager&) = delete; // stop default
65  const FWDetailViewManager& operator=(const FWDetailViewManager&) = delete; // stop default
66 
67  std::vector<std::string> findViewersFor(const std::string&) const;
68 
69  typedef std::vector<ViewFrame> vViews_t;
70  typedef vViews_t::iterator vViews_i;
72 
73  mutable std::map<std::string, std::vector<std::string> > m_typeToViewers;
74 };
75 
76 #endif
fireworks::Context
Definition: Context.h:41
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
FWDetailViewManager::colorsChanged
void colorsChanged()
Definition: FWDetailViewManager.cc:194
FWDetailViewManager::vViews_t
std::vector< ViewFrame > vViews_t
Definition: FWDetailViewManager.h:69
FWModelId
Definition: FWModelId.h:28
FWDetailViewManager::openDetailViewFor
void openDetailViewFor(const FWModelId &, const std::string &)
Definition: FWDetailViewManager.cc:71
FWDetailViewManager::ViewFrame::m_eveFrame
TEveCompositeFrameInMainFrame * m_eveFrame
Definition: FWDetailViewManager.h:48
Context
findQualityFiles.v
v
Definition: findQualityFiles.py:179
FWDetailViewManager
Definition: FWDetailViewManager.h:35
FWDetailViewManager::ViewFrame::~ViewFrame
~ViewFrame()
FWDetailViewManager::ViewFrame::m_detailView
std::unique_ptr< FWDetailViewBase > m_detailView
Definition: FWDetailViewManager.h:49
FWDetailViewManager::ViewFrame
Definition: FWDetailViewManager.h:47
w
const double w
Definition: UKUtility.cc:23
FWDetailViewManager::vViews_i
vViews_t::iterator vViews_i
Definition: FWDetailViewManager.h:70
FWDetailViewManager::m_typeToViewers
std::map< std::string, std::vector< std::string > > m_typeToViewers
Definition: FWDetailViewManager.h:73
FWDetailViewManager::detailViewsFor
std::vector< std::string > detailViewsFor(const FWModelId &) const
Definition: FWDetailViewManager.cc:112
FWDetailViewManager::~FWDetailViewManager
virtual ~FWDetailViewManager()
Definition: FWDetailViewManager.cc:60
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FWDetailViewManager::ViewFrame::m_eveWindow
TEveWindow * m_eveWindow
Definition: FWDetailViewManager.h:50
FWDetailViewManager::ViewFrame::operator=
ViewFrame & operator=(const ViewFrame &)=delete
FWDetailViewManager::m_context
fireworks::Context * m_context
Definition: FWDetailViewManager.h:61
FWDetailViewManager::operator=
const FWDetailViewManager & operator=(const FWDetailViewManager &)=delete
FWDetailViewManager::m_views
vViews_t m_views
Definition: FWDetailViewManager.h:71
FWDetailViewBase
Definition: FWDetailViewBase.h:35
FWColorManager
Definition: FWColorManager.h:45
FWDetailViewManager::newEventCallback
void newEventCallback()
Definition: FWDetailViewManager.cc:199
fireworks
Definition: FWTauProxyBuilderBase.h:35
FWDetailViewManager::eveWindowDestroyed
void eveWindowDestroyed(TEveWindow *)
Definition: FWDetailViewManager.cc:205
FWDetailViewManager::findViewersFor
std::vector< std::string > findViewersFor(const std::string &) const
Definition: FWDetailViewManager.cc:130
FWDetailViewManager::ViewFrame::ViewFrame
ViewFrame(TEveCompositeFrameInMainFrame *f, std::unique_ptr< FWDetailViewBase > v, TEveWindow *w)
Definition: FWDetailViewManager.cc:65
FWDetailViewManager::FWDetailViewManager
FWDetailViewManager(fireworks::Context *)
Definition: FWDetailViewManager.cc:51