CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions

FWTriggerTableViewManager Class Reference

#include <FWTriggerTableViewManager.h>

Inheritance diagram for FWTriggerTableViewManager:
FWViewManagerBase FWConfigurable

List of all members.

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 ()

Protected Member Functions

virtual void colorsChanged ()
virtual void eventEnd ()
 FWTriggerTableViewManager ()
virtual void modelChangesComing ()
virtual void modelChangesDone ()
void updateProcessList ()

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)
FWTriggerTableViewManager::~FWTriggerTableViewManager ( ) [virtual]

Definition at line 40 of file FWTriggerTableViewManager.cc.

{
}
FWTriggerTableViewManager::FWTriggerTableViewManager ( ) [protected]
FWTriggerTableViewManager::FWTriggerTableViewManager ( const FWTriggerTableViewManager ) [private]

Member Function Documentation

void FWTriggerTableViewManager::addTo ( FWConfiguration ) const [inline, virtual]

Implements FWConfigurable.

Definition at line 34 of file FWTriggerTableViewManager.h.

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

Definition at line 64 of file FWTriggerTableViewManager.cc.

References m_views.

Referenced by buildView().

{
   for(std::vector<boost::shared_ptr<FWTriggerTableView> >::iterator it=
          m_views.begin(), itEnd = m_views.end();
       it != itEnd;
       ++it) {
      if(it->get() == iView) {
         m_views.erase(it);
         return;
      }
   }
}
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().

{
   boost::shared_ptr<FWTriggerTableView> view;
   
   if (type == FWViewType::sName[FWViewType::kTableHLT])
      view.reset( new FWHLTTriggerTableView(iParent));
   else
      view.reset( new FWL1TriggerTableView(iParent));

   view->setProcessList(&(context().metadataManager()->processNamesInJob()));   
 
   view->setBackgroundColor(colorManager().background());
   m_views.push_back(boost::shared_ptr<FWTriggerTableView> (view));
   view->beingDestroyed_.connect(boost::bind(&FWTriggerTableViewManager::beingDestroyed,
                                             this,_1));
   return view.get();
}
void FWTriggerTableViewManager::colorsChanged ( ) [protected, virtual]

Implements FWViewManagerBase.

Definition at line 78 of file FWTriggerTableViewManager.cc.

References FWViewManagerBase::colorManager(), and m_views.

{
   for(std::vector<boost::shared_ptr<FWTriggerTableView> >::iterator it=
          m_views.begin(), itEnd = m_views.end();
       it != itEnd;
       ++it) {
      (*it)->setBackgroundColor(colorManager().background());
   }
}
void FWTriggerTableViewManager::eventEnd ( ) [protected, virtual]

Reimplemented from FWViewManagerBase.

Definition at line 89 of file FWTriggerTableViewManager.cc.

References m_views.

{
   for(std::vector<boost::shared_ptr<FWTriggerTableView> >::iterator it=
          m_views.begin(), itEnd = m_views.end();
       it != itEnd;
       ++it) {
      (*it)->dataChanged();
   }
}
virtual void FWTriggerTableViewManager::modelChangesComing ( ) [inline, protected, virtual]

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

Implements FWViewManagerBase.

Definition at line 44 of file FWTriggerTableViewManager.h.

{}
virtual void FWTriggerTableViewManager::modelChangesDone ( ) [inline, protected, virtual]

Implements FWViewManagerBase.

Definition at line 45 of file FWTriggerTableViewManager.h.

{}
virtual void FWTriggerTableViewManager::newItem ( const FWEventItem ) [inline, virtual]

Implements FWViewManagerBase.

Definition at line 31 of file FWTriggerTableViewManager.h.

{}
const FWTriggerTableViewManager& FWTriggerTableViewManager::operator= ( const FWTriggerTableViewManager ) [private]
void FWTriggerTableViewManager::setFrom ( const FWConfiguration ) [inline, virtual]

Implements FWConfigurable.

Definition at line 35 of file FWTriggerTableViewManager.h.

{}
virtual FWTypeToRepresentations FWTriggerTableViewManager::supportedTypesAndRepresentations ( ) const [inline, virtual]

Implements FWViewManagerBase.

Definition at line 29 of file FWTriggerTableViewManager.h.

void FWTriggerTableViewManager::updateProcessList ( ) [protected]

Definition at line 100 of file FWTriggerTableViewManager.cc.

References FWViewManagerBase::context(), and m_views.

{ 
   // printf("FWTriggerTableViewManager::updateProcessLi\n");
   for(std::vector<boost::shared_ptr<FWTriggerTableView> >::iterator it=
          m_views.begin(), itEnd = m_views.end();
       it != itEnd;
       ++it) {
    
      (*it)->setProcessList(&(context().metadataManager()->processNamesInJob()));
      (*it)->resetCombo();
   }
}

Member Data Documentation

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