CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
FWTriggerTableViewManager Class Reference

#include <FWTriggerTableViewManager.h>

Inheritance diagram for FWTriggerTableViewManager:
FWViewManagerBase FWConfigurable

Public Member Functions

void addTo (FWConfiguration &) const override
 
FWViewBasebuildView (TEveWindowSlot *iParent, const std::string &type)
 
 FWTriggerTableViewManager (FWGUIManager *)
 
void newItem (const FWEventItem *) override
 
void setFrom (const FWConfiguration &) override
 
FWTypeToRepresentations supportedTypesAndRepresentations () const override
 
 ~FWTriggerTableViewManager () override
 
- Public Member Functions inherited from FWViewManagerBase
void colorsChangedSlot ()
 
const fireworks::Contextcontext () const
 
virtual void eventBegin ()
 
void modelChangesComingSlot ()
 
void modelChangesDoneSlot ()
 
void setChangeManager (FWModelChangeManager *iCM)
 
void setColorManager (FWColorManager *iCM)
 
virtual void setContext (const fireworks::Context *x)
 
virtual ~FWViewManagerBase ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
virtual ~FWConfigurable ()
 

Protected Member Functions

void colorsChanged () override
 
void eventEnd () override
 
 FWTriggerTableViewManager ()
 
void modelChangesComing () override
 
void modelChangesDone () override
 
void updateProcessList ()
 
- Protected Member Functions inherited from FWViewManagerBase
FWModelChangeManagerchangeManager () const
 
FWColorManagercolorManager () const
 
void * createInstanceOf (const TClass *iBaseClass, const char *iNameOfClass)
 
 FWViewManagerBase ()
 

Protected Attributes

std::vector< std::shared_ptr< FWTriggerTableView > > m_views
 

Private Member Functions

void beingDestroyed (const FWViewBase *)
 
 FWTriggerTableViewManager (const FWTriggerTableViewManager &)
 
const FWTriggerTableViewManageroperator= (const FWTriggerTableViewManager &)
 

Detailed Description

Definition at line 21 of file FWTriggerTableViewManager.h.

Constructor & Destructor Documentation

FWTriggerTableViewManager::FWTriggerTableViewManager ( FWGUIManager iGUIMgr)

Definition at line 29 of file FWTriggerTableViewManager.cc.

References buildView(), f, FWViewType::idToName(), FWViewType::kTableHLT, FWViewType::kTableL1, and FWGUIManager::registerViewBuilder().

29  : FWViewManagerBase() {
31  f = boost::bind(&FWTriggerTableViewManager::buildView, this, _1, _2);
34 }
FWViewBase * buildView(TEveWindowSlot *iParent, const std::string &type)
void registerViewBuilder(const std::string &iName, ViewBuildFunctor &iBuilder)
double f[11][100]
boost::function2< FWViewBase *, TEveWindowSlot *, const std::string & > ViewBuildFunctor
Definition: FWGUIManager.h:97
static const std::string & idToName(int)
Definition: FWViewType.cc:72
FWTriggerTableViewManager::~FWTriggerTableViewManager ( )
override

Definition at line 36 of file FWTriggerTableViewManager.cc.

36 {}
FWTriggerTableViewManager::FWTriggerTableViewManager ( )
protected
FWTriggerTableViewManager::FWTriggerTableViewManager ( const FWTriggerTableViewManager )
private

Member Function Documentation

void FWTriggerTableViewManager::addTo ( FWConfiguration ) const
inlineoverridevirtual

Implements FWConfigurable.

Definition at line 31 of file FWTriggerTableViewManager.h.

31 {}
void FWTriggerTableViewManager::beingDestroyed ( const FWViewBase iView)
private

Definition at line 54 of file FWTriggerTableViewManager.cc.

References m_views.

Referenced by buildView().

54  {
55  for (std::vector<std::shared_ptr<FWTriggerTableView> >::iterator it = m_views.begin(), itEnd = m_views.end();
56  it != itEnd;
57  ++it) {
58  if (it->get() == iView) {
59  m_views.erase(it);
60  return;
61  }
62  }
63 }
std::vector< std::shared_ptr< FWTriggerTableView > > m_views
class FWViewBase * FWTriggerTableViewManager::buildView ( TEveWindowSlot *  iParent,
const std::string &  type 
)

Definition at line 38 of file FWTriggerTableViewManager.cc.

References beingDestroyed(), FWViewManagerBase::colorManager(), FWViewManagerBase::context(), FWViewType::kTableHLT, m_views, and FWViewType::sName.

Referenced by FWTriggerTableViewManager().

38  {
39  std::shared_ptr<FWTriggerTableView> view;
40 
42  view.reset(new FWHLTTriggerTableView(iParent));
43  else
44  view.reset(new FWL1TriggerTableView(iParent));
45 
46  view->setProcessList(&(context().metadataManager()->processNamesInJob()));
47 
48  view->setBackgroundColor(colorManager().background());
49  m_views.push_back(std::shared_ptr<FWTriggerTableView>(view));
50  view->beingDestroyed_.connect(boost::bind(&FWTriggerTableViewManager::beingDestroyed, this, _1));
51  return view.get();
52 }
std::vector< std::shared_ptr< FWTriggerTableView > > m_views
type
Definition: HCALResponse.h:21
const fireworks::Context & context() const
void beingDestroyed(const FWViewBase *)
FWColorManager & colorManager() const
static std::string sName[kTypeSize]
Definition: FWViewType.h:71
void FWTriggerTableViewManager::colorsChanged ( )
overrideprotectedvirtual

Implements FWViewManagerBase.

Definition at line 65 of file FWTriggerTableViewManager.cc.

References FWViewManagerBase::colorManager(), and m_views.

65  {
66  for (std::vector<std::shared_ptr<FWTriggerTableView> >::iterator it = m_views.begin(), itEnd = m_views.end();
67  it != itEnd;
68  ++it) {
69  (*it)->setBackgroundColor(colorManager().background());
70  }
71 }
std::vector< std::shared_ptr< FWTriggerTableView > > m_views
FWColorManager & colorManager() const
void FWTriggerTableViewManager::eventEnd ( )
overrideprotectedvirtual

Reimplemented from FWViewManagerBase.

Definition at line 73 of file FWTriggerTableViewManager.cc.

References m_views.

73  {
74  for (std::vector<std::shared_ptr<FWTriggerTableView> >::iterator it = m_views.begin(), itEnd = m_views.end();
75  it != itEnd;
76  ++it) {
77  (*it)->dataChanged();
78  }
79 }
std::vector< std::shared_ptr< FWTriggerTableView > > m_views
void FWTriggerTableViewManager::modelChangesComing ( )
inlineoverrideprotectedvirtual

called when models have changed and so the display must be updated

Implements FWViewManagerBase.

Definition at line 40 of file FWTriggerTableViewManager.h.

40 {}
void FWTriggerTableViewManager::modelChangesDone ( )
inlineoverrideprotectedvirtual

Implements FWViewManagerBase.

Definition at line 41 of file FWTriggerTableViewManager.h.

41 {}
void FWTriggerTableViewManager::newItem ( const FWEventItem )
inlineoverridevirtual

Implements FWViewManagerBase.

Definition at line 28 of file FWTriggerTableViewManager.h.

28 {}
const FWTriggerTableViewManager& FWTriggerTableViewManager::operator= ( const FWTriggerTableViewManager )
private
void FWTriggerTableViewManager::setFrom ( const FWConfiguration )
inlineoverridevirtual

Implements FWConfigurable.

Definition at line 32 of file FWTriggerTableViewManager.h.

References AlCaHLTBitMon_QueryRunRegistry::string.

32 {}
FWTypeToRepresentations FWTriggerTableViewManager::supportedTypesAndRepresentations ( ) const
inlineoverridevirtual
void FWTriggerTableViewManager::updateProcessList ( )
protected

Definition at line 81 of file FWTriggerTableViewManager.cc.

References FWViewManagerBase::context(), and m_views.

81  {
82  // printf("FWTriggerTableViewManager::updateProcessLi\n");
83  for (std::vector<std::shared_ptr<FWTriggerTableView> >::iterator it = m_views.begin(), itEnd = m_views.end();
84  it != itEnd;
85  ++it) {
86  (*it)->setProcessList(&(context().metadataManager()->processNamesInJob()));
87  (*it)->resetCombo();
88  }
89 }
std::vector< std::shared_ptr< FWTriggerTableView > > m_views
const fireworks::Context & context() const

Member Data Documentation

std::vector<std::shared_ptr<FWTriggerTableView> > FWTriggerTableViewManager::m_views
protected