TGLTH3Slice Class Reference

#include <TGLPlotPainter.h>

Inheritance diagram for TGLTH3Slice:

TNamed TNamed TObject TObject TObject TObject List of all members.

Public Types

enum  ESliceAxis
enum  ESliceAxis

Public Member Functions

 TGLTH3Slice (const TString &sliceName, const TH3 *hist, const TGLPlotCoordinates *coord, const TGLPlotBox *box, ESliceAxis axis)
 TGLTH3Slice (const TString &sliceName, const TH3 *hist, const TF3 *fun, const TGLPlotCoordinates *coord, const TGLPlotBox *box, ESliceAxis axis)
void DrawSlice (Double_t pos) const
void SetSliceWidth (Int_t width=1)
void SetMinMax (const Rgl::Range_t &newRange)
const TGLLevelPaletteGetPalette () const
 TGLTH3Slice (const TString &sliceName, const TH3 *hist, const TGLPlotCoordinates *coord, const TGLPlotBox *box, ESliceAxis axis)
 TGLTH3Slice (const TString &sliceName, const TH3 *hist, const TF3 *fun, const TGLPlotCoordinates *coord, const TGLPlotBox *box, ESliceAxis axis)
void DrawSlice (Double_t pos) const
void SetSliceWidth (Int_t width=1)
void SetMinMax (const Rgl::Range_t &newRange)
const TGLLevelPaletteGetPalette () const

Private Member Functions

void PrepareTexCoords (Double_t pos, Int_t sliceBegin, Int_t sliceEnd) const
void FindMinMax (Int_t sliceBegin, Int_t sliceEnd) const
Bool_t PreparePalette () const
void DrawSliceTextured (Double_t pos) const
void DrawSliceFrame (Int_t low, Int_t up) const
void PrepareTexCoords (Double_t pos, Int_t sliceBegin, Int_t sliceEnd) const
void FindMinMax (Int_t sliceBegin, Int_t sliceEnd) const
Bool_t PreparePalette () const
void DrawSliceTextured (Double_t pos) const
void DrawSliceFrame (Int_t low, Int_t up) const

Private Attributes

ESliceAxis fAxisType
TAxisfAxis
TGLLevelPalette fPalette
const TGLPlotCoordinatesfCoord
const TGLPlotBoxfBox
Int_t fSliceWidth
const TH3fHist
const TF3fF3
TGL2DArray< Double_tfTexCoords
Rgl::Range_t fMinMax
TAxisfAxis
const TGLPlotCoordinatesfCoord
const TGLPlotBoxfBox
const TH3fHist
const TF3fF3
TGL2DArray< Double_tfTexCoords

Detailed Description

Definition at line 109 of file TGLPlotPainter.h.


Member Enumeration Documentation

enum TGLTH3Slice::ESliceAxis

Definition at line 111 of file TGLPlotPainter.h.

enum TGLTH3Slice::ESliceAxis

Definition at line 111 of file TGLPlotPainter.h.


Constructor & Destructor Documentation

TGLTH3Slice::TGLTH3Slice ( const TString sliceName,
const TH3 hist,
const TGLPlotCoordinates coord,
const TGLPlotBox box,
ESliceAxis  axis 
)

TGLTH3Slice::TGLTH3Slice ( const TString sliceName,
const TH3 hist,
const TF3 fun,
const TGLPlotCoordinates coord,
const TGLPlotBox box,
ESliceAxis  axis 
)

Definition at line 1641 of file TGLPlotPainter.cxx.

References fAxis, fAxisType, fHist, TH1::GetXaxis(), TH1::GetYaxis(), TH1::GetZaxis(), kXOZ, and kYOZ.

TGLTH3Slice::TGLTH3Slice ( const TString sliceName,
const TH3 hist,
const TGLPlotCoordinates coord,
const TGLPlotBox box,
ESliceAxis  axis 
)

TGLTH3Slice::TGLTH3Slice ( const TString sliceName,
const TH3 hist,
const TF3 fun,
const TGLPlotCoordinates coord,
const TGLPlotBox box,
ESliceAxis  axis 
)


Member Function Documentation

void TGLTH3Slice::DrawSlice ( Double_t  pos  )  const

Definition at line 1671 of file TGLPlotPainter.cxx.

References TGLLevelPalette::DisableTexture(), DrawSliceTextured(), TGLLevelPalette::EnableTexture(), fAxis, fF3, FindMinMax(), fPalette, fSliceWidth, TAxis::GetBinLowEdge(), TAxis::GetBinUpEdge(), TAxis::GetFirst(), TAxis::GetLast(), GL_LIGHTING, GL_REPLACE, i, low, PreparePalette(), and PrepareTexCoords().

Referenced by TGLIsoPainter::DrawSectionXOY(), TGLBoxPainter::DrawSectionXOY(), TGLTF3Painter::DrawSectionXOY(), TGLIsoPainter::DrawSectionXOZ(), TGLBoxPainter::DrawSectionXOZ(), TGLTF3Painter::DrawSectionXOZ(), TGLBoxPainter::DrawSectionYOZ(), TGLTF3Painter::DrawSectionYOZ(), and TGLIsoPainter::DrawSectionYOZ().

void TGLTH3Slice::SetSliceWidth ( Int_t  width = 1  ) 

Definition at line 1657 of file TGLPlotPainter.cxx.

References fAxis, fSliceWidth, TAxis::GetFirst(), and TAxis::GetLast().

void TGLTH3Slice::SetMinMax ( const Rgl::Range_t newRange  )  [inline]

Definition at line 145 of file TGLPlotPainter.h.

References fMinMax.

Referenced by TGLBoxPainter::InitGeometry().

const TGLLevelPalette& TGLTH3Slice::GetPalette (  )  const [inline]

Definition at line 150 of file TGLPlotPainter.h.

References fPalette.

Referenced by TGLBoxPainter::DrawPalette().

void TGLTH3Slice::PrepareTexCoords ( Double_t  pos,
Int_t  sliceBegin,
Int_t  sliceEnd 
) const [private]

Definition at line 1773 of file TGLPlotPainter.cxx.

References TF1::Eval(), fAxisType, fCoord, fF3, fHist, fMinMax, fPalette, fTexCoords, TAxis::GetBinCenter(), TH1::GetBinContent(), TGLPlotCoordinates::GetFirstXBin(), TGLPlotCoordinates::GetFirstYBin(), TGLPlotCoordinates::GetFirstZBin(), TGLPlotCoordinates::GetLastXBin(), TGLPlotCoordinates::GetLastYBin(), TGLPlotCoordinates::GetLastZBin(), TGLPlotCoordinates::GetNXBins(), TGLPlotCoordinates::GetNYBins(), TGLPlotCoordinates::GetNZBins(), TGLLevelPalette::GetTexCoord(), TH1::GetXaxis(), TH1::GetYaxis(), TH1::GetZaxis(), i, j, kXOY, kXOZ, kYOZ, level, and val.

Referenced by DrawSlice().

void TGLTH3Slice::FindMinMax ( Int_t  sliceBegin,
Int_t  sliceEnd 
) const [private]

Definition at line 1710 of file TGLPlotPainter.cxx.

Referenced by DrawSlice().

Bool_t TGLTH3Slice::PreparePalette (  )  const [private]

Definition at line 1762 of file TGLPlotPainter.cxx.

References fHist, fMinMax, fPalette, TGLLevelPalette::GeneratePalette(), TStyle::GetNumberContours(), and gStyle.

Referenced by DrawSlice().

void TGLTH3Slice::DrawSliceTextured ( Double_t  pos  )  const [private]

Definition at line 1858 of file TGLPlotPainter.cxx.

References fAxisType, fCoord, fHist, fTexCoords, TAxis::GetBinCenter(), TGLPlotCoordinates::GetFirstXBin(), TGLPlotCoordinates::GetFirstYBin(), TGLPlotCoordinates::GetFirstZBin(), TGLPlotCoordinates::GetLastXBin(), TGLPlotCoordinates::GetLastYBin(), TGLPlotCoordinates::GetLastZBin(), TH1::GetXaxis(), TGLPlotCoordinates::GetXScale(), TH1::GetYaxis(), TGLPlotCoordinates::GetYScale(), TH1::GetZaxis(), TGLPlotCoordinates::GetZScale(), GL_POLYGON, glBegin(), glEnd(), glTexCoord1d(), glVertex3d(), i, j, kXOY, kXOZ, and kYOZ.

Referenced by DrawSlice().

void TGLTH3Slice::DrawSliceFrame ( Int_t  low,
Int_t  up 
) const [private]

Definition at line 1971 of file TGLPlotPainter.cxx.

References box(), DrawBoxOutline(), fAxis, fAxisType, fBox, fCoord, TGLPlotBox::Get3DBox(), TAxis::GetBinLowEdge(), TAxis::GetBinUpEdge(), TGLPlotCoordinates::GetXScale(), TGLPlotCoordinates::GetYScale(), TGLPlotCoordinates::GetZScale(), glColor3d(), kXOY, kXOZ, kYOZ, X, and Y.

void TGLTH3Slice::DrawSlice ( Double_t  pos  )  const

void TGLTH3Slice::SetSliceWidth ( Int_t  width = 1  ) 

void TGLTH3Slice::SetMinMax ( const Rgl::Range_t newRange  )  [inline]

Definition at line 145 of file TGLPlotPainter.h.

References fMinMax.

const TGLLevelPalette& TGLTH3Slice::GetPalette (  )  const [inline]

Definition at line 150 of file TGLPlotPainter.h.

References fPalette.

void TGLTH3Slice::PrepareTexCoords ( Double_t  pos,
Int_t  sliceBegin,
Int_t  sliceEnd 
) const [private]

void TGLTH3Slice::FindMinMax ( Int_t  sliceBegin,
Int_t  sliceEnd 
) const [private]

Bool_t TGLTH3Slice::PreparePalette (  )  const [private]

void TGLTH3Slice::DrawSliceTextured ( Double_t  pos  )  const [private]

void TGLTH3Slice::DrawSliceFrame ( Int_t  low,
Int_t  up 
) const [private]


Member Data Documentation

ESliceAxis TGLTH3Slice::fAxisType [private]

Definition at line 114 of file TGLPlotPainter.h.

Referenced by DrawSliceFrame(), DrawSliceTextured(), PrepareTexCoords(), and TGLTH3Slice().

TAxis* TGLTH3Slice::fAxis [private]

Definition at line 115 of file TGLPlotPainter.h.

Referenced by DrawSlice(), DrawSliceFrame(), SetSliceWidth(), and TGLTH3Slice().

TGLLevelPalette TGLTH3Slice::fPalette [mutable, private]

Definition at line 116 of file TGLPlotPainter.h.

Referenced by DrawSlice(), GetPalette(), PreparePalette(), and PrepareTexCoords().

const TGLPlotCoordinates* TGLTH3Slice::fCoord [private]

Definition at line 118 of file TGLPlotPainter.h.

Referenced by DrawSliceFrame(), DrawSliceTextured(), and PrepareTexCoords().

const TGLPlotBox* TGLTH3Slice::fBox [private]

Definition at line 119 of file TGLPlotPainter.h.

Referenced by DrawSliceFrame().

Int_t TGLTH3Slice::fSliceWidth [private]

Definition at line 120 of file TGLPlotPainter.h.

Referenced by DrawSlice(), and SetSliceWidth().

const TH3* TGLTH3Slice::fHist [private]

Definition at line 122 of file TGLPlotPainter.h.

Referenced by DrawSliceTextured(), PreparePalette(), PrepareTexCoords(), and TGLTH3Slice().

const TF3* TGLTH3Slice::fF3 [private]

Definition at line 123 of file TGLPlotPainter.h.

Referenced by DrawSlice(), and PrepareTexCoords().

TGL2DArray<Double_t> TGLTH3Slice::fTexCoords [mutable, private]

Definition at line 125 of file TGLPlotPainter.h.

Referenced by DrawSliceTextured(), and PrepareTexCoords().

Rgl::Range_t TGLTH3Slice::fMinMax [mutable, private]

Definition at line 127 of file TGLPlotPainter.h.

Referenced by PreparePalette(), PrepareTexCoords(), and SetMinMax().

TAxis* TGLTH3Slice::fAxis [private]

Definition at line 115 of file TGLPlotPainter.h.

const TGLPlotCoordinates* TGLTH3Slice::fCoord [private]

Definition at line 118 of file TGLPlotPainter.h.

const TGLPlotBox* TGLTH3Slice::fBox [private]

Definition at line 119 of file TGLPlotPainter.h.

const TH3* TGLTH3Slice::fHist [private]

Definition at line 122 of file TGLPlotPainter.h.

const TF3* TGLTH3Slice::fF3 [private]

Definition at line 123 of file TGLPlotPainter.h.

TGL2DArray<Double_t> TGLTH3Slice::fTexCoords [mutable, private]

Definition at line 125 of file TGLPlotPainter.h.


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