TGLLegoPainter Class Reference

#include <TGLLegoPainter.h>

Inheritance diagram for TGLLegoPainter:

TGLPlotPainter TGLPlotPainter TVirtualGLPainter TVirtualGLPainter TVirtualGLPainter TVirtualGLPainter List of all members.

Public Member Functions

 TGLLegoPainter (TH1 *hist, TGLPlotCamera *camera, TGLPlotCoordinates *coord)
char * GetPlotInfo (Int_t px, Int_t py)
Bool_t InitGeometry ()
void StartPan (Int_t px, Int_t py)
void Pan (Int_t px, Int_t py)
void AddOption (const TString &stringOption)
void ProcessEvent (Int_t event, Int_t px, Int_t py)
 TGLLegoPainter (TH1 *hist, TGLPlotCamera *camera, TGLPlotCoordinates *coord)
char * GetPlotInfo (Int_t px, Int_t py)
Bool_t InitGeometry ()
void StartPan (Int_t px, Int_t py)
void Pan (Int_t px, Int_t py)
void AddOption (const TString &stringOption)
void ProcessEvent (Int_t event, Int_t px, Int_t py)

Private Types

enum  ELegoType
enum  ELegoType
typedef std::pair< Double_t,
Double_t
CosSin_t
typedef std::pair< Double_t,
Double_t
CosSin_t

Private Member Functions

 TGLLegoPainter (const TGLLegoPainter &)
TGLLegoPainteroperator= (const TGLLegoPainter &)
Bool_t InitGeometryCartesian ()
Bool_t InitGeometryPolar ()
Bool_t InitGeometryCylindrical ()
Bool_t InitGeometrySpherical ()
void InitGL () const
void DeInitGL () const
void DrawPlot () const
void DrawLegoCartesian () const
void DrawLegoPolar () const
void DrawLegoCylindrical () const
void DrawLegoSpherical () const
void SetLegoColor () const
void DrawSectionXOZ () const
void DrawSectionYOZ () const
void DrawSectionXOY () const
Bool_t ClampZ (Double_t &zVal) const
Bool_t PreparePalette () const
void DrawPalette () const
void DrawPaletteAxis () const
 TGLLegoPainter (const TGLLegoPainter &)
TGLLegoPainteroperator= (const TGLLegoPainter &)
Bool_t InitGeometryCartesian ()
Bool_t InitGeometryPolar ()
Bool_t InitGeometryCylindrical ()
Bool_t InitGeometrySpherical ()
void InitGL () const
void DeInitGL () const
void DrawPlot () const
void DrawLegoCartesian () const
void DrawLegoPolar () const
void DrawLegoCylindrical () const
void DrawLegoSpherical () const
void SetLegoColor () const
void DrawSectionXOZ () const
void DrawSectionYOZ () const
void DrawSectionXOY () const
Bool_t ClampZ (Double_t &zVal) const
Bool_t PreparePalette () const
void DrawPalette () const
void DrawPaletteAxis () const

Private Attributes

ELegoType fLegoType
Double_t fMinZ
Rgl::Range_t fMinMaxVal
std::vector< Rgl::Range_tfXEdges
std::vector< Rgl::Range_tfYEdges
std::vector< CosSin_tfCosSinTableX
std::vector< CosSin_tfCosSinTableY
TString fBinInfo
TGLQuadric fQuadric
Bool_t fDrawErrors
TGLLevelPalette fPalette
std::vector< Double_tfColorLevels
std::vector< Rgl::Range_tfXEdges
std::vector< Rgl::Range_tfYEdges
std::vector< CosSin_tfCosSinTableX
std::vector< CosSin_tfCosSinTableY
std::vector< Double_tfColorLevels

Detailed Description

Definition at line 36 of file TGLLegoPainter.h.


Member Typedef Documentation

typedef std::pair<Double_t, Double_t> TGLLegoPainter::CosSin_t [private]

Definition at line 52 of file TGLLegoPainter.h.

typedef std::pair<Double_t, Double_t> TGLLegoPainter::CosSin_t [private]

Definition at line 52 of file TGLLegoPainter.h.


Member Enumeration Documentation

enum TGLLegoPainter::ELegoType [private]

Definition at line 39 of file TGLLegoPainter.h.

enum TGLLegoPainter::ELegoType [private]

Definition at line 39 of file TGLLegoPainter.h.


Constructor & Destructor Documentation

TGLLegoPainter::TGLLegoPainter ( const TGLLegoPainter  )  [private]

TGLLegoPainter::TGLLegoPainter ( TH1 hist,
TGLPlotCamera camera,
TGLPlotCoordinates coord 
)

TGLLegoPainter::TGLLegoPainter ( const TGLLegoPainter  )  [private]

TGLLegoPainter::TGLLegoPainter ( TH1 hist,
TGLPlotCamera camera,
TGLPlotCoordinates coord 
)


Member Function Documentation

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

char * TGLLegoPainter::GetPlotInfo ( Int_t  px,
Int_t  py 
) [virtual]

Implements TVirtualGLPainter.

Definition at line 48 of file TGLLegoPainter.cxx.

References TString::Data(), fBinInfo, TGLPlotPainter::fCoord, TGLPlotPainter::fHighColor, TGLPlotPainter::fHist, TString::Form(), TGLPlotPainter::fSelectedPart, TGLPlotPainter::fSelectionBase, TH1::GetBinContent(), TGLPlotCoordinates::GetFirstXBin(), TGLPlotCoordinates::GetFirstYBin(), TNamed::GetName(), and TGLPlotCoordinates::GetNYBins().

Bool_t TGLLegoPainter::InitGeometry (  )  [virtual]

Implements TGLPlotPainter.

Definition at line 72 of file TGLLegoPainter.cxx.

References TGLPlotPainter::fBackBox, TGLPlotPainter::fCamera, TGLPlotPainter::fCoord, TGLPlotBox::Get3DBox(), TGLPlotCoordinates::GetCoordType(), InitGeometryCartesian(), InitGeometryCylindrical(), InitGeometryPolar(), InitGeometrySpherical(), kFALSE, kGLCartesian, kGLCylindrical, kGLPolar, kGLSpherical, and TGLPlotCamera::SetViewVolume().

void TGLLegoPainter::StartPan ( Int_t  px,
Int_t  py 
) [virtual]

Implements TGLPlotPainter.

Definition at line 374 of file TGLLegoPainter.cxx.

References TGLPlotPainter::fBoxCut, TGLPlotPainter::fCamera, TGLPlotPainter::fMousePosition, TPoint::fX, TPoint::fY, TGLPlotCamera::GetHeight(), TGLBoxCut::StartMovement(), and TGLPlotCamera::StartPan().

void TGLLegoPainter::Pan ( Int_t  px,
Int_t  py 
) [virtual]

Implements TVirtualGLPainter.

Definition at line 384 of file TGLLegoPainter.cxx.

References TGLPlotCamera::Apply(), TGLPlotPainter::fBoxCut, TGLPlotPainter::fCamera, TGLPlotPainter::fHighColor, TGLPlotPainter::fMousePosition, TGLPlotPainter::fPadPhi, TGLPlotPainter::fPadTheta, TGLPlotPainter::fSelectedPart, TGLPlotPainter::fSelectionBase, TGLPlotPainter::fUpdateSelection, TPoint::fX, TPoint::fY, TGLPlotCamera::GetHeight(), TGLBoxCut::IsActive(), kTRUE, TGLPlotPainter::kXAxis, TGLPlotPainter::kZAxis, TGLBoxCut::MoveBox(), TGLPlotPainter::MoveSection(), TGLPlotCamera::Pan(), TGLPlotPainter::RestoreModelviewMatrix(), TGLPlotPainter::RestoreProjectionMatrix(), TGLPlotPainter::SaveModelviewMatrix(), TGLPlotPainter::SaveProjectionMatrix(), and TGLPlotCamera::SetCamera().

void TGLLegoPainter::AddOption ( const TString stringOption  )  [virtual]

Implements TGLPlotPainter.

Definition at line 424 of file TGLLegoPainter.cxx.

References fDrawErrors, TGLPlotPainter::fDrawPalette, fLegoType, kColorLevel, kColorSimple, kCylindricBars, kFALSE, kNPOS, kTRUE, and option.

void TGLLegoPainter::ProcessEvent ( Int_t  event,
Int_t  px,
Int_t  py 
) [virtual]

Implements TGLPlotPainter.

Definition at line 1050 of file TGLLegoPainter.cxx.

References TGLPlotPainter::fBackBox, TGLPlotPainter::fBoxCut, Form(), TGLPlotPainter::fXOZSectionPos, TGLPlotPainter::fYOZSectionPos, TGLPlotBox::Get3DBox(), gROOT, gVirtualX, Info, TGLBoxCut::IsActive(), kButton1Double, kKey_C, kKey_c, kKeyPress, TGLPlotPainter::Paint(), TROOT::ProcessLineFast(), TGLBoxCut::TurnOnOff(), TGLVertex3::X(), X, TGLVertex3::Y(), and Y.

Bool_t TGLLegoPainter::InitGeometryCartesian (  )  [private]

Definition at line 94 of file TGLLegoPainter.cxx.

References ClampZ(), TGLPlotPainter::fBackBox, TGLPlotPainter::fCoord, fDrawErrors, TGLPlotPainter::fHist, fMinMaxVal, fMinZ, TGLPlotPainter::fUpdateSelection, TGLPlotPainter::fXAxis, fXEdges, TGLPlotPainter::fXOYSectionPos, TGLPlotPainter::fXOZSectionPos, TGLPlotPainter::fYAxis, fYEdges, TGLPlotPainter::fYOZSectionPos, TGLPlotPainter::fZAxis, TGLPlotPainter::fZLevels, TGLPlotBox::Get3DBox(), TH1::GetBarOffset(), TH1::GetBarWidth(), TH1::GetBinContent(), TAxis::GetBinLowEdge(), TAxis::GetBinWidth(), TGLPlotCoordinates::GetFirstXBin(), TGLPlotCoordinates::GetFirstYBin(), TGLPlotCoordinates::GetLastXBin(), TGLPlotCoordinates::GetLastYBin(), TGLPlotCoordinates::GetNXBins(), TGLPlotCoordinates::GetNYBins(), TGLPlotCoordinates::GetXLog(), TGLPlotCoordinates::GetXRangeScaled(), TGLPlotCoordinates::GetXScale(), TGLPlotCoordinates::GetYLog(), TGLPlotCoordinates::GetYRangeScaled(), TGLPlotCoordinates::GetYScale(), TGLPlotCoordinates::GetZRange(), TGLPlotCoordinates::GetZRangeScaled(), TGLPlotCoordinates::GetZScale(), i, j, kFALSE, kTRUE, TMath::Log10(), low, TMath::Max(), TMath::Min(), TGLPlotCoordinates::Modified(), TGLPlotCoordinates::ResetModified(), TGLPlotBox::SetPlotBox(), TGLPlotCoordinates::SetRanges(), Rgl::SetZLevels(), val, TGLVertex3::X(), X, TGLVertex3::Y(), Y, and TGLVertex3::Z().

Referenced by InitGeometry().

Bool_t TGLLegoPainter::InitGeometryPolar (  )  [private]

Definition at line 196 of file TGLLegoPainter.cxx.

References ClampZ(), TMath::Cos(), TGLPlotPainter::fBackBox, TGLPlotPainter::fCoord, fCosSinTableX, TGLPlotPainter::fHist, fMinMaxVal, fMinZ, TGLPlotPainter::fUpdateSelection, TGLPlotPainter::fXAxis, TGLPlotPainter::fYAxis, fYEdges, TGLPlotBox::Get3DBox(), TH1::GetBinContent(), TAxis::GetBinLowEdge(), TAxis::GetBinUpEdge(), TGLPlotCoordinates::GetFirstXBin(), TGLPlotCoordinates::GetFirstYBin(), TGLPlotCoordinates::GetLastXBin(), TGLPlotCoordinates::GetLastYBin(), TGLPlotCoordinates::GetNXBins(), TGLPlotCoordinates::GetNYBins(), TAxis::GetXmax(), TAxis::GetXmin(), TGLPlotCoordinates::GetXRangeScaled(), TGLPlotCoordinates::GetYLength(), TGLPlotCoordinates::GetYRange(), TGLPlotCoordinates::GetYRangeScaled(), TGLPlotCoordinates::GetYScale(), TGLPlotCoordinates::GetZRangeScaled(), i, j, kFALSE, kTRUE, TMath::Max(), TMath::Min(), TGLPlotCoordinates::Modified(), TGLPlotCoordinates::ResetModified(), TGLPlotBox::SetPlotBox(), TGLPlotCoordinates::SetRanges(), TMath::Sin(), TMath::TwoPi(), val, and TGLVertex3::Z().

Referenced by InitGeometry().

Bool_t TGLLegoPainter::InitGeometryCylindrical (  )  [private]

Definition at line 255 of file TGLLegoPainter.cxx.

References TMath::Cos(), TGLPlotPainter::fBackBox, TGLPlotPainter::fCoord, fCosSinTableX, TGLPlotPainter::fHist, fMinMaxVal, fMinZ, TGLPlotPainter::fUpdateSelection, TGLPlotPainter::fXAxis, TGLPlotPainter::fYAxis, fYEdges, TH1::GetBinContent(), TAxis::GetBinLowEdge(), TAxis::GetBinUpEdge(), TGLPlotCoordinates::GetFirstXBin(), TGLPlotCoordinates::GetFirstYBin(), TGLPlotCoordinates::GetLastXBin(), TGLPlotCoordinates::GetLastYBin(), TGLPlotCoordinates::GetNXBins(), TGLPlotCoordinates::GetNYBins(), TAxis::GetXmax(), TAxis::GetXmin(), TGLPlotCoordinates::GetXRangeScaled(), TGLPlotCoordinates::GetYLog(), TGLPlotCoordinates::GetYRangeScaled(), TGLPlotCoordinates::GetYScale(), TGLPlotCoordinates::GetZRange(), TGLPlotCoordinates::GetZRangeScaled(), i, j, kFALSE, kTRUE, TMath::Log10(), TMath::Max(), TMath::Min(), TGLPlotCoordinates::Modified(), TGLPlotCoordinates::ResetModified(), TGLPlotBox::SetPlotBox(), TGLPlotCoordinates::SetRanges(), TMath::Sin(), TMath::TwoPi(), and val.

Referenced by InitGeometry().

Bool_t TGLLegoPainter::InitGeometrySpherical (  )  [private]

Definition at line 317 of file TGLLegoPainter.cxx.

References TMath::Cos(), TGLPlotPainter::fBackBox, TGLPlotPainter::fCoord, fCosSinTableX, fCosSinTableY, TGLPlotPainter::fHist, fMinMaxVal, fMinZ, TGLPlotPainter::fXAxis, TGLPlotPainter::fYAxis, TH1::GetBinContent(), TAxis::GetBinLowEdge(), TAxis::GetBinUpEdge(), TGLPlotCoordinates::GetFirstXBin(), TGLPlotCoordinates::GetFirstYBin(), TGLPlotCoordinates::GetLastXBin(), TGLPlotCoordinates::GetLastYBin(), TGLPlotCoordinates::GetNXBins(), TGLPlotCoordinates::GetNYBins(), TAxis::GetXmax(), TAxis::GetXmin(), TGLPlotCoordinates::GetXRangeScaled(), TGLPlotCoordinates::GetYRangeScaled(), TGLPlotCoordinates::GetZRange(), TGLPlotCoordinates::GetZRangeScaled(), i, j, kFALSE, kTRUE, TMath::Max(), TMath::Min(), TMath::Pi(), TGLPlotBox::SetPlotBox(), TGLPlotCoordinates::SetRanges(), TMath::Sin(), TMath::TwoPi(), and val.

Referenced by InitGeometry().

void TGLLegoPainter::InitGL (  )  const [private, virtual]

Implements TGLPlotPainter.

Definition at line 456 of file TGLLegoPainter.cxx.

References GL_BACK, GL_CULL_FACE, GL_DEPTH_TEST, GL_LIGHT0, GL_LIGHT_MODEL_TWO_SIDE, GL_LIGHTING, GL_TRUE, glCullFace(), glEnable(), and glLightModeli().

void TGLLegoPainter::DeInitGL (  )  const [private, virtual]

Implements TGLPlotPainter.

Definition at line 470 of file TGLLegoPainter.cxx.

References GL_CULL_FACE, GL_DEPTH_TEST, GL_FALSE, GL_LIGHT0, GL_LIGHT_MODEL_TWO_SIDE, GL_LIGHTING, glDisable(), and glLightModeli().

void TGLLegoPainter::DrawPlot (  )  const [private, virtual]

Implements TGLPlotPainter.

Definition at line 481 of file TGLLegoPainter.cxx.

References DrawLegoCartesian(), DrawLegoCylindrical(), DrawLegoPolar(), DrawLegoSpherical(), TGLPlotPainter::fCoord, TGLPlotCoordinates::GetCoordType(), kGLCartesian, kGLCylindrical, kGLPolar, and kGLSpherical.

void TGLLegoPainter::DrawLegoCartesian (  )  const [private]

Definition at line 502 of file TGLLegoPainter.cxx.

References ClampZ(), TGLLevelPalette::DisableTexture(), TGLPlotBox::DrawBox(), Rgl::DrawBoxFront(), Rgl::DrawBoxFrontTextured(), Rgl::DrawCylinder(), Rgl::DrawError(), DrawPalette(), TGLPlotPainter::DrawSections(), TGLLevelPalette::EnableTexture(), TGLPlotPainter::fBackBox, TGLPlotPainter::fCoord, fDrawErrors, TGLPlotPainter::fDrawPalette, TGLPlotPainter::fHighColor, TGLPlotPainter::fHist, fLegoType, fMinZ, fPalette, fQuadric, TGLPlotPainter::fSelectedPart, TGLPlotPainter::fSelectionBase, TGLPlotPainter::fSelectionPass, fXEdges, TGLPlotPainter::fXOZSectionPos, fYEdges, TGLPlotPainter::fYOZSectionPos, TGLPlotPainter::fZLevels, TGLPlotBox::Get3DBox(), TH1::GetCellContent(), TH1::GetCellError(), TGLPlotCoordinates::GetCoordType(), TGLPlotCoordinates::GetFactor(), TGLPlotCoordinates::GetFirstXBin(), TGLPlotCoordinates::GetFirstYBin(), TGLPlotBox::GetFrontPoint(), TGLPlotCoordinates::GetLastXBin(), TGLPlotCoordinates::GetLastYBin(), TGLPlotCoordinates::GetNYBins(), TGLLevelPalette::GetTexCoord(), GL_BLEND, GL_CULL_FACE, GL_EMISSION, GL_FILL, GL_FRONT, GL_LIGHTING, GL_LINE, GL_LINE_SMOOTH, GL_LINE_SMOOTH_HINT, GL_MODULATE, GL_NICEST, GL_ONE_MINUS_SRC_ALPHA, GL_POLYGON_OFFSET_FILL, GL_SRC_ALPHA, glBlendFunc(), glColor3d(), glColor4d(), glDisable(), glEnable(), glHint(), glMaterialfv(), glPolygonMode(), glPolygonOffset(), Rgl::gNullEmission, Rgl::gOrangeEmission, i, j, kColorLevel, kColorSimple, kCylindricBars, kFALSE, kGLCartesian, kTRUE, Rgl::ObjectIDToColor(), PreparePalette(), SetLegoColor(), TGLVertex3::X(), and TGLVertex3::Y().

Referenced by DrawPlot().

void TGLLegoPainter::DrawLegoPolar (  )  const [private]

Definition at line 619 of file TGLLegoPainter.cxx.

References ClampZ(), TGLLevelPalette::DisableTexture(), DrawPalette(), Rgl::DrawTrapezoid(), Rgl::DrawTrapezoidTextured(), TGLLevelPalette::EnableTexture(), TGLPlotPainter::fCoord, fCosSinTableX, TGLPlotPainter::fDrawPalette, TGLPlotPainter::fHighColor, TGLPlotPainter::fHist, fLegoType, fMinZ, fPalette, TGLPlotPainter::fSelectedPart, TGLPlotPainter::fSelectionBase, TGLPlotPainter::fSelectionPass, fYEdges, TH1::GetCellContent(), TGLPlotCoordinates::GetFirstXBin(), TGLPlotCoordinates::GetFirstYBin(), TGLPlotCoordinates::GetNYBins(), TGLLevelPalette::GetTexCoord(), GL_BLEND, GL_EMISSION, GL_FILL, GL_FRONT, GL_LIGHTING, GL_LINE, GL_LINE_SMOOTH, GL_LINE_SMOOTH_HINT, GL_MODULATE, GL_NICEST, GL_ONE_MINUS_SRC_ALPHA, GL_POLYGON_OFFSET_FILL, GL_SRC_ALPHA, glBlendFunc(), glColor3d(), glDisable(), glEnable(), glHint(), glMaterialfv(), glPolygonMode(), glPolygonOffset(), Rgl::gNullEmission, Rgl::gOrangeEmission, i, j, kColorLevel, kColorSimple, kFALSE, kTRUE, Rgl::ObjectIDToColor(), points, PreparePalette(), and SetLegoColor().

Referenced by DrawPlot().

void TGLLegoPainter::DrawLegoCylindrical (  )  const [private]

Definition at line 715 of file TGLLegoPainter.cxx.

References TGLLevelPalette::DisableTexture(), DrawPalette(), Rgl::DrawTrapezoid(), Rgl::DrawTrapezoidTextured2(), TGLLevelPalette::EnableTexture(), TGLPlotPainter::fCoord, fCosSinTableX, TGLPlotPainter::fDrawPalette, TGLPlotPainter::fHighColor, TGLPlotPainter::fHist, fLegoType, fMinZ, fPalette, TGLPlotPainter::fSelectedPart, TGLPlotPainter::fSelectionBase, TGLPlotPainter::fSelectionPass, fYEdges, TH1::GetCellContent(), TGLPlotCoordinates::GetFirstXBin(), TGLPlotCoordinates::GetFirstYBin(), TStyle::GetLegoInnerR(), TGLPlotCoordinates::GetNYBins(), TGLLevelPalette::GetTexCoord(), TGLPlotCoordinates::GetXScale(), TGLPlotCoordinates::GetZLength(), TGLPlotCoordinates::GetZRange(), GL_BLEND, GL_EMISSION, GL_FILL, GL_FRONT, GL_LIGHTING, GL_LINE, GL_LINE_SMOOTH, GL_LINE_SMOOTH_HINT, GL_MODULATE, GL_NICEST, GL_ONE_MINUS_SRC_ALPHA, GL_POLYGON_OFFSET_FILL, GL_SRC_ALPHA, glBlendFunc(), glColor3d(), glDisable(), glEnable(), glHint(), glMaterialfv(), glPolygonMode(), glPolygonOffset(), Rgl::gNullEmission, Rgl::gOrangeEmission, gStyle, i, j, kColorLevel, kColorSimple, kFALSE, kTRUE, Rgl::ObjectIDToColor(), points, PreparePalette(), SetLegoColor(), and ROOT::Math::swap().

Referenced by DrawPlot().

void TGLLegoPainter::DrawLegoSpherical (  )  const [private]

Definition at line 822 of file TGLLegoPainter.cxx.

References TGLLevelPalette::DisableTexture(), DrawPalette(), Rgl::DrawTrapezoid(), Rgl::DrawTrapezoidTextured(), TGLLevelPalette::EnableTexture(), TGLPlotPainter::fCoord, fCosSinTableX, fCosSinTableY, TGLPlotPainter::fDrawPalette, TGLPlotPainter::fHighColor, TGLPlotPainter::fHist, fLegoType, fMinZ, fPalette, TGLPlotPainter::fSelectedPart, TGLPlotPainter::fSelectionBase, TGLPlotPainter::fSelectionPass, TH1::GetCellContent(), TGLPlotCoordinates::GetFirstXBin(), TGLPlotCoordinates::GetFirstYBin(), TStyle::GetLegoInnerR(), TGLPlotCoordinates::GetNYBins(), TGLLevelPalette::GetTexCoord(), TGLPlotCoordinates::GetZLength(), TGLPlotCoordinates::GetZRange(), GL_BLEND, GL_EMISSION, GL_FILL, GL_FRONT, GL_LIGHTING, GL_LINE, GL_LINE_SMOOTH, GL_LINE_SMOOTH_HINT, GL_MODULATE, GL_NICEST, GL_ONE_MINUS_SRC_ALPHA, GL_POLYGON_OFFSET_FILL, GL_SRC_ALPHA, glBlendFunc(), glColor3d(), glDisable(), glEnable(), glHint(), glMaterialfv(), glPolygonMode(), glPolygonOffset(), Rgl::gNullEmission, Rgl::gOrangeEmission, gStyle, i, j, kColorLevel, kColorSimple, kFALSE, kTRUE, Rgl::ObjectIDToColor(), points, PreparePalette(), SetLegoColor(), and ROOT::Math::swap().

Referenced by DrawPlot().

void TGLLegoPainter::SetLegoColor (  )  const [private]

Definition at line 958 of file TGLLegoPainter.cxx.

References c, TGLPlotPainter::fHist, fLegoType, TROOT::GetColor(), TAttFill::GetFillColor(), GL_DIFFUSE, GL_FRONT_AND_BACK, GL_SHININESS, GL_SPECULAR, glMaterialf(), glMaterialfv(), gROOT, kColorLevel, and kWhite.

Referenced by DrawLegoCartesian(), DrawLegoCylindrical(), DrawLegoPolar(), and DrawLegoSpherical().

void TGLLegoPainter::DrawSectionXOZ (  )  const [private, virtual]

Implements TGLPlotPainter.

Definition at line 974 of file TGLLegoPainter.cxx.

References ClampZ(), TGLPlotPainter::fCoord, TGLPlotPainter::fHist, fMinZ, fXEdges, TGLPlotPainter::fXOZSectionPos, fYEdges, TH1::GetBinContent(), TGLPlotCoordinates::GetFirstXBin(), TGLPlotCoordinates::GetFirstYBin(), GL_LINE_LOOP, glBegin(), glColor3d(), glEnd(), glLineWidth(), glVertex3d(), and i.

void TGLLegoPainter::DrawSectionYOZ (  )  const [private, virtual]

Implements TGLPlotPainter.

Definition at line 1009 of file TGLLegoPainter.cxx.

References ClampZ(), TGLPlotPainter::fCoord, TGLPlotPainter::fHist, fMinZ, fXEdges, fYEdges, TGLPlotPainter::fYOZSectionPos, TH1::GetBinContent(), TGLPlotCoordinates::GetFirstXBin(), TGLPlotCoordinates::GetFirstYBin(), GL_LINE_LOOP, glBegin(), glColor3d(), glEnd(), glLineWidth(), glVertex3d(), and i.

void TGLLegoPainter::DrawSectionXOY (  )  const [private, virtual]

Implements TGLPlotPainter.

Definition at line 1044 of file TGLLegoPainter.cxx.

Bool_t TGLLegoPainter::ClampZ ( Double_t zVal  )  const [private]

Definition at line 1070 of file TGLLegoPainter.cxx.

References TGLPlotPainter::fBackBox, TGLPlotPainter::fCoord, TGLPlotBox::Get3DBox(), TGLPlotCoordinates::GetZLog(), TGLPlotCoordinates::GetZScale(), kFALSE, kTRUE, TMath::Log10(), TGLVertex3::Z(), and Z.

Referenced by DrawLegoCartesian(), DrawLegoPolar(), DrawSectionXOZ(), DrawSectionYOZ(), InitGeometryCartesian(), and InitGeometryPolar().

Bool_t TGLLegoPainter::PreparePalette (  )  const [private]

Definition at line 1092 of file TGLLegoPainter.cxx.

References TGLPlotPainter::fHist, fMinMaxVal, fMinZ, fPalette, TGLLevelPalette::GeneratePalette(), TStyle::GetNumberContours(), gStyle, kFALSE, TH1::kUserContour, TObject::ResetBit(), and TObject::TestBit().

Referenced by DrawLegoCartesian(), DrawLegoCylindrical(), DrawLegoPolar(), and DrawLegoSpherical().

void TGLLegoPainter::DrawPalette (  )  const [private]

Definition at line 1110 of file TGLLegoPainter.cxx.

References TGLPlotCamera::Apply(), Rgl::DrawPalette(), TGLPlotPainter::fCamera, TGLPlotPainter::fPadPhi, TGLPlotPainter::fPadTheta, fPalette, glFinish(), and TGLPlotCamera::SetCamera().

Referenced by DrawLegoCartesian(), DrawLegoCylindrical(), DrawLegoPolar(), and DrawLegoSpherical().

void TGLLegoPainter::DrawPaletteAxis (  )  const [private, virtual]

Reimplemented from TGLPlotPainter.

Definition at line 1129 of file TGLLegoPainter.cxx.

References Rgl::DrawPaletteAxis(), TGLPlotPainter::fCamera, TGLPlotPainter::fCoord, fMinMaxVal, TGLPlotCoordinates::GetCoordType(), TGLPlotCoordinates::GetZLog(), gVirtualX, TVirtualX::kCopy, kFALSE, and kGLCartesian.

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

char* TGLLegoPainter::GetPlotInfo ( Int_t  px,
Int_t  py 
) [virtual]

Implements TVirtualGLPainter.

Bool_t TGLLegoPainter::InitGeometry (  )  [virtual]

Implements TGLPlotPainter.

void TGLLegoPainter::StartPan ( Int_t  px,
Int_t  py 
) [virtual]

Implements TGLPlotPainter.

void TGLLegoPainter::Pan ( Int_t  px,
Int_t  py 
) [virtual]

Implements TVirtualGLPainter.

void TGLLegoPainter::AddOption ( const TString stringOption  )  [virtual]

Implements TGLPlotPainter.

void TGLLegoPainter::ProcessEvent ( Int_t  event,
Int_t  px,
Int_t  py 
) [virtual]

Implements TGLPlotPainter.

Bool_t TGLLegoPainter::InitGeometryCartesian (  )  [private]

Bool_t TGLLegoPainter::InitGeometryPolar (  )  [private]

Bool_t TGLLegoPainter::InitGeometryCylindrical (  )  [private]

Bool_t TGLLegoPainter::InitGeometrySpherical (  )  [private]

void TGLLegoPainter::InitGL (  )  const [private, virtual]

Implements TGLPlotPainter.

void TGLLegoPainter::DeInitGL (  )  const [private, virtual]

Implements TGLPlotPainter.

void TGLLegoPainter::DrawPlot (  )  const [private, virtual]

Implements TGLPlotPainter.

void TGLLegoPainter::DrawLegoCartesian (  )  const [private]

void TGLLegoPainter::DrawLegoPolar (  )  const [private]

void TGLLegoPainter::DrawLegoCylindrical (  )  const [private]

void TGLLegoPainter::DrawLegoSpherical (  )  const [private]

void TGLLegoPainter::SetLegoColor (  )  const [private]

void TGLLegoPainter::DrawSectionXOZ (  )  const [private, virtual]

Implements TGLPlotPainter.

void TGLLegoPainter::DrawSectionYOZ (  )  const [private, virtual]

Implements TGLPlotPainter.

void TGLLegoPainter::DrawSectionXOY (  )  const [private, virtual]

Implements TGLPlotPainter.

Bool_t TGLLegoPainter::ClampZ ( Double_t zVal  )  const [private]

Bool_t TGLLegoPainter::PreparePalette (  )  const [private]

void TGLLegoPainter::DrawPalette (  )  const [private]

void TGLLegoPainter::DrawPaletteAxis (  )  const [private, virtual]

Reimplemented from TGLPlotPainter.


Member Data Documentation

ELegoType TGLLegoPainter::fLegoType [mutable, private]

Definition at line 45 of file TGLLegoPainter.h.

Referenced by AddOption(), DrawLegoCartesian(), DrawLegoCylindrical(), DrawLegoPolar(), DrawLegoSpherical(), and SetLegoColor().

Double_t TGLLegoPainter::fMinZ [private]

Definition at line 46 of file TGLLegoPainter.h.

Referenced by DrawLegoCartesian(), DrawLegoCylindrical(), DrawLegoPolar(), DrawLegoSpherical(), DrawSectionXOZ(), DrawSectionYOZ(), InitGeometryCartesian(), InitGeometryCylindrical(), InitGeometryPolar(), InitGeometrySpherical(), and PreparePalette().

Rgl::Range_t TGLLegoPainter::fMinMaxVal [private]

Definition at line 47 of file TGLLegoPainter.h.

Referenced by DrawPaletteAxis(), InitGeometryCartesian(), InitGeometryCylindrical(), InitGeometryPolar(), InitGeometrySpherical(), and PreparePalette().

std::vector<Rgl::Range_t> TGLLegoPainter::fXEdges [private]

Definition at line 49 of file TGLLegoPainter.h.

Referenced by DrawLegoCartesian(), DrawSectionXOZ(), DrawSectionYOZ(), and InitGeometryCartesian().

std::vector<Rgl::Range_t> TGLLegoPainter::fYEdges [private]

Definition at line 50 of file TGLLegoPainter.h.

Referenced by DrawLegoCartesian(), DrawLegoCylindrical(), DrawLegoPolar(), DrawSectionXOZ(), DrawSectionYOZ(), InitGeometryCartesian(), InitGeometryCylindrical(), and InitGeometryPolar().

std::vector<CosSin_t> TGLLegoPainter::fCosSinTableX [private]

Definition at line 53 of file TGLLegoPainter.h.

Referenced by DrawLegoCylindrical(), DrawLegoPolar(), DrawLegoSpherical(), InitGeometryCylindrical(), InitGeometryPolar(), and InitGeometrySpherical().

std::vector<CosSin_t> TGLLegoPainter::fCosSinTableY [private]

Definition at line 54 of file TGLLegoPainter.h.

Referenced by DrawLegoSpherical(), and InitGeometrySpherical().

TString TGLLegoPainter::fBinInfo [private]

Definition at line 55 of file TGLLegoPainter.h.

Referenced by GetPlotInfo().

TGLQuadric TGLLegoPainter::fQuadric [mutable, private]

Definition at line 56 of file TGLLegoPainter.h.

Referenced by DrawLegoCartesian().

Bool_t TGLLegoPainter::fDrawErrors [private]

Definition at line 57 of file TGLLegoPainter.h.

Referenced by AddOption(), DrawLegoCartesian(), and InitGeometryCartesian().

TGLLevelPalette TGLLegoPainter::fPalette [mutable, private]

Definition at line 59 of file TGLLegoPainter.h.

Referenced by DrawLegoCartesian(), DrawLegoCylindrical(), DrawLegoPolar(), DrawLegoSpherical(), DrawPalette(), and PreparePalette().

std::vector<Double_t> TGLLegoPainter::fColorLevels [mutable, private]

Definition at line 60 of file TGLLegoPainter.h.

std::vector<Rgl::Range_t> TGLLegoPainter::fXEdges [private]

Definition at line 49 of file TGLLegoPainter.h.

std::vector<Rgl::Range_t> TGLLegoPainter::fYEdges [private]

Definition at line 50 of file TGLLegoPainter.h.

std::vector<CosSin_t> TGLLegoPainter::fCosSinTableX [private]

Definition at line 53 of file TGLLegoPainter.h.

std::vector<CosSin_t> TGLLegoPainter::fCosSinTableY [private]

Definition at line 54 of file TGLLegoPainter.h.

std::vector<Double_t> TGLLegoPainter::fColorLevels [mutable, private]

Definition at line 60 of file TGLLegoPainter.h.


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