CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
 
FWViewBasebuildView (TEveWindowSlot *iParent, const std::string &type)
 
 FWTriggerTableViewManager (FWGUIManager *)
 
virtual void newItem (const FWEventItem *)
 
void setFrom (const FWConfiguration &)
 
virtual FWTypeToRepresentations supportedTypesAndRepresentations () const
 
virtual ~FWTriggerTableViewManager ()
 
- 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

virtual void colorsChanged ()
 
virtual void eventEnd ()
 
 FWTriggerTableViewManager ()
 
virtual void modelChangesComing ()
 
virtual void modelChangesDone ()
 
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< boost::shared_ptr
< FWTriggerTableView > > 
m_views
 

Private Member Functions

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

Detailed Description

Definition at line 22 of file FWTriggerTableViewManager.h.

Constructor & Destructor Documentation

FWTriggerTableViewManager::FWTriggerTableViewManager ( FWGUIManager iGUIMgr)

Definition at line 30 of file FWTriggerTableViewManager.cc.

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

30  :
32 {
35  this, _1, _2);
38 }
FWViewBase * buildView(TEveWindowSlot *iParent, const std::string &type)
boost::function2< FWViewBase *, TEveWindowSlot *, const std::string & > ViewBuildFunctor
Definition: FWGUIManager.h:100
void registerViewBuilder(const std::string &iName, ViewBuildFunctor &iBuilder)
double f[11][100]
static const std::string & idToName(int)
Definition: FWViewType.cc:89
FWTriggerTableViewManager::~FWTriggerTableViewManager ( )
virtual

Definition at line 40 of file FWTriggerTableViewManager.cc.

41 {
42 }
FWTriggerTableViewManager::FWTriggerTableViewManager ( )
protected
FWTriggerTableViewManager::FWTriggerTableViewManager ( const FWTriggerTableViewManager )
private

Member Function Documentation

void FWTriggerTableViewManager::addTo ( FWConfiguration ) const
inlinevirtual

Implements FWConfigurable.

Definition at line 34 of file FWTriggerTableViewManager.h.

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

Definition at line 64 of file FWTriggerTableViewManager.cc.

References m_views.

Referenced by buildView().

65 {
66  for(std::vector<boost::shared_ptr<FWTriggerTableView> >::iterator it=
67  m_views.begin(), itEnd = m_views.end();
68  it != itEnd;
69  ++it) {
70  if(it->get() == iView) {
71  m_views.erase(it);
72  return;
73  }
74  }
75 }
std::vector< boost::shared_ptr< FWTriggerTableView > > m_views
class FWViewBase * FWTriggerTableViewManager::buildView ( TEveWindowSlot *  iParent,
const std::string &  type 
)

Definition at line 45 of file FWTriggerTableViewManager.cc.

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

Referenced by FWTriggerTableViewManager().

46 {
47  boost::shared_ptr<FWTriggerTableView> view;
48 
50  view.reset( new FWHLTTriggerTableView(iParent));
51  else
52  view.reset( new FWL1TriggerTableView(iParent));
53 
54  view->setProcessList(&(context().metadataManager()->processNamesInJob()));
55 
56  view->setBackgroundColor(colorManager().background());
57  m_views.push_back(boost::shared_ptr<FWTriggerTableView> (view));
58  view->beingDestroyed_.connect(boost::bind(&FWTriggerTableViewManager::beingDestroyed,
59  this,_1));
60  return view.get();
61 }
type
Definition: HCALResponse.h:22
const fireworks::Context & context() const
void beingDestroyed(const FWViewBase *)
FWColorManager & colorManager() const
static std::string sName[kTypeSize]
Definition: FWViewType.h:62
std::vector< boost::shared_ptr< FWTriggerTableView > > m_views
void FWTriggerTableViewManager::colorsChanged ( )
protectedvirtual

Implements FWViewManagerBase.

Definition at line 78 of file FWTriggerTableViewManager.cc.

References FWViewManagerBase::colorManager(), and m_views.

79 {
80  for(std::vector<boost::shared_ptr<FWTriggerTableView> >::iterator it=
81  m_views.begin(), itEnd = m_views.end();
82  it != itEnd;
83  ++it) {
84  (*it)->setBackgroundColor(colorManager().background());
85  }
86 }
FWColorManager & colorManager() const
std::vector< boost::shared_ptr< FWTriggerTableView > > m_views
void FWTriggerTableViewManager::eventEnd ( )
protectedvirtual

Reimplemented from FWViewManagerBase.

Definition at line 89 of file FWTriggerTableViewManager.cc.

References m_views.

90 {
91  for(std::vector<boost::shared_ptr<FWTriggerTableView> >::iterator it=
92  m_views.begin(), itEnd = m_views.end();
93  it != itEnd;
94  ++it) {
95  (*it)->dataChanged();
96  }
97 }
std::vector< boost::shared_ptr< FWTriggerTableView > > m_views
virtual void FWTriggerTableViewManager::modelChangesComing ( )
inlineprotectedvirtual

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

Implements FWViewManagerBase.

Definition at line 44 of file FWTriggerTableViewManager.h.

44 {}
virtual void FWTriggerTableViewManager::modelChangesDone ( )
inlineprotectedvirtual

Implements FWViewManagerBase.

Definition at line 45 of file FWTriggerTableViewManager.h.

45 {}
virtual void FWTriggerTableViewManager::newItem ( const FWEventItem )
inlinevirtual

Implements FWViewManagerBase.

Definition at line 31 of file FWTriggerTableViewManager.h.

31 {}
const FWTriggerTableViewManager& FWTriggerTableViewManager::operator= ( const FWTriggerTableViewManager )
private
void FWTriggerTableViewManager::setFrom ( const FWConfiguration )
inlinevirtual

Implements FWConfigurable.

Definition at line 35 of file FWTriggerTableViewManager.h.

35 {}
virtual FWTypeToRepresentations FWTriggerTableViewManager::supportedTypesAndRepresentations ( ) const
inlinevirtual
void FWTriggerTableViewManager::updateProcessList ( )
protected

Definition at line 100 of file FWTriggerTableViewManager.cc.

References FWViewManagerBase::context(), and m_views.

101 {
102  // printf("FWTriggerTableViewManager::updateProcessLi\n");
103  for(std::vector<boost::shared_ptr<FWTriggerTableView> >::iterator it=
104  m_views.begin(), itEnd = m_views.end();
105  it != itEnd;
106  ++it) {
107 
108  (*it)->setProcessList(&(context().metadataManager()->processNamesInJob()));
109  (*it)->resetCombo();
110  }
111 }
const fireworks::Context & context() const
std::vector< boost::shared_ptr< FWTriggerTableView > > m_views

Member Data Documentation

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