CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

FW3DView Class Reference

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

Inheritance diagram for FW3DView:
FW3DViewBase FWEveView FWViewBase FWConfigurableParameterizable FWParameterizable FWConfigurable

List of all members.

Public Member Functions

 FW3DView (TEveWindowSlot *, FWViewType::EType)
virtual TEveCaloViz * getEveCalo () const
virtual void setContext (const fireworks::Context &)
virtual ~FW3DView ()

Private Member Functions

 FW3DView (const FW3DView &)
const FW3DViewoperator= (const FW3DView &)

Private Attributes

TEveCalo3D * m_calo

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 30 of file FW3DView.h.


Constructor & Destructor Documentation

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

Definition at line 40 of file FW3DView.cc.

References FWEveView::viewerGL().

                                                              :
   FW3DViewBase(slot, typeId),
   m_calo(0)
{
   viewerGL()->CurrentCamera().SetFixDefCenter(kTRUE);  
}
FW3DView::~FW3DView ( ) [virtual]

Definition at line 47 of file FW3DView.cc.

References m_calo.

{
   m_calo->Destroy();
}
FW3DView::FW3DView ( const FW3DView ) [private]

Member Function Documentation

TEveCaloViz * FW3DView::getEveCalo ( ) const [virtual]

Reimplemented from FWEveView.

Definition at line 54 of file FW3DView.cc.

References m_calo.

{
   return static_cast<TEveCaloViz*>(m_calo);
}
const FW3DView& FW3DView::operator= ( const FW3DView ) [private]
void FW3DView::setContext ( const fireworks::Context ctx) [virtual]

Reimplemented from FW3DViewBase.

Definition at line 59 of file FW3DView.cc.

References FWEveView::context(), runTheMatrix::data, FWEveView::eventScene(), fireworks::Context::getCaloData(), and m_calo.

{ 
   FW3DViewBase::setContext(ctx);
   
   TEveCaloData* data = context().getCaloData();
   m_calo = new TEveCalo3D(data);
   m_calo->SetElementName("calo barrel");

   m_calo->SetBarrelRadius(context().caloR1(false));
   m_calo->SetEndCapPos(context().caloZ1(false));
   m_calo->SetFrameTransparency(80);
   m_calo->SetAutoRange(false);
   m_calo->SetScaleAbs(true);
   eventScene()->AddElement(m_calo);
}

Member Data Documentation

TEveCalo3D* FW3DView::m_calo [private]

Definition at line 53 of file FW3DView.h.

Referenced by getEveCalo(), setContext(), and ~FW3DView().