#include <Fireworks/Core/interface/FWEveViewManager.h>
Classes | |
struct | BuilderInfo |
Public Member Functions | |
void | eventBegin () override |
void | eventEnd () override |
FWEveViewManager (FWGUIManager *) | |
void | highlightAdded (TEveElement *) |
void | newItem (const FWEventItem *) override |
virtual void | removeItem (const FWEventItem *) |
void | selectionAdded (TEveElement *) |
void | selectionCleared () |
void | selectionRemoved (TEveElement *) |
void | setContext (const fireworks::Context *) override |
FWTypeToRepresentations | supportedTypesAndRepresentations () const override |
~FWEveViewManager () override | |
Public Member Functions inherited from FWViewManagerBase | |
void | colorsChangedSlot () |
const fireworks::Context & | context () const |
void | modelChangesComingSlot () |
void | modelChangesDoneSlot () |
void | setChangeManager (FWModelChangeManager *iCM) |
void | setColorManager (FWColorManager *iCM) |
virtual | ~FWViewManagerBase () |
Static Public Member Functions | |
static void | syncAllViews () |
Protected Member Functions | |
void | colorsChanged () override |
void | modelChangesComing () override |
void | modelChangesDone () override |
Protected Member Functions inherited from FWViewManagerBase | |
FWModelChangeManager & | changeManager () const |
FWColorManager & | colorManager () const |
void * | createInstanceOf (const TClass *iBaseClass, const char *iNameOfClass) |
FWViewManagerBase () | |
Private Types | |
typedef std::vector< std::shared_ptr< FWProxyBuilderBase > > | BuilderVec |
typedef BuilderVec::iterator | BuilderVec_it |
typedef std::vector< std::shared_ptr< FWEveView > >::iterator | EveViewVec_it |
typedef std::map< std::string, std::vector< BuilderInfo > > | TypeToBuilder |
Private Member Functions | |
void | beingDestroyed (const FWViewBase *) |
FWViewBase * | buildView (TEveWindowSlot *iParent, const std::string &type) |
void | eventCenterChanged () |
FWEveView * | finishViewCreate (std::shared_ptr< FWEveView >) |
FWEveViewManager (const FWEveViewManager &)=delete | |
void | globalEnergyScaleChanged () |
bool | haveViewForBit (int) const |
void | itemChanged (const FWEventItem *) |
void | modelChanges (const FWModelIds &iIds) |
const FWEveViewManager & | operator= (const FWEveViewManager &)=delete |
Private Attributes | |
std::map< int, BuilderVec > | m_builders |
std::map< const FWEventItem *, FWInteractionList * > | m_interactionLists |
TypeToBuilder | m_typeToBuilder |
std::vector< std::vector< std::shared_ptr< FWEveView > > > | m_views |
Static Private Attributes | |
static bool | s_syncAllViews = false |
Description: [one line class summary]
Usage: <usage>
Definition at line 44 of file FWEveViewManager.h.
|
private |
Definition at line 104 of file FWEveViewManager.h.
|
private |
Definition at line 105 of file FWEveViewManager.h.
|
private |
Definition at line 106 of file FWEveViewManager.h.
|
private |
Definition at line 103 of file FWEveViewManager.h.
FWEveViewManager::FWEveViewManager | ( | FWGUIManager * | iGUIMgr | ) |
Definition at line 85 of file FWEveViewManager.cc.
References PFRecoTauChargedHadronProducer_cff::builders, buildView(), taus_updatedMVAIds_cff::category, edmplugin::PluginManager::categoryToInfos(), f, plotBeamSpotDB::first, reco::get(), edmplugin::PluginManager::get(), mps_fire::i, FWViewType::idToName(), FWViewType::kTable, FWViewType::kTableHLT, FWViewType::kTableL1, FWViewType::kTypeSize, m_typeToBuilder, m_views, edmplugin::PluginInfo::name_, hgcalPlots::purpose, FWGUIManager::registerViewBuilder(), AlCaHLTBitMon_QueryRunRegistry::string, and create_public_lumi_plots::transform.
Referenced by FWEveViewManager::BuilderInfo::BuilderInfo(), and syncAllViews().
|
override |
Definition at line 146 of file FWEveViewManager.cc.
Referenced by FWEveViewManager::BuilderInfo::BuilderInfo().
|
privatedelete |
|
private |
Definition at line 429 of file FWEveViewManager.cc.
References begin, haveViewForBit(), mps_fire::i, m_builders, m_views, FWViewBase::typeId(), and FWEveView::viewContext().
Referenced by finishViewCreate(), and syncAllViews().
|
private |
Definition at line 301 of file FWEveViewManager.cc.
References finishViewCreate(), mps_fire::i, FWViewType::idToName(), FWViewType::k3D, FWViewType::kGlimpse, FWViewType::kISpy, FWViewType::kLego, FWViewType::kLegoHF, FWViewType::kLegoPFECAL, FWViewType::kRhoPhi, FWViewType::kRhoPhiPF, FWViewType::kRhoZ, FWViewType::kTypeSize, and m_views.
Referenced by FWEveViewManager(), and syncAllViews().
|
overrideprotectedvirtual |
Implements FWViewManagerBase.
Definition at line 636 of file FWEveViewManager.cc.
References begin, FWViewManagerBase::colorManager(), mps_fire::i, FWViewType::kTypeSize, m_views, and lumiQTWidget::t.
Referenced by syncAllViews().
|
overridevirtual |
Reimplemented from FWViewManagerBase.
Definition at line 647 of file FWEveViewManager.cc.
References begin, FWViewManagerBase::context(), mps_fire::i, FWViewType::kTypeSize, m_views, fireworks::Context::resetMaxEtAndEnergy(), and lumiQTWidget::t.
Referenced by FWEveViewManager::BuilderInfo::BuilderInfo().
|
private |
Definition at line 623 of file FWEveViewManager.cc.
References begin, mps_fire::i, FWViewType::kTypeSize, m_views, and lumiQTWidget::t.
Referenced by setContext(), and syncAllViews().
|
overridevirtual |
Reimplemented from FWViewManagerBase.
Definition at line 664 of file FWEveViewManager.cc.
References begin, mps_fire::i, crabWrapper::key, FWViewType::kTypeSize, m_views, s_syncAllViews, lumiQTWidget::t, and relativeConstraints::value.
Referenced by FWEveViewManager::BuilderInfo::BuilderInfo().
Definition at line 346 of file FWEveViewManager.cc.
References FWColorManager::background(), beingDestroyed(), fireworks::Context::colorManager(), FWViewManagerBase::context(), FWEveView::eventScene(), mps_fire::i, FWRPZView::importElements(), m_builders, m_views, FWEveView::ownedProducts(), FWColorManager::setColorSetViewer(), and FWEveView::setContext().
Referenced by buildView(), and syncAllViews().
|
private |
Definition at line 607 of file FWEveViewManager.cc.
References begin, mps_fire::i, FWViewType::kTypeSize, m_views, and lumiQTWidget::t.
Referenced by setContext(), and syncAllViews().
|
private |
Checks whether any of the views
Definition at line 834 of file FWEveViewManager.cc.
References relativeConstraints::empty, FWViewType::kTypeSize, m_views, and lumiQTWidget::t.
Referenced by beingDestroyed(), newItem(), and syncAllViews().
void FWEveViewManager::highlightAdded | ( | TEveElement * | iElement | ) |
Definition at line 872 of file FWEveViewManager.cc.
References Abs(), FWViewManagerBase::context(), conversionPostprocessing_cfi::etaBin, fireworks::Context::getCaloData(), create_public_lumi_plots::hist, mps_fire::i, conversionPostprocessing_cfi::phiBin, and w.
Referenced by FWEveViewManager::BuilderInfo::BuilderInfo().
|
private |
Callback of itemChanged_ signal. Iterate over all the builders for all the views and call itemChanged for any of the builders. If any of the builder also has at least one view, also update the interaction list.
Definition at line 531 of file FWEveViewManager.cc.
References FWProxyBuilderBase::getHaveWindow(), mps_fire::i, FWProxyBuilderBase::item(), FWProxyBuilderBase::itemChanged(), m_builders, and m_interactionLists.
Referenced by newItem(), and syncAllViews().
|
private |
Callback of event item changed_ signal.
Definition at line 490 of file FWEveViewManager.cc.
References FWProxyBuilderBase::getHaveWindow(), mps_fire::i, FWProxyBuilderBase::item(), m_builders, m_interactionLists, and FWProxyBuilderBase::modelChanges().
Referenced by newItem(), and syncAllViews().
|
overrideprotectedvirtual |
called when models have changed and so the display must be updated
Implements FWViewManagerBase.
Definition at line 477 of file FWEveViewManager.cc.
Referenced by syncAllViews().
|
overrideprotectedvirtual |
Implements FWViewManagerBase.
Definition at line 483 of file FWEveViewManager.cc.
Referenced by syncAllViews().
|
overridevirtual |
This is invoked when a new item is created by the FWEventItemsManager. The workflow is the following
Implements FWViewManagerBase.
Definition at line 192 of file FWEveViewManager.cc.
References addElements(), FWEventItem::changed_, FWEveViewManager::BuilderInfo::classType(), SoftLeptonByDistance_cfi::distance, MillePedeFileConverter_cfg::e, cppFunctionSkipper::exception, fwLog, reco::get(), FWEventItem::goingToBeDestroyed_, haveViewForBit(), mps_fire::i, info(), FWSimpleRepresentationChecker::inheritsFrom(), itemChanged(), FWEventItem::itemChanged_, FWViewType::kTypeSize, fwlog::kWarning, m_builders, m_interactionLists, FWEveViewManager::BuilderInfo::m_name, m_typeToBuilder, FWEveViewManager::BuilderInfo::m_viewBit, m_views, modelChanges(), FWEventItem::modelType(), eostools::move(), FWEventItem::purpose(), removeItem(), findQualityFiles::size, AlCaHLTBitMon_QueryRunRegistry::string, lumiQTWidget::t, FWEventItem::type(), and FWEveView::viewContext().
Referenced by FWEveViewManager::BuilderInfo::BuilderInfo().
|
privatedelete |
Referenced by syncAllViews().
|
virtual |
Remove an item from the given view.
Definition at line 567 of file FWEveViewManager.cc.
References mps_fire::i, m_builders, and m_interactionLists.
Referenced by FWEveViewManager::BuilderInfo::BuilderInfo(), and newItem().
void FWEveViewManager::selectionAdded | ( | TEveElement * | iElement | ) |
Definition at line 763 of file FWEveViewManager.cc.
References FWFromEveSelectorBase::doSelect(), and getSelector().
Referenced by FWEveViewManager::BuilderInfo::BuilderInfo().
void FWEveViewManager::selectionCleared | ( | ) |
Definition at line 779 of file FWEveViewManager.cc.
References FWSelectionManager::clearSelection(), FWViewManagerBase::context(), and fireworks::Context::selectionManager().
Referenced by FWEveViewManager::BuilderInfo::BuilderInfo().
void FWEveViewManager::selectionRemoved | ( | TEveElement * | iElement | ) |
Definition at line 771 of file FWEveViewManager.cc.
References FWFromEveSelectorBase::doUnselect(), and getSelector().
Referenced by FWEveViewManager::BuilderInfo::BuilderInfo().
|
overridevirtual |
Reimplemented from FWViewManagerBase.
Definition at line 599 of file FWEveViewManager.cc.
References fireworks::Context::commonPrefs(), eventCenterChanged(), CmsShowCommon::eventCenterChanged_, CmsShowCommon::getEnergyScale(), globalEnergyScaleChanged(), FWViewEnergyScale::parameterChanged_, and FWViewManagerBase::setContext().
Referenced by FWEveViewManager::BuilderInfo::BuilderInfo().
|
overridevirtual |
Implements FWViewManagerBase.
Definition at line 790 of file FWEveViewManager.cc.
References FWTypeToRepresentations::add(), FWEveViewManager::BuilderInfo::classType(), FWViewManagerBase::context(), fireworks::Context::getHidePFBuilders(), info(), FWEveViewManager::BuilderInfo::m_name, m_typeToBuilder, FWEveViewManager::BuilderInfo::m_viewBit, dataset::name, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by FWEveViewManager::BuilderInfo::BuilderInfo().
|
inlinestatic |
Definition at line 81 of file FWEveViewManager.h.
References beingDestroyed(), buildView(), colorsChanged(), eventCenterChanged(), finishViewCreate(), FWEveViewManager(), globalEnergyScaleChanged(), haveViewForBit(), itemChanged(), modelChanges(), modelChangesComing(), modelChangesDone(), operator=(), s_syncAllViews, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CmsShowMain::CmsShowMain().
|
private |
Definition at line 112 of file FWEveViewManager.h.
Referenced by beingDestroyed(), finishViewCreate(), itemChanged(), modelChanges(), newItem(), and removeItem().
|
private |
Definition at line 116 of file FWEveViewManager.h.
Referenced by itemChanged(), modelChanges(), newItem(), and removeItem().
|
private |
Definition at line 108 of file FWEveViewManager.h.
Referenced by FWEveViewManager(), newItem(), and supportedTypesAndRepresentations().
|
private |
Definition at line 114 of file FWEveViewManager.h.
Referenced by beingDestroyed(), buildView(), colorsChanged(), eventBegin(), eventCenterChanged(), eventEnd(), finishViewCreate(), FWEveViewManager(), globalEnergyScaleChanged(), haveViewForBit(), and newItem().
|
staticprivate |
Definition at line 110 of file FWEveViewManager.h.
Referenced by eventEnd(), and syncAllViews().