#include <Fireworks/Core/interface/FWEveLegoView.h>
Public Member Functions | |
FWEveLegoView (TEveWindowSlot *, FWViewType::EType) | |
virtual void | setBackgroundColor (Color_t) |
virtual void | setContext (const fireworks::Context &) |
virtual | ~FWEveLegoView () |
Private Member Functions | |
FWEveLegoView (const FWEveLegoView &) | |
const FWEveLegoView & | operator= (const FWEveLegoView &) |
Private Attributes | |
TEveStraightLineSet * | m_boundaries |
FWEveLegoView::FWEveLegoView | ( | TEveWindowSlot * | slot, |
FWViewType::EType | typeId | ||
) |
Definition at line 36 of file FWEveLegoView.cc.
: FWLegoViewBase(slot, typeId), m_boundaries(0) { }
FWEveLegoView::~FWEveLegoView | ( | ) | [virtual] |
Definition at line 43 of file FWEveLegoView.cc.
{ }
FWEveLegoView::FWEveLegoView | ( | const FWEveLegoView & | ) | [private] |
const FWEveLegoView& FWEveLegoView::operator= | ( | const FWEveLegoView & | ) | [private] |
void FWEveLegoView::setBackgroundColor | ( | Color_t | c | ) | [virtual] |
Reimplemented from FWEveView.
Definition at line 66 of file FWEveLegoView.cc.
References FWEveView::context(), and m_boundaries.
{ m_boundaries->SetLineColor(context().colorManager()->isColorSetDark() ? kGray+2 : kGray+1); FWEveView::setBackgroundColor(c); }
void FWEveLegoView::setContext | ( | const fireworks::Context & | ctx | ) | [virtual] |
Reimplemented from FWLegoViewBase.
Definition at line 48 of file FWEveLegoView.cc.
References fireworks::Context::colorManager(), FWColorManager::isColorSetDark(), m_boundaries, and FWLegoViewBase::m_lego.
{ FWLegoViewBase::setContext(ctx); // add calorimeter boundaries m_boundaries = new TEveStraightLineSet("m_boundaries"); m_boundaries->SetPickable(kFALSE); m_boundaries->SetLineWidth(2); m_boundaries->SetLineStyle(7); m_boundaries->AddLine(-1.479,-3.1416,0.001,-1.479,3.1416,0.001); m_boundaries->AddLine(1.479,-3.1416,0.001,1.479,3.1416,0.001); m_boundaries->AddLine(-2.964,-3.1416,0.001,-2.964,3.1416,0.001); m_boundaries->AddLine(2.964,-3.1416,0.001,2.964,3.1416,0.001); m_boundaries->SetLineColor(ctx.colorManager()->isColorSetDark() ? kGray+2 : kGray+1); m_lego->AddElement(m_boundaries); }
TEveStraightLineSet* FWEveLegoView::m_boundaries [private] |
Definition at line 47 of file FWEveLegoView.h.
Referenced by setBackgroundColor(), and setContext().