#include <Fireworks/Core/interface/FWDetailViewBase.h>
Public Member Functions | |
void | build (const FWModelId &) |
const fireworks::Context & | context () const |
virtual void | init (TEveWindowSlot *)=0 |
const FWEventItem * | item () |
virtual void | setBackgroundColor (Color_t col) |
void | setItem (const FWEventItem *x) |
virtual | ~FWDetailViewBase () |
Static Public Member Functions | |
static void | drawCanvasBox (Double_t *pos, Color_t fillCol, Int_t fillType=0, bool bg=kTRUE) |
static void | drawCanvasDot (Float_t x, Float_t y, Float_t r, Color_t) |
Protected Member Functions | |
FWDetailViewBase (const std::type_info &) | |
Private Member Functions | |
virtual void | build (const FWModelId &, const void *)=0 |
FWDetailViewBase (const FWDetailViewBase &) | |
const FWDetailViewBase & | operator= (const FWDetailViewBase &) |
Private Attributes | |
FWSimpleProxyHelper | m_helper |
const FWEventItem * | m_item |
Description: Base class for detailed views
Usage: <usage>
Definition at line 32 of file FWDetailViewBase.h.
FWDetailViewBase::~FWDetailViewBase | ( | ) | [virtual] |
Definition at line 30 of file FWDetailViewBase.cc.
{ }
FWDetailViewBase::FWDetailViewBase | ( | const std::type_info & | iInfo | ) | [protected] |
Definition at line 24 of file FWDetailViewBase.cc.
FWDetailViewBase::FWDetailViewBase | ( | const FWDetailViewBase & | ) | [private] |
void FWDetailViewBase::build | ( | const FWModelId & | iID | ) |
Definition at line 36 of file FWDetailViewBase.cc.
References FWModelId::index(), FWModelId::item(), FWSimpleProxyHelper::itemChanged(), m_helper, FWEventItem::modelData(), and FWSimpleProxyHelper::offsetObject().
{ m_helper.itemChanged(iID.item()); build(iID, m_helper.offsetObject(iID.item()->modelData(iID.index()))); }
virtual void FWDetailViewBase::build | ( | const FWModelId & | , |
const void * | |||
) | [private, pure virtual] |
const fireworks::Context & FWDetailViewBase::context | ( | ) | const |
Definition at line 43 of file FWDetailViewBase.cc.
References FWEventItem::context(), and m_item.
Referenced by FWConvTrackHitsDetailView::build(), and FWTrackHitsDetailView::build().
void FWDetailViewBase::drawCanvasBox | ( | Double_t * | pos, |
Color_t | fillCol, | ||
Int_t | fillType = 0 , |
||
bool | bg = kTRUE |
||
) | [static] |
Definition at line 69 of file FWDetailViewBase.cc.
Referenced by FWTrackResidualDetailView::build(), FWECALDetailViewBuilder::makeLegend(), FWTrackHitsDetailView::setTextInfo(), and FWTrackResidualDetailView::setTextInfo().
{ // utility function to draw outline box // background if (bg) { TBox *b1 = new TBox(pos[0], pos[1], pos[2], pos[3]); b1->SetFillColor(fillCol); b1->Draw(); } // fill (top layer) TBox *b2 = new TBox(pos[0], pos[1], pos[2], pos[3]); b2->SetFillStyle(fillType); b2->SetFillColor(kBlack); b2->Draw(); //outline TBox *b3 = new TBox(pos[0], pos[1], pos[2], pos[3]); b3->SetFillStyle(0); b3->SetLineWidth(2); b3->Draw(); }
void FWDetailViewBase::drawCanvasDot | ( | Float_t | x, |
Float_t | y, | ||
Float_t | r, | ||
Color_t | fillColor | ||
) | [static] |
Definition at line 50 of file FWDetailViewBase.cc.
Referenced by FWTrackHitsDetailView::setTextInfo().
virtual void FWDetailViewBase::init | ( | TEveWindowSlot * | ) | [pure virtual] |
const FWEventItem* FWDetailViewBase::item | ( | ) | [inline] |
Definition at line 46 of file FWDetailViewBase.h.
References m_item.
Referenced by FWMuonDetailView::build(), FWElectronDetailView::build(), FWConvTrackHitsDetailView::build(), FWPhotonDetailView::build(), FWTrackHitsDetailView::build(), FWCaloTowerDetailView::build(), FWConvTrackHitsDetailView::setTextInfo(), FWCaloTowerDetailView::setTextInfo(), FWElectronDetailView::setTextInfo(), FWTrackHitsDetailView::setTextInfo(), FWPhotonDetailView::setTextInfo(), and FWMuonDetailView::setTextInfo().
{ return m_item; }
const FWDetailViewBase& FWDetailViewBase::operator= | ( | const FWDetailViewBase & | ) | [private] |
virtual void FWDetailViewBase::setBackgroundColor | ( | Color_t | col | ) | [inline, virtual] |
Reimplemented in FWDetailViewGL< T >, FWConvTrackHitsDetailView, FWTrackHitsDetailView, FWDetailViewGL< CaloTower >, FWDetailViewGL< reco::Track >, FWDetailViewGL< reco::Photon >, FWDetailViewGL< reco::GsfElectron >, FWDetailViewGL< reco::Conversion >, and FWDetailViewGL< reco::Muon >.
Definition at line 40 of file FWDetailViewBase.h.
{}
void FWDetailViewBase::setItem | ( | const FWEventItem * | x | ) | [inline] |
Definition at line 47 of file FWDetailViewBase.h.
Referenced by FWDetailView< reco::Muon >::build().
Definition at line 60 of file FWDetailViewBase.h.
Referenced by build().
const FWEventItem* FWDetailViewBase::m_item [private] |
Definition at line 59 of file FWDetailViewBase.h.