CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

FWEveLegoView Class Reference

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

Inheritance diagram for FWEveLegoView:
FWLegoViewBase FWEveView FWViewBase FWConfigurableParameterizable FWParameterizable FWConfigurable

List of all members.

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 FWEveLegoViewoperator= (const FWEveLegoView &)

Private Attributes

TEveStraightLineSet * m_boundaries

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 26 of file FWEveLegoView.h.


Constructor & Destructor Documentation

FWEveLegoView::FWEveLegoView ( TEveWindowSlot *  slot,
FWViewType::EType  typeId 
)

Definition at line 36 of file FWEveLegoView.cc.

FWEveLegoView::~FWEveLegoView ( ) [virtual]

Definition at line 43 of file FWEveLegoView.cc.

{
}
FWEveLegoView::FWEveLegoView ( const FWEveLegoView ) [private]

Member Function Documentation

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);
}

Member Data Documentation

TEveStraightLineSet* FWEveLegoView::m_boundaries [private]

Definition at line 47 of file FWEveLegoView.h.

Referenced by setBackgroundColor(), and setContext().