CMS 3D CMS Logo

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

FWDetailViewBase Class Reference

#include <Fireworks/Core/interface/FWDetailViewBase.h>

Inheritance diagram for FWDetailViewBase:
FWDetailView< T > FWDetailView< CaloTower > FWDetailView< reco::Conversion > FWDetailView< reco::GsfElectron > FWDetailView< reco::Muon > FWDetailView< reco::Photon > FWDetailView< reco::Track > FWDetailViewCanvas< T > FWDetailViewGL< T > FWDetailViewGL< CaloTower > FWDetailViewGL< reco::Conversion > FWDetailViewGL< reco::GsfElectron > FWDetailViewGL< reco::Muon > FWDetailViewGL< reco::Photon > FWDetailViewCanvas< reco::Track > FWDetailViewGL< reco::Track >

List of all members.

Public Member Functions

void build (const FWModelId &)
const fireworks::Contextcontext () const
virtual void init (TEveWindowSlot *)=0
const FWEventItemitem ()
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 FWDetailViewBaseoperator= (const FWDetailViewBase &)

Private Attributes

FWSimpleProxyHelper m_helper
const FWEventItemm_item

Detailed Description

Description: Base class for detailed views

Usage: <usage>

Definition at line 32 of file FWDetailViewBase.h.


Constructor & Destructor Documentation

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.

                                                            :
   m_item(0),
   m_helper(iInfo)
{
}
FWDetailViewBase::FWDetailViewBase ( const FWDetailViewBase ) [private]

Member Function Documentation

void FWDetailViewBase::build ( const FWModelId iID)
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().

                                 {
   return m_item->context();
}
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().

{ 
   // utility function to draw outline cricle

   Float_t ratio = 0.5;
   // fill
   TEllipse *b2 = new TEllipse(x, y, r, r*ratio);
   b2->SetFillStyle(1001);
   b2->SetFillColor(fillColor);
   b2->Draw();

   // outline
   TEllipse *b1 = new TEllipse(x, y, r, r*ratio);
   b1->SetFillStyle(0);
   b1->SetLineWidth(2);
   b1->Draw();
}
virtual void FWDetailViewBase::init ( TEveWindowSlot *  ) [pure virtual]
const FWEventItem* FWDetailViewBase::item ( ) [inline]
const FWDetailViewBase& FWDetailViewBase::operator= ( const FWDetailViewBase ) [private]
virtual void FWDetailViewBase::setBackgroundColor ( Color_t  col) [inline, virtual]
void FWDetailViewBase::setItem ( const FWEventItem x) [inline]

Definition at line 47 of file FWDetailViewBase.h.

References m_item, and x.

Referenced by FWDetailView< reco::Muon >::build().

{ m_item =x; }

Member Data Documentation

Definition at line 60 of file FWDetailViewBase.h.

Referenced by build().

Definition at line 59 of file FWDetailViewBase.h.

Referenced by context(), item(), and setItem().