TEveCaloLegoGL Class Reference

#include <TEveCaloLegoGL.h>

Inheritance diagram for TEveCaloLegoGL:

TGLObject TGLObject TGLLogicalShape TGLLogicalShape TGLLogicalShape TGLLogicalShape List of all members.

Public Member Functions

 TEveCaloLegoGL ()
virtual ~TEveCaloLegoGL ()
virtual Bool_t SetModel (TObject *obj, const Option_t *opt=0)
virtual void SetBBox ()
virtual void DLCacheDrop ()
virtual void DLCachePurge ()
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 (TEveCaloLegoGL, 0)
 TEveCaloLegoGL ()
virtual ~TEveCaloLegoGL ()
virtual Bool_t SetModel (TObject *obj, const Option_t *opt=0)
virtual void SetBBox ()
virtual void DLCacheDrop ()
virtual void DLCachePurge ()
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 (TEveCaloLegoGL, 0)

Private Types

typedef std::vector< Cell2D_tvCell2D_t
typedef std::vector< Cell2D_t
>::iterator 
vCell2D_i
typedef std::map< Int_t, UInt_tSliceDLMap_t
typedef std::map< Int_t, UInt_t
>::iterator 
SliceDLMap_i
typedef std::vector< Cell2D_tvCell2D_t
typedef std::vector< Cell2D_t
>::iterator 
vCell2D_i
typedef std::map< Int_t, UInt_tSliceDLMap_t
typedef std::map< Int_t, UInt_t
>::iterator 
SliceDLMap_i

Private Member Functions

 TEveCaloLegoGL (const TEveCaloLegoGL &)
TEveCaloLegoGLoperator= (const TEveCaloLegoGL &)
void GetScaleForMatrix (Float_t &sx, Float_t &sy, Float_t &sz) const
Int_t GetGridStep (TGLRnrCtx &rnrCtx) const
void RebinAxis (TAxis *orig, TAxis *curr) const
void SetAxis3DTitlePos (TGLRnrCtx &rnrCtx, Float_t x0, Float_t x1, Float_t y0, Float_t y1) const
void DrawAxis3D (TGLRnrCtx &rnrCtx) const
void DrawAxis2D (TGLRnrCtx &rnrCtx) const
void DrawHistBase (TGLRnrCtx &rnrCtx) const
void DrawSelectedCells (TGLRnrCtx &rnrCtx, TEveCaloData::vCellId_t cells) const
void PrepareCell2DData (TEveCaloData::vCellId_t &cellList, vCell2D_t &cells2D) const
void PrepareCell2DDataRebin (TEveCaloData::RebinData_t &rebinData, vCell2D_t &cells2D) const
void DrawCells2D (TGLRnrCtx &rnrCtx, vCell2D_t &cells2D) const
void DrawCells3D (TGLRnrCtx &rnrCtx) const
void MakeQuad (Float_t x, Float_t y, Float_t z, Float_t xw, Float_t yw, Float_t zh) const
void Make3DDisplayList (TEveCaloData::vCellId_t &cellList, SliceDLMap_t &map, Bool_t select) const
void Make3DDisplayListRebin (TEveCaloData::RebinData_t &rebinData, SliceDLMap_t &map, Bool_t select) const
void WrapTwoPi (Float_t &min, Float_t &max) const
 TEveCaloLegoGL (const TEveCaloLegoGL &)
TEveCaloLegoGLoperator= (const TEveCaloLegoGL &)
void GetScaleForMatrix (Float_t &sx, Float_t &sy, Float_t &sz) const
Int_t GetGridStep (TGLRnrCtx &rnrCtx) const
void RebinAxis (TAxis *orig, TAxis *curr) const
void SetAxis3DTitlePos (TGLRnrCtx &rnrCtx, Float_t x0, Float_t x1, Float_t y0, Float_t y1) const
void DrawAxis3D (TGLRnrCtx &rnrCtx) const
void DrawAxis2D (TGLRnrCtx &rnrCtx) const
void DrawHistBase (TGLRnrCtx &rnrCtx) const
void DrawSelectedCells (TGLRnrCtx &rnrCtx, TEveCaloData::vCellId_t cells) const
void PrepareCell2DData (TEveCaloData::vCellId_t &cellList, vCell2D_t &cells2D) const
void PrepareCell2DDataRebin (TEveCaloData::RebinData_t &rebinData, vCell2D_t &cells2D) const
void DrawCells2D (TGLRnrCtx &rnrCtx, vCell2D_t &cells2D) const
void DrawCells3D (TGLRnrCtx &rnrCtx) const
void MakeQuad (Float_t x, Float_t y, Float_t z, Float_t xw, Float_t yw, Float_t zh) const
void Make3DDisplayList (TEveCaloData::vCellId_t &cellList, SliceDLMap_t &map, Bool_t select) const
void Make3DDisplayListRebin (TEveCaloData::RebinData_t &rebinData, SliceDLMap_t &map, Bool_t select) const
void WrapTwoPi (Float_t &min, Float_t &max) const

Private Attributes

Color_t fGridColor
Color_t fFontColor
TAxisfEtaAxis
TAxisfPhiAxis
TAxisfZAxis
TEveVector fXAxisTitlePos
TEveVector fYAxisTitlePos
TEveVector fZAxisTitlePos
TEveVector fBackPlaneXConst [2]
TEveVector fBackPlaneYConst [2]
TGLAxisPainter fAxisPainter
TEveCaloLegofM
Bool_t fDLCacheOK
vCell2D_t fCells2D
TEveCaloData::RebinData_t fRebinData
Float_t fMaxVal
Float_t fValToPixel
Int_t fCurrentPixelsPerBin
SliceDLMap_t fDLMap
Bool_t fCells3D
Int_t fBinStep
TAxisfEtaAxis
TAxisfPhiAxis
TAxisfZAxis
TEveCaloLegofM

Friends

class TEveCaloLegoOverlay

Classes

struct  Cell2D_t

Detailed Description

Definition at line 26 of file TEveCaloLegoGL.h.


Member Typedef Documentation

typedef std::vector<Cell2D_t> TEveCaloLegoGL::vCell2D_t [private]

Definition at line 58 of file TEveCaloLegoGL.h.

typedef std::vector<Cell2D_t>::iterator TEveCaloLegoGL::vCell2D_i [private]

Definition at line 59 of file TEveCaloLegoGL.h.

typedef std::map<Int_t, UInt_t> TEveCaloLegoGL::SliceDLMap_t [private]

Definition at line 61 of file TEveCaloLegoGL.h.

typedef std::map<Int_t, UInt_t>::iterator TEveCaloLegoGL::SliceDLMap_i [private]

Definition at line 62 of file TEveCaloLegoGL.h.

typedef std::vector<Cell2D_t> TEveCaloLegoGL::vCell2D_t [private]

Definition at line 58 of file TEveCaloLegoGL.h.

typedef std::vector<Cell2D_t>::iterator TEveCaloLegoGL::vCell2D_i [private]

Definition at line 59 of file TEveCaloLegoGL.h.

typedef std::map<Int_t, UInt_t> TEveCaloLegoGL::SliceDLMap_t [private]

Definition at line 61 of file TEveCaloLegoGL.h.

typedef std::map<Int_t, UInt_t>::iterator TEveCaloLegoGL::SliceDLMap_i [private]

Definition at line 62 of file TEveCaloLegoGL.h.


Constructor & Destructor Documentation

TEveCaloLegoGL::TEveCaloLegoGL ( const TEveCaloLegoGL  )  [private]

TEveCaloLegoGL::TEveCaloLegoGL (  ) 

Definition at line 42 of file TEveCaloLegoGL.cxx.

References fAxisPainter, TGLLogicalShape::fDLCache, fEtaAxis, fPhiAxis, fZAxis, kFALSE, TGLFont::kPixmap, and TGLAxisPainter::SetFontMode().

TEveCaloLegoGL::~TEveCaloLegoGL (  )  [virtual]

Definition at line 71 of file TEveCaloLegoGL.cxx.

References DLCachePurge(), fEtaAxis, fPhiAxis, and fZAxis.

TEveCaloLegoGL::TEveCaloLegoGL ( const TEveCaloLegoGL  )  [private]

TEveCaloLegoGL::TEveCaloLegoGL (  ) 

virtual TEveCaloLegoGL::~TEveCaloLegoGL (  )  [virtual]


Member Function Documentation

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

void TEveCaloLegoGL::GetScaleForMatrix ( Float_t sx,
Float_t sy,
Float_t sz 
) const [private]

Definition at line 569 of file TEveCaloLegoGL.cxx.

References TEveCaloData::Empty(), TEveCaloViz::fData, fM, fMaxVal, TEveCaloViz::fMaxValAbs, TEveCaloViz::fScaleAbs, TEveCaloData::GetEtaLimits(), TEveCaloViz::GetEtaRng(), TEveCaloViz::GetMaxTowerH(), TEveCaloData::GetPhiLimits(), TEveCaloViz::GetPhiRng(), and unit.

Referenced by DrawHighlight().

Int_t TEveCaloLegoGL::GetGridStep ( TGLRnrCtx rnrCtx  )  const [private]

Definition at line 667 of file TEveCaloLegoGL.cxx.

References b, camera, TEveCaloLego::fAutoRebin, fCurrentPixelsPerBin, TEveCaloViz::fData, TAxis::FindBin(), fM, TEveCaloLego::fPixelsPerBin, TEveCaloViz::GetData(), TEveCaloData::GetEtaBins(), TEveCaloData::GetEtaLimits(), TEveCaloViz::GetEtaMax(), TEveCaloViz::GetEtaMin(), TAxis::GetNbins(), TEveCaloData::GetPhiBins(), TEveCaloData::GetPhiLimits(), TEveCaloViz::GetPhiMax(), TEveCaloViz::GetPhiMin(), GL_VIEWPORT, glGetIntegerv(), TMath::Hypot(), TGLCamera::kBottom, TGLCamera::kLeft, TGLCamera::kRight, TGLCamera::kTop, l, TMath::Min(), TMath::Nint(), TGLRnrCtx::RefCamera(), TMath::Sqrt(), t, and vp.

Referenced by DirectDraw().

void TEveCaloLegoGL::RebinAxis ( TAxis orig,
TAxis curr 
) const [private]

Definition at line 709 of file TEveCaloLegoGL.cxx.

References fBinStep, TAxis::FindBin(), TMath::FloorNint(), TAxis::GetBinCenter(), TAxis::GetBinUpEdge(), TAxis::GetNbins(), TAxis::GetXmax(), TAxis::GetXmin(), i, and TAxis::Set().

Referenced by DirectDraw().

void TEveCaloLegoGL::SetAxis3DTitlePos ( TGLRnrCtx rnrCtx,
Float_t  x0,
Float_t  x1,
Float_t  y0,
Float_t  y1 
) const [private]

Definition at line 290 of file TEveCaloLegoGL.cxx.

References TGLMatrix::CArr(), fBackPlaneXConst, fBackPlaneYConst, TEveCaloLego::fBoxMode, fM, fMaxVal, for(), TEveVectorT< TT >::fX, fXAxisTitlePos, TEveVectorT< TT >::fY, fYAxisTitlePos, fZAxisTitlePos, GL_MODELVIEW_MATRIX, GL_VIEWPORT, glGetDoublev(), glGetIntegerv(), i, if(), TGLRnrCtx::RefCamera(), TGLCamera::RefLastNoPickProjM(), TEveVectorT< TT >::Set(), and vp.

Referenced by DrawHistBase().

void TEveCaloLegoGL::DrawAxis3D ( TGLRnrCtx rnrCtx  )  const [private]

Definition at line 418 of file TEveCaloLegoGL.cxx.

References TGLMatrix::Arr(), TGLUtil::Color(), TEveCaloData::Empty(), fAxisPainter, fBackPlaneXConst, fBackPlaneYConst, TEveCaloLego::fBoxMode, TEveCaloViz::fData, fFontColor, fGridColor, fM, fMaxVal, TEveCaloLego::fNZSteps, TEveVectorT< TT >::fX, fXAxisTitlePos, TEveVectorT< TT >::fY, fYAxisTitlePos, TEveVectorT< TT >::fZ, fZAxis, fZAxisTitlePos, TEveCaloViz::GetData(), TEveCaloData::GetEtaBins(), TEveCaloViz::GetEtaMax(), TEveCaloViz::GetEtaMin(), TEveCaloViz::GetEtaRng(), TAttAxis::GetLabelSize(), TEveCaloData::GetPhiBins(), TEveCaloViz::GetPhiMax(), TEveCaloViz::GetPhiMin(), TEveCaloViz::GetPhiRng(), TEveCaloViz::GetPlotEt(), TAttAxis::GetTickLength(), TAxis::GetTitle(), TAttAxis::GetTitleFont(), TAttAxis::GetTitleSize(), GL_ENABLE_BIT, GL_LINE_BIT, GL_LINE_STIPPLE, GL_LINES, GL_MODELVIEW_MATRIX, GL_PROJECTION_MATRIX, GL_VIEWPORT, glBegin(), glEnable(), glEnd(), glGetDoublev(), glGetIntegerv(), glLineStipple(), glPopAttrib(), glPopMatrix(), glPushAttrib(), glPushMatrix(), glTranslated(), glTranslatef(), glVertex3f(), i, TGLFont::kBottom, TGLFont::kCenterH, TGLFont::kCenterV, kFALSE, TGLFont::kRight, len, TGLUtil::LineWidth(), TMath::Nint(), THLimitsFinder::Optimize(), TGLAxisPainter::PaintAxis(), TGLRnrCtx::RefCamera(), TGLAxisPainter::RefDir(), TGLAxisPainter::RefTitlePos(), TGLAxisPainter::RefTMOff(), TGLVertex3::Set(), TAttAxis::SetAxisColor(), TGLAxisPainter::SetLabelAlign(), TAttAxis::SetLabelColor(), TAttAxis::SetLabelOffset(), TGLAxisPainter::SetLabelPixelFontSize(), TAxis::SetLimits(), TAttAxis::SetNdivisions(), TAttAxis::SetTickLength(), TNamed::SetTitle(), TAttAxis::SetTitleColor(), TAttAxis::SetTitleFont(), TGLAxisPainter::SetTitlePixelFontSize(), TGLAxisPainter::SetTMNDim(), TMath::Sqrt(), TGLCamera::ViewportDeltaToWorld(), vp, TGLVertex3::X(), TGLVertex3::Y(), and TGLVertex3::Z().

Referenced by DrawHistBase().

void TEveCaloLegoGL::DrawAxis2D ( TGLRnrCtx rnrCtx  )  const [private]

Definition at line 590 of file TEveCaloLegoGL.cxx.

References TGLMatrix::Arr(), TGLPlane::D(), TGLRect::Diagonal(), TEveCaloData::Empty(), fAxisPainter, fFontColor, fGridColor, fM, TGLCamera::FrustumPlane(), TEveCaloViz::GetData(), TEveCaloData::GetEtaBins(), TEveCaloViz::GetEtaMax(), TEveCaloViz::GetEtaMin(), TEveCaloViz::GetEtaRng(), TAttAxis::GetLabelOffset(), TAttAxis::GetLabelSize(), TEveCaloData::GetPhiBins(), TEveCaloViz::GetPhiMax(), TEveCaloViz::GetPhiMin(), TEveCaloViz::GetPhiRng(), TAttAxis::GetTickLength(), TAxis::GetTitle(), TAttAxis::GetTitleFont(), TAttAxis::GetTitleSize(), GL_MODELVIEW_MATRIX, GL_PROJECTION_MATRIX, GL_VIEWPORT, glGetDoublev(), glGetIntegerv(), glPopMatrix(), glPushMatrix(), glTranslatef(), TGLCamera::kBottom, TGLFont::kBottom, TGLFont::kCenterH, TGLFont::kCenterV, TGLCamera::kLeft, TGLFont::kRight, TGLCamera::kRight, TGLCamera::kTop, len, TMath::Min(), TMath::Nint(), TGLAxisPainter::PaintAxis(), TGLRnrCtx::RefCamera(), TGLAxisPainter::RefDir(), TGLAxisPainter::RefTitlePos(), TGLAxisPainter::RefTMOff(), TGLCamera::RefViewport(), TGLVertex3::Set(), TGLAxisPainter::SetAttAxis(), TAttAxis::SetAxisColor(), TGLAxisPainter::SetLabelAlign(), TAttAxis::SetLabelColor(), TAttAxis::SetLabelOffset(), TGLAxisPainter::SetLabelPixelFontSize(), TAxis::SetLimits(), TAttAxis::SetNdivisions(), TAttAxis::SetTickLength(), TNamed::SetTitle(), TAttAxis::SetTitleColor(), TAttAxis::SetTitleFont(), TGLAxisPainter::SetTitlePixelFontSize(), TGLAxisPainter::SetTMNDim(), TMath::Sqrt(), TMath::Sqrt2(), and vp.

Referenced by DrawHistBase().

void TEveCaloLegoGL::DrawHistBase ( TGLRnrCtx rnrCtx  )  const [private]

Definition at line 729 of file TEveCaloLegoGL.cxx.

References TGLUtil::Color(), DrawAxis2D(), DrawAxis3D(), fCells3D, fEtaAxis, TEveCaloViz::fEtaMax, TEveCaloViz::fEtaMin, fGridColor, fM, fPhiAxis, TAxis::GetBinUpEdge(), TAxis::GetNbins(), TEveCaloViz::GetPhiMax(), TEveCaloViz::GetPhiMin(), GL_ENABLE_BIT, GL_LINE_BIT, GL_LINES, GL_POLYGON_BIT, glBegin(), glEnd(), glPopAttrib(), glPushAttrib(), glVertex2f(), i, TGLUtil::LineWidth(), SetAxis3DTitlePos(), and val.

void TEveCaloLegoGL::DrawSelectedCells ( TGLRnrCtx rnrCtx,
TEveCaloData::vCellId_t  cells 
) const [private]

Definition at line 1121 of file TEveCaloLegoGL.cxx.

References TEveCaloViz::CellInEtaPhiRng(), DrawCells2D(), TEveCaloData::CellGeom_t::EtaDelta(), TEveCaloData::CellGeom_t::EtaMin(), TEveCaloData::RebinData_t::fBinData, fBinStep, TEveCaloLego::fCellList, fCells2D, fCells3D, TEveCaloViz::fData, fEtaAxis, fM, TEveCaloLego::fNormalizeRebin, fPhiAxis, TEveCaloData::CellGeom_t::fPhiMax, TEveCaloData::CellGeom_t::fPhiMin, TEveCaloViz::fPlotEt, fRebinData, TEveCaloData::RebinData_t::fSliceData, TAxis::GetBinLowEdge(), TAxis::GetBinUpEdge(), TAxis::GetBinWidth(), TEveCaloData::GetCellData(), TAxis::GetNbins(), TEveCaloData::GetNSlices(), TEveCaloData::RebinData_t::GetSliceVals(), i, j, MakeQuad(), TEveCaloData::CellGeom_t::PhiDelta(), TEveCaloData::CellGeom_t::PhiMin(), PrepareCell2DDataRebin(), TEveCaloData::Rebin(), s, TEveCaloData::CellData_t::Value(), and WrapTwoPi().

Referenced by DrawHighlight().

void TEveCaloLegoGL::PrepareCell2DData ( TEveCaloData::vCellId_t cellList,
vCell2D_t cells2D 
) const [private]

Definition at line 823 of file TEveCaloLegoGL.cxx.

References TEveCaloViz::fData, TEveCaloData::CellGeom_t::fEtaMax, TEveCaloData::CellGeom_t::fEtaMin, fM, TEveCaloData::CellGeom_t::fPhiMax, TEveCaloData::CellGeom_t::fPhiMin, TEveCaloViz::fPlotEt, TEveCaloData::GetCellData(), TEveCaloData::CellData_t::Value(), and WrapTwoPi().

void TEveCaloLegoGL::PrepareCell2DDataRebin ( TEveCaloData::RebinData_t rebinData,
vCell2D_t cells2D 
) const [private]

Definition at line 871 of file TEveCaloLegoGL.cxx.

References TEveCaloData::RebinData_t::fBinData, TEveCaloViz::fData, fEtaAxis, fM, TEveCaloData::RebinData_t::fNSlices, fPhiAxis, TAxis::GetBinLowEdge(), TAxis::GetBinUpEdge(), TEveCaloViz::GetDataSliceThreshold(), TAxis::GetNbins(), TEveCaloData::GetNSlices(), TEveCaloData::RebinData_t::GetSliceVals(), i, j, s, and val.

Referenced by DrawSelectedCells().

void TEveCaloLegoGL::DrawCells2D ( TGLRnrCtx rnrCtx,
vCell2D_t cells2D 
) const [private]

Definition at line 920 of file TEveCaloLegoGL.cxx.

References TEveCaloViz::AssertPalette(), TGLUtil::Color(), TGLUtil::Color4ubv(), TEveRGBAPalette::ColorFromValue(), TGLRnrCtx::ColorSet(), TGLUtil::ColorTransparency(), TEveCaloLego::f2DMode, TEveCaloLego::fCellPixelFontSize, fCells2D, fCurrentPixelsPerBin, TEveCaloViz::fData, TEveCaloLego::fDrawNumberCellPixels, TMath::FloorNint(), fM, fMaxVal, Form(), TEveCaloViz::fPalette, fValToPixel, TGLColor::GetColorIndex(), TEveCaloViz::GetData(), TEveCaloLego::GetFixedHeightValIn2DMode(), TEveCaloLego::GetHasFixedHeightIn2DMode(), TEveCaloData::GetSliceColor(), TEveCaloData::GetSliceTransparency(), GL_ENABLE_BIT, GL_FRONT_AND_BACK, GL_LINE, GL_POINTS, GL_POLYGON, GL_POLYGON_BIT, GL_QUADS, glBegin(), glEnd(), glLoadName(), glPolygonMode(), glPopAttrib(), glPopName(), glPushAttrib(), glPushName(), glVertex3f(), TGLRnrCtx::Highlight(), TGLRnrCtx::HighlightOutline(), i, if(), TGLFont::kCenterH, TGLFont::kCenterV, kFALSE, TGLFont::kPixmap, TEveCaloLego::kValColor, TEveCaloLego::kValSizeOutline, TMath::Log10(), TGLColorSet::Markup(), TMath::Min(), TMath::Nint(), TGLRnrCtx::RegisterFontNoScale(), TGLRnrCtx::SecSelection(), TGLRnrCtx::Selection(), val, x, and y.

Referenced by DrawSelectedCells().

void TEveCaloLegoGL::DrawCells3D ( TGLRnrCtx rnrCtx  )  const [private]

Definition at line 796 of file TEveCaloLegoGL.cxx.

References TGLUtil::Color(), TGLUtil::ColorTransparency(), fDLMap, fM, TEveCaloViz::GetData(), TEveCaloViz::GetDataSliceColor(), TEveCaloData::GetSliceTransparency(), GL_FRONT_AND_BACK, GL_LINE, GL_POLYGON_OFFSET_FILL, glCallList(), glDisable(), glLoadName(), glPolygonMode(), glPopName(), glPushName(), i, TGLRnrCtx::kFill, and TGLRnrCtx::SceneStyle().

void TEveCaloLegoGL::MakeQuad ( Float_t  x,
Float_t  y,
Float_t  z,
Float_t  xw,
Float_t  yw,
Float_t  zh 
) const [private]

Definition at line 130 of file TEveCaloLegoGL.cxx.

References fM, TEveCaloViz::GetEtaMax(), TEveCaloViz::GetEtaMin(), TEveCaloViz::GetPhiMax(), TEveCaloViz::GetPhiMin(), GL_QUADS, glBegin(), glEnd(), glNormal3f(), glVertex3f(), and x2.

Referenced by DrawSelectedCells(), Make3DDisplayList(), and Make3DDisplayListRebin().

void TEveCaloLegoGL::Make3DDisplayList ( TEveCaloData::vCellId_t cellList,
SliceDLMap_t map,
Bool_t  select 
) const [private]

Definition at line 202 of file TEveCaloLegoGL.cxx.

References TEveCaloData::CellGeom_t::EtaDelta(), TEveCaloData::CellGeom_t::EtaMin(), TEveCaloViz::fData, fM, TEveCaloData::CellGeom_t::fPhiMax, TEveCaloData::CellGeom_t::fPhiMin, TEveCaloViz::fPlotEt, TEveCaloData::GetCellData(), TEveCaloData::GetNSlices(), GL_COMPILE, glEndList(), glGenLists(), glLoadName(), glNewList(), i, MakeQuad(), TEveCaloData::CellGeom_t::PhiDelta(), TEveCaloData::CellGeom_t::PhiMin(), s, TEveCaloData::CellData_t::Value(), and WrapTwoPi().

void TEveCaloLegoGL::Make3DDisplayListRebin ( TEveCaloData::RebinData_t rebinData,
SliceDLMap_t map,
Bool_t  select 
) const [private]

Definition at line 244 of file TEveCaloLegoGL.cxx.

References TEveCaloData::RebinData_t::fBinData, TEveCaloViz::fData, fEtaAxis, fM, fPhiAxis, TAxis::GetBinLowEdge(), TAxis::GetBinUpEdge(), TAxis::GetBinWidth(), TAxis::GetNbins(), TEveCaloData::GetNSlices(), TEveCaloData::RebinData_t::GetSliceVals(), GL_COMPILE, glEndList(), glGenLists(), glLoadName(), glNewList(), i, j, MakeQuad(), s, t, and WrapTwoPi().

void TEveCaloLegoGL::WrapTwoPi ( Float_t min,
Float_t max 
) const [inline, private]

Definition at line 145 of file TEveCaloLegoGL.h.

References fM, TEveCaloViz::GetData(), TEveCaloViz::GetPhiMax(), TEveCaloViz::GetPhiMin(), TEveCaloData::GetWrapTwoPi(), TMath::Pi(), and TMath::TwoPi().

Referenced by DrawSelectedCells(), Make3DDisplayList(), Make3DDisplayListRebin(), and PrepareCell2DData().

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

Implements TGLObject.

Definition at line 83 of file TEveCaloLegoGL.cxx.

References fM, and kTRUE.

void TEveCaloLegoGL::SetBBox (  )  [virtual]

Implements TGLObject.

Definition at line 92 of file TEveCaloLegoGL.cxx.

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

void TEveCaloLegoGL::DLCacheDrop (  )  [virtual]

Reimplemented from TGLLogicalShape.

Definition at line 100 of file TEveCaloLegoGL.cxx.

References TGLLogicalShape::DLCacheDrop(), fDLCacheOK, fDLMap, i, and kFALSE.

void TEveCaloLegoGL::DLCachePurge (  )  [virtual]

Reimplemented from TGLLogicalShape.

Definition at line 112 of file TEveCaloLegoGL.cxx.

References TGLLogicalShape::DLCachePurge(), fDLCacheOK, fDLMap, i, kFALSE, and TGLLogicalShape::PurgeDLRange().

Referenced by ~TEveCaloLegoGL().

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

Implements TGLLogicalShape.

Definition at line 1237 of file TEveCaloLegoGL.cxx.

References TEveCaloViz::AssertCellIdCache(), TEveCaloData::RebinData_t::Clear(), fBinStep, TEveCaloLego::fCellList, fCells3D, TEveCaloViz::fData, fDLCacheOK, fEtaAxis, fM, fMaxVal, TEveCaloLego::fNormalizeRebin, TEveCaloData::RebinData_t::fNSlices, for(), fPhiAxis, TEveCaloViz::fPlotEt, TEveCaloLego::fProjection, fRebinData, TEveCaloData::RebinData_t::fSliceData, TGLMatrix::GetBaseVec(), TGLCamera::GetCamBase(), TEveCaloData::GetEtaBins(), GetGridStep(), TEveCaloViz::GetMaxVal(), TEveCaloData::GetPhiBins(), i, TGLCamera::IsOrthographic(), TEveCaloLego::k2D, TEveCaloLego::k3D, TEveCaloLego::kAuto, kFALSE, kTRUE, TEveCaloData::Rebin(), RebinAxis(), TGLRnrCtx::RefCamera(), s, and TGLVertex3::Z().

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

Reimplemented from TGLLogicalShape.

Definition at line 1075 of file TEveCaloLegoGL.cxx.

References TGLColor::CArr(), TGLRnrCtx::ColorSet(), dr, DrawSelectedCells(), TEveCaloViz::fData, fM, TEveCaloViz::fPhi, TEveCaloData::GetCellsHighlighted(), TEveCaloData::GetCellsSelected(), TEveCaloViz::GetEta(), GetScaleForMatrix(), 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(), glPopMatrix(), glPushAttrib(), glPushMatrix(), glScalef(), glTranslatef(), TGLUtil::LineWidth(), TGLUtil::LockColor(), TGLColorSet::Selection(), sx, and TGLUtil::UnlockColor().

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

Reimplemented from TGLLogicalShape.

Definition at line 137 of file TEveCaloLegoGL.h.

References kTRUE.

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

Reimplemented from TGLLogicalShape.

Definition at line 138 of file TEveCaloLegoGL.h.

References kTRUE.

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

Reimplemented from TGLLogicalShape.

Definition at line 1389 of file TEveCaloLegoGL.cxx.

References fBinStep, TEveCaloLego::fCellList, fCells3D, TEveCaloViz::fData, fEtaAxis, fM, fPhiAxis, TAxis::GetBinCenter(), TAxis::GetBinWidth(), TEveCaloData::GetCellList(), TGLSelectRecordBase::GetItem(), TGLSelectRecordBase::GetN(), TAxis::GetNbins(), TEveCaloData::ProcessSelection(), and sel.

TEveCaloLegoGL::ClassDef ( TEveCaloLegoGL  ,
 
)

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

void TEveCaloLegoGL::GetScaleForMatrix ( Float_t sx,
Float_t sy,
Float_t sz 
) const [private]

Int_t TEveCaloLegoGL::GetGridStep ( TGLRnrCtx rnrCtx  )  const [private]

void TEveCaloLegoGL::RebinAxis ( TAxis orig,
TAxis curr 
) const [private]

void TEveCaloLegoGL::SetAxis3DTitlePos ( TGLRnrCtx rnrCtx,
Float_t  x0,
Float_t  x1,
Float_t  y0,
Float_t  y1 
) const [private]

void TEveCaloLegoGL::DrawAxis3D ( TGLRnrCtx rnrCtx  )  const [private]

void TEveCaloLegoGL::DrawAxis2D ( TGLRnrCtx rnrCtx  )  const [private]

void TEveCaloLegoGL::DrawHistBase ( TGLRnrCtx rnrCtx  )  const [private]

void TEveCaloLegoGL::DrawSelectedCells ( TGLRnrCtx rnrCtx,
TEveCaloData::vCellId_t  cells 
) const [private]

void TEveCaloLegoGL::PrepareCell2DData ( TEveCaloData::vCellId_t cellList,
vCell2D_t cells2D 
) const [private]

void TEveCaloLegoGL::PrepareCell2DDataRebin ( TEveCaloData::RebinData_t rebinData,
vCell2D_t cells2D 
) const [private]

void TEveCaloLegoGL::DrawCells2D ( TGLRnrCtx rnrCtx,
vCell2D_t cells2D 
) const [private]

void TEveCaloLegoGL::DrawCells3D ( TGLRnrCtx rnrCtx  )  const [private]

void TEveCaloLegoGL::MakeQuad ( Float_t  x,
Float_t  y,
Float_t  z,
Float_t  xw,
Float_t  yw,
Float_t  zh 
) const [private]

void TEveCaloLegoGL::Make3DDisplayList ( TEveCaloData::vCellId_t cellList,
SliceDLMap_t map,
Bool_t  select 
) const [private]

void TEveCaloLegoGL::Make3DDisplayListRebin ( TEveCaloData::RebinData_t rebinData,
SliceDLMap_t map,
Bool_t  select 
) const [private]

void TEveCaloLegoGL::WrapTwoPi ( Float_t min,
Float_t max 
) const [private]

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

Implements TGLObject.

virtual void TEveCaloLegoGL::SetBBox (  )  [virtual]

Implements TGLObject.

virtual void TEveCaloLegoGL::DLCacheDrop (  )  [virtual]

Reimplemented from TGLLogicalShape.

virtual void TEveCaloLegoGL::DLCachePurge (  )  [virtual]

Reimplemented from TGLLogicalShape.

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

Implements TGLLogicalShape.

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

Reimplemented from TGLLogicalShape.

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

Reimplemented from TGLLogicalShape.

Definition at line 137 of file TEveCaloLegoGL.h.

References kTRUE.

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

Reimplemented from TGLLogicalShape.

Definition at line 138 of file TEveCaloLegoGL.h.

References kTRUE.

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

Reimplemented from TGLLogicalShape.

TEveCaloLegoGL::ClassDef ( TEveCaloLegoGL  ,
 
)


Friends And Related Function Documentation

TEveCaloLegoOverlay [friend]

Definition at line 28 of file TEveCaloLegoGL.h.


Member Data Documentation

Color_t TEveCaloLegoGL::fGridColor [mutable, private]

Definition at line 65 of file TEveCaloLegoGL.h.

Referenced by DrawAxis2D(), DrawAxis3D(), and DrawHistBase().

Color_t TEveCaloLegoGL::fFontColor [mutable, private]

Definition at line 66 of file TEveCaloLegoGL.h.

Referenced by DrawAxis2D(), and DrawAxis3D().

TAxis* TEveCaloLegoGL::fEtaAxis [mutable, private]

Definition at line 68 of file TEveCaloLegoGL.h.

Referenced by DirectDraw(), DrawHistBase(), DrawSelectedCells(), Make3DDisplayListRebin(), PrepareCell2DDataRebin(), ProcessSelection(), TEveCaloLegoGL(), and ~TEveCaloLegoGL().

TAxis* TEveCaloLegoGL::fPhiAxis [mutable, private]

Definition at line 69 of file TEveCaloLegoGL.h.

Referenced by DirectDraw(), DrawHistBase(), DrawSelectedCells(), Make3DDisplayListRebin(), PrepareCell2DDataRebin(), ProcessSelection(), TEveCaloLegoGL(), and ~TEveCaloLegoGL().

TAxis* TEveCaloLegoGL::fZAxis [mutable, private]

Definition at line 70 of file TEveCaloLegoGL.h.

Referenced by DrawAxis3D(), TEveCaloLegoGL(), and ~TEveCaloLegoGL().

TEveVector TEveCaloLegoGL::fXAxisTitlePos [mutable, private]

Definition at line 71 of file TEveCaloLegoGL.h.

Referenced by DrawAxis3D(), and SetAxis3DTitlePos().

TEveVector TEveCaloLegoGL::fYAxisTitlePos [mutable, private]

Definition at line 72 of file TEveCaloLegoGL.h.

Referenced by DrawAxis3D(), and SetAxis3DTitlePos().

TEveVector TEveCaloLegoGL::fZAxisTitlePos [mutable, private]

Definition at line 73 of file TEveCaloLegoGL.h.

Referenced by DrawAxis3D(), and SetAxis3DTitlePos().

TEveVector TEveCaloLegoGL::fBackPlaneXConst [mutable, private]

Definition at line 74 of file TEveCaloLegoGL.h.

Referenced by DrawAxis3D(), and SetAxis3DTitlePos().

TEveVector TEveCaloLegoGL::fBackPlaneYConst [mutable, private]

Definition at line 75 of file TEveCaloLegoGL.h.

Referenced by DrawAxis3D(), and SetAxis3DTitlePos().

TGLAxisPainter TEveCaloLegoGL::fAxisPainter [mutable, private]

Definition at line 77 of file TEveCaloLegoGL.h.

Referenced by DrawAxis2D(), DrawAxis3D(), and TEveCaloLegoGL().

TEveCaloLego* TEveCaloLegoGL::fM [private]

Definition at line 80 of file TEveCaloLegoGL.h.

Referenced by DirectDraw(), DrawAxis2D(), DrawAxis3D(), DrawCells2D(), DrawCells3D(), DrawHighlight(), DrawHistBase(), DrawSelectedCells(), GetGridStep(), GetScaleForMatrix(), Make3DDisplayList(), Make3DDisplayListRebin(), MakeQuad(), PrepareCell2DData(), PrepareCell2DDataRebin(), ProcessSelection(), SetAxis3DTitlePos(), SetModel(), and WrapTwoPi().

Bool_t TEveCaloLegoGL::fDLCacheOK [mutable, private]

Definition at line 81 of file TEveCaloLegoGL.h.

Referenced by DirectDraw(), DLCacheDrop(), and DLCachePurge().

vCell2D_t TEveCaloLegoGL::fCells2D [mutable, private]

Definition at line 82 of file TEveCaloLegoGL.h.

Referenced by DrawCells2D(), and DrawSelectedCells().

TEveCaloData::RebinData_t TEveCaloLegoGL::fRebinData [mutable, private]

Definition at line 84 of file TEveCaloLegoGL.h.

Referenced by DirectDraw(), and DrawSelectedCells().

Float_t TEveCaloLegoGL::fMaxVal [mutable, private]

Definition at line 85 of file TEveCaloLegoGL.h.

Referenced by DirectDraw(), DrawAxis3D(), DrawCells2D(), GetScaleForMatrix(), and SetAxis3DTitlePos().

Float_t TEveCaloLegoGL::fValToPixel [mutable, private]

Definition at line 86 of file TEveCaloLegoGL.h.

Referenced by DrawCells2D().

Int_t TEveCaloLegoGL::fCurrentPixelsPerBin [mutable, private]

Definition at line 87 of file TEveCaloLegoGL.h.

Referenced by DrawCells2D(), and GetGridStep().

SliceDLMap_t TEveCaloLegoGL::fDLMap [mutable, private]

Definition at line 89 of file TEveCaloLegoGL.h.

Referenced by DLCacheDrop(), DLCachePurge(), and DrawCells3D().

Bool_t TEveCaloLegoGL::fCells3D [mutable, private]

Definition at line 90 of file TEveCaloLegoGL.h.

Referenced by DirectDraw(), DrawHistBase(), DrawSelectedCells(), and ProcessSelection().

Int_t TEveCaloLegoGL::fBinStep [mutable, private]

Definition at line 92 of file TEveCaloLegoGL.h.

Referenced by DirectDraw(), DrawSelectedCells(), ProcessSelection(), RebinAxis(), and TEveCaloLegoOverlay::Render().

TAxis* TEveCaloLegoGL::fEtaAxis [mutable, private]

Definition at line 68 of file TEveCaloLegoGL.h.

TAxis* TEveCaloLegoGL::fPhiAxis [mutable, private]

Definition at line 69 of file TEveCaloLegoGL.h.

TAxis* TEveCaloLegoGL::fZAxis [mutable, private]

Definition at line 70 of file TEveCaloLegoGL.h.

TEveCaloLego* TEveCaloLegoGL::fM [private]

Definition at line 80 of file TEveCaloLegoGL.h.


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