TEveCalo2DGL Class Reference

#include <TEveCalo2DGL.h>

Inheritance diagram for TEveCalo2DGL:

TGLObject TGLObject TGLLogicalShape TGLLogicalShape TGLLogicalShape TGLLogicalShape List of all members.

Public Member Functions

 TEveCalo2DGL ()
virtual ~TEveCalo2DGL ()
virtual Bool_t SetModel (TObject *obj, const Option_t *opt=0)
virtual void SetBBox ()
virtual void DirectDraw (TGLRnrCtx &rnrCtx) const
virtual void DrawHighlight (TGLRnrCtx &rnrCtx, const TGLPhysicalShape *ps, Int_t lvl=-1) const
virtual Bool_t SupportsSecondarySelect () const
virtual Bool_t AlwaysSecondarySelect () const
virtual void ProcessSelection (TGLRnrCtx &rnrCtx, TGLSelectRecord &rec)
 ClassDef (TEveCalo2DGL, 0)
 TEveCalo2DGL ()
virtual ~TEveCalo2DGL ()
virtual Bool_t SetModel (TObject *obj, const Option_t *opt=0)
virtual void SetBBox ()
virtual void DirectDraw (TGLRnrCtx &rnrCtx) const
virtual void DrawHighlight (TGLRnrCtx &rnrCtx, const TGLPhysicalShape *ps, Int_t lvl=-1) const
virtual Bool_t SupportsSecondarySelect () const
virtual Bool_t AlwaysSecondarySelect () const
virtual void ProcessSelection (TGLRnrCtx &rnrCtx, TGLSelectRecord &rec)
 ClassDef (TEveCalo2DGL, 0)

Protected Member Functions

void MakeRhoZCell (Float_t thetaMin, Float_t thetaMax, Float_t &offset, Bool_t isBarrel, Bool_t phiPlus, Float_t towerH) const
void MakeRPhiCell (Float_t phiMin, Float_t phiMax, Float_t towerH, Float_t offset) const
void DrawRPhi (TGLRnrCtx &rnrCtx, TEveCalo2D::vBinCells_t &) const
void DrawRPhiHighlighted (std::vector< TEveCaloData::vCellId_t * > &cellLists) const
void DrawRhoZ (TGLRnrCtx &rnrCtx, TEveCalo2D::vBinCells_t &) const
void DrawRhoZHighlighted (std::vector< TEveCaloData::vCellId_t * > &cellLists) const
Bool_t IsRPhi () const
void MakeRhoZCell (Float_t thetaMin, Float_t thetaMax, Float_t &offset, Bool_t isBarrel, Bool_t phiPlus, Float_t towerH) const
void MakeRPhiCell (Float_t phiMin, Float_t phiMax, Float_t towerH, Float_t offset) const
void DrawRPhi (TGLRnrCtx &rnrCtx, TEveCalo2D::vBinCells_t &) const
void DrawRPhiHighlighted (std::vector< TEveCaloData::vCellId_t * > &cellLists) const
void DrawRhoZ (TGLRnrCtx &rnrCtx, TEveCalo2D::vBinCells_t &) const
void DrawRhoZHighlighted (std::vector< TEveCaloData::vCellId_t * > &cellLists) const
Bool_t IsRPhi () const

Protected Attributes

TEveCalo2DfM
TEveCalo2DfM

Private Member Functions

 TEveCalo2DGL (const TEveCalo2DGL &)
TEveCalo2DGLoperator= (const TEveCalo2DGL &)
 TEveCalo2DGL (const TEveCalo2DGL &)
TEveCalo2DGLoperator= (const TEveCalo2DGL &)

Detailed Description

Definition at line 25 of file TEveCalo2DGL.h.


Constructor & Destructor Documentation

TEveCalo2DGL::TEveCalo2DGL ( const TEveCalo2DGL  )  [private]

TEveCalo2DGL::TEveCalo2DGL (  ) 

Definition at line 32 of file TEveCalo2DGL.cxx.

References TGLObject::fMultiColor, and kTRUE.

virtual TEveCalo2DGL::~TEveCalo2DGL (  )  [inline, virtual]

Definition at line 47 of file TEveCalo2DGL.h.

TEveCalo2DGL::TEveCalo2DGL ( const TEveCalo2DGL  )  [private]

TEveCalo2DGL::TEveCalo2DGL (  ) 

virtual TEveCalo2DGL::~TEveCalo2DGL (  )  [inline, virtual]

Definition at line 47 of file TEveCalo2DGL.h.


Member Function Documentation

TEveCalo2DGL& TEveCalo2DGL::operator= ( const TEveCalo2DGL  )  [private]

void TEveCalo2DGL::MakeRhoZCell ( Float_t  thetaMin,
Float_t  thetaMax,
Float_t offset,
Bool_t  isBarrel,
Bool_t  phiPlus,
Float_t  towerH 
) const [protected]

Definition at line 210 of file TEveCalo2DGL.cxx.

References TMath::Abs(), TMath::Cos(), TEveCaloViz::fBarrelRadius, TEveProjected::fDepth, fM, TEveProjected::fManager, TEveCaloViz::GetEndCapPos(), TEveProjectionManager::GetProjection(), GL_QUADS, glBegin(), glEnd(), glVertex3f(), i, TEveProjection::ProjectPoint(), r1, r2, TMath::Sin(), x, and y.

Referenced by DrawRhoZ(), and DrawRhoZHighlighted().

void TEveCalo2DGL::MakeRPhiCell ( Float_t  phiMin,
Float_t  phiMax,
Float_t  towerH,
Float_t  offset 
) const [protected]

Definition at line 71 of file TEveCalo2DGL.cxx.

References TMath::Cos(), TEveCaloViz::fBarrelRadius, TEveProjected::fDepth, fM, TEveProjected::fManager, TEveProjectionManager::GetProjection(), GL_QUADS, glBegin(), glEnd(), glVertex3f(), i, TEveProjection::ProjectPoint(), r1, r2, TMath::Sin(), x, and y.

Referenced by DrawRPhi(), and DrawRPhiHighlighted().

void TEveCalo2DGL::DrawRPhi ( TGLRnrCtx rnrCtx,
TEveCalo2D::vBinCells_t  
) const [protected]

Definition at line 103 of file TEveCalo2DGL.cxx.

References axis, data, fM, TEveCaloViz::fPlotEt, TEveCaloViz::GetData(), glLoadName(), glPopName(), glPushName(), MakeRPhiCell(), s, TGLRnrCtx::SecSelection(), TEveCaloViz::SetupColorHeight(), and TEveCaloData::CellData_t::Value().

Referenced by DirectDraw().

void TEveCalo2DGL::DrawRPhiHighlighted ( std::vector< TEveCaloData::vCellId_t * > &  cellLists  )  const [protected]

Definition at line 151 of file TEveCalo2DGL.cxx.

References axis, data, TEveCalo2D::fCellLists, TEveCaloViz::fData, fM, for(), TEveCaloViz::fPlotEt, i, MakeRPhiCell(), s, TEveCaloViz::SetupColorHeight(), and TEveCaloData::CellData_t::Value().

Referenced by DrawHighlight().

void TEveCalo2DGL::DrawRhoZ ( TGLRnrCtx rnrCtx,
TEveCalo2D::vBinCells_t  
) const [protected]

Definition at line 260 of file TEveCalo2DGL.cxx.

References axis, data, ROOT::Math::etaMax(), TEveCaloData::EtaToTheta(), TEveCalo2D::fCellLists, fM, TEveCaloViz::fPlotEt, TEveCaloViz::GetData(), TEveCaloViz::GetTransitionEta(), glLoadName(), glPopName(), glPushName(), kFALSE, kTRUE, MakeRhoZCell(), TEveCaloData::CellGeom_t::Phi(), s, TGLRnrCtx::SecSelection(), TEveCaloViz::SetupColorHeight(), and TEveCaloData::CellData_t::Value().

Referenced by DirectDraw().

void TEveCalo2DGL::DrawRhoZHighlighted ( std::vector< TEveCaloData::vCellId_t * > &  cellLists  )  const [protected]

Definition at line 347 of file TEveCalo2DGL.cxx.

References TMath::Abs(), axis, data, TEveCaloData::EtaToTheta(), TEveCalo2D::fCellLists, fM, for(), TEveCaloViz::fPlotEt, TEveCaloViz::GetData(), TEveCaloViz::GetTransitionEta(), i, kFALSE, kTRUE, MakeRhoZCell(), TEveCaloData::CellGeom_t::Phi(), s, TEveCaloViz::SetupColorHeight(), and TEveCaloData::CellData_t::Value().

Referenced by DrawHighlight().

Bool_t TEveCalo2DGL::IsRPhi (  )  const [protected]

Definition at line 63 of file TEveCalo2DGL.cxx.

References fM, TEveProjected::fManager, TEveProjectionManager::GetProjection(), TEveProjection::GetType(), and TEveProjection::kPT_RPhi.

Referenced by DirectDraw(), DrawHighlight(), and ProcessSelection().

Bool_t TEveCalo2DGL::SetModel ( TObject obj,
const Option_t opt = 0 
) [virtual]

Implements TGLObject.

Definition at line 45 of file TEveCalo2DGL.cxx.

References fM, and kTRUE.

void TEveCalo2DGL::SetBBox (  )  [virtual]

Implements TGLObject.

Definition at line 54 of file TEveCalo2DGL.cxx.

References TGLLogicalShape::fExternalObj, and TGLObject::SetAxisAlignedBBox().

void TEveCalo2DGL::DirectDraw ( TGLRnrCtx rnrCtx  )  const [virtual]

Implements TGLLogicalShape.

Definition at line 432 of file TEveCalo2DGL.cxx.

References TEveCaloViz::AssertPalette(), TEveCalo2D::BuildCellIdCache(), DrawRhoZ(), DrawRPhi(), TEveCaloViz::fCellIdCacheOK, TEveCalo2D::fCellLists, fM, GL_BLEND, GL_CULL_FACE, GL_ENABLE_BIT, GL_LIGHTING, GL_ONE_MINUS_SRC_ALPHA, GL_POLYGON_BIT, GL_SRC_ALPHA, glBlendFunc(), glEnable(), glPopAttrib(), glPopName(), glPushAttrib(), glPushName(), IsRPhi(), kFALSE, and TGLRnrCtx::SecSelection().

void TEveCalo2DGL::DrawHighlight ( TGLRnrCtx rnrCtx,
const TGLPhysicalShape ps,
Int_t  lvl = -1 
) const [virtual]

Reimplemented from TGLLogicalShape.

Definition at line 458 of file TEveCalo2DGL.cxx.

References TGLColor::CArr(), TGLRnrCtx::ColorSet(), dr, DrawRhoZHighlighted(), DrawRPhiHighlighted(), TEveCalo2D::fCellListsHighlighted, TEveCalo2D::fCellListsSelected, TEveCaloViz::fData, fM, TEveCaloData::GetCellsHighlighted(), TEveCaloData::GetCellsSelected(), GL_CULL_FACE, GL_DEPTH_RANGE, GL_ENABLE_BIT, GL_FRONT_AND_BACK, GL_LIGHTING, GL_LINE, GL_LINE_BIT, GL_POLYGON_BIT, glColor4ubv(), glDepthRange(), glDisable(), glGetFloatv(), glPolygonMode(), glPopAttrib(), glPushAttrib(), IsRPhi(), TGLUtil::LineWidth(), TGLUtil::LockColor(), TGLColorSet::Selection(), TGLUtil::UnlockColor(), Warning(), and TEveException::what().

virtual Bool_t TEveCalo2DGL::SupportsSecondarySelect (  )  const [inline, virtual]

Reimplemented from TGLLogicalShape.

Definition at line 56 of file TEveCalo2DGL.h.

References kTRUE.

virtual Bool_t TEveCalo2DGL::AlwaysSecondarySelect (  )  const [inline, virtual]

Reimplemented from TGLLogicalShape.

Definition at line 57 of file TEveCalo2DGL.h.

References kTRUE.

void TEveCalo2DGL::ProcessSelection ( TGLRnrCtx rnrCtx,
TGLSelectRecord rec 
) [virtual]

Reimplemented from TGLLogicalShape.

Definition at line 509 of file TEveCalo2DGL.cxx.

References cd(), TEveCalo2D::fCellLists, TEveCaloViz::fData, fM, TEveCaloData::GetCellData(), TGLSelectRecordBase::GetItem(), TGLSelectRecordBase::GetN(), IsRPhi(), TEveCaloData::ProcessSelection(), and sel.

TEveCalo2DGL::ClassDef ( TEveCalo2DGL  ,
 
)

TEveCalo2DGL& TEveCalo2DGL::operator= ( const TEveCalo2DGL  )  [private]

void TEveCalo2DGL::MakeRhoZCell ( Float_t  thetaMin,
Float_t  thetaMax,
Float_t offset,
Bool_t  isBarrel,
Bool_t  phiPlus,
Float_t  towerH 
) const [protected]

void TEveCalo2DGL::MakeRPhiCell ( Float_t  phiMin,
Float_t  phiMax,
Float_t  towerH,
Float_t  offset 
) const [protected]

void TEveCalo2DGL::DrawRPhi ( TGLRnrCtx rnrCtx,
TEveCalo2D::vBinCells_t  
) const [protected]

void TEveCalo2DGL::DrawRPhiHighlighted ( std::vector< TEveCaloData::vCellId_t * > &  cellLists  )  const [protected]

void TEveCalo2DGL::DrawRhoZ ( TGLRnrCtx rnrCtx,
TEveCalo2D::vBinCells_t  
) const [protected]

void TEveCalo2DGL::DrawRhoZHighlighted ( std::vector< TEveCaloData::vCellId_t * > &  cellLists  )  const [protected]

Bool_t TEveCalo2DGL::IsRPhi (  )  const [protected]

virtual Bool_t TEveCalo2DGL::SetModel ( TObject obj,
const Option_t opt = 0 
) [virtual]

Implements TGLObject.

virtual void TEveCalo2DGL::SetBBox (  )  [virtual]

Implements TGLObject.

virtual void TEveCalo2DGL::DirectDraw ( TGLRnrCtx rnrCtx  )  const [virtual]

Implements TGLLogicalShape.

virtual void TEveCalo2DGL::DrawHighlight ( TGLRnrCtx rnrCtx,
const TGLPhysicalShape ps,
Int_t  lvl = -1 
) const [virtual]

Reimplemented from TGLLogicalShape.

virtual Bool_t TEveCalo2DGL::SupportsSecondarySelect (  )  const [inline, virtual]

Reimplemented from TGLLogicalShape.

Definition at line 56 of file TEveCalo2DGL.h.

References kTRUE.

virtual Bool_t TEveCalo2DGL::AlwaysSecondarySelect (  )  const [inline, virtual]

Reimplemented from TGLLogicalShape.

Definition at line 57 of file TEveCalo2DGL.h.

References kTRUE.

virtual void TEveCalo2DGL::ProcessSelection ( TGLRnrCtx rnrCtx,
TGLSelectRecord rec 
) [virtual]

Reimplemented from TGLLogicalShape.

TEveCalo2DGL::ClassDef ( TEveCalo2DGL  ,
 
)


Member Data Documentation

TEveCalo2D* TEveCalo2DGL::fM [protected]

Definition at line 32 of file TEveCalo2DGL.h.

Referenced by DirectDraw(), DrawHighlight(), DrawRhoZ(), DrawRhoZHighlighted(), DrawRPhi(), DrawRPhiHighlighted(), IsRPhi(), MakeRhoZCell(), MakeRPhiCell(), ProcessSelection(), and SetModel().

TEveCalo2D* TEveCalo2DGL::fM [protected]

Definition at line 32 of file TEveCalo2DGL.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:36:35 2011 for ROOT_528-00b_version by  doxygen 1.5.1