TGLBoxPainter Class Reference

#include <TGLBoxPainter.h>

Inheritance diagram for TGLBoxPainter:

TGLPlotPainter TGLPlotPainter TVirtualGLPainter TVirtualGLPainter TVirtualGLPainter TVirtualGLPainter List of all members.

Public Member Functions

 TGLBoxPainter (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)
 TGLBoxPainter (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  EBoxType
enum  EBoxType

Private Member Functions

 TGLBoxPainter (const TGLBoxPainter &)
TGLBoxPainteroperator= (const TGLBoxPainter &)
void InitGL () const
void DeInitGL () const
void DrawPlot () const
void SetPlotColor () const
void DrawSectionXOZ () const
void DrawSectionYOZ () const
void DrawSectionXOY () const
void DrawPalette () const
void DrawPaletteAxis () const
Bool_t HasSections () const
 TGLBoxPainter (const TGLBoxPainter &)
TGLBoxPainteroperator= (const TGLBoxPainter &)
void InitGL () const
void DeInitGL () const
void DrawPlot () const
void SetPlotColor () const
void DrawSectionXOZ () const
void DrawSectionYOZ () const
void DrawSectionXOY () const
void DrawPalette () const
void DrawPaletteAxis () const
Bool_t HasSections () const

Private Attributes

TGLTH3Slice fXOZSlice
TGLTH3Slice fYOZSlice
TGLTH3Slice fXOYSlice
EBoxType fType
TString fPlotInfo
Rgl::Range_t fMinMaxVal
TGLQuadric fQuadric

Detailed Description

Definition at line 32 of file TGLBoxPainter.h.


Member Enumeration Documentation

enum TGLBoxPainter::EBoxType [private]

Definition at line 38 of file TGLBoxPainter.h.

enum TGLBoxPainter::EBoxType [private]

Definition at line 38 of file TGLBoxPainter.h.


Constructor & Destructor Documentation

TGLBoxPainter::TGLBoxPainter ( const TGLBoxPainter  )  [private]

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

TGLBoxPainter::TGLBoxPainter ( const TGLBoxPainter  )  [private]

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


Member Function Documentation

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

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

Implements TVirtualGLPainter.

Definition at line 48 of file TGLBoxPainter.cxx.

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

Bool_t TGLBoxPainter::InitGeometry (  )  [virtual]

Implements TGLPlotPainter.

Definition at line 77 of file TGLBoxPainter.cxx.

References TGLPlotPainter::fBackBox, TGLPlotPainter::fCamera, TGLPlotPainter::fCoord, TGLPlotPainter::fHist, fMinMaxVal, TGLPlotPainter::fUpdateSelection, TGLPlotPainter::fXOYSectionPos, fXOYSlice, TGLPlotPainter::fXOZSectionPos, fXOZSlice, TGLPlotPainter::fYOZSectionPos, fYOZSlice, TGLPlotBox::Get3DBox(), TH1::GetBinContent(), TGLPlotCoordinates::GetFirstXBin(), TGLPlotCoordinates::GetFirstYBin(), TGLPlotCoordinates::GetFirstZBin(), TGLPlotCoordinates::GetLastXBin(), TGLPlotCoordinates::GetLastYBin(), TGLPlotCoordinates::GetLastZBin(), TGLPlotCoordinates::GetXRangeScaled(), TGLPlotCoordinates::GetYRangeScaled(), TGLPlotCoordinates::GetZRangeScaled(), kFALSE, kTRUE, TMath::Max(), TMath::Min(), TGLPlotCoordinates::Modified(), TGLPlotCoordinates::ResetModified(), TGLTH3Slice::SetMinMax(), TGLPlotBox::SetPlotBox(), TGLPlotCoordinates::SetRanges(), TGLPlotCamera::SetViewVolume(), TGLPlotCoordinates::SetXLog(), TGLPlotCoordinates::SetYLog(), TGLPlotCoordinates::SetZLog(), TGLVertex3::X(), TGLVertex3::Y(), and TGLVertex3::Z().

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

Implements TGLPlotPainter.

Definition at line 120 of file TGLBoxPainter.cxx.

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

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

Implements TVirtualGLPainter.

Definition at line 132 of file TGLBoxPainter.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 TGLBoxPainter::AddOption ( const TString stringOption  )  [virtual]

Implements TGLPlotPainter.

Definition at line 176 of file TGLBoxPainter.cxx.

References TGLPlotPainter::fDrawPalette, fType, kBox, kBox1, kFALSE, kNPOS, kTRUE, and option.

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

Implements TGLPlotPainter.

Definition at line 189 of file TGLBoxPainter.cxx.

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

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

Implements TGLPlotPainter.

Definition at line 214 of file TGLBoxPainter.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 TGLBoxPainter::DeInitGL (  )  const [private, virtual]

Implements TGLPlotPainter.

Definition at line 228 of file TGLBoxPainter.cxx.

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

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

Implements TGLPlotPainter.

Definition at line 326 of file TGLBoxPainter.cxx.

References TMath::Abs(), TGLBoxCut::DrawBox(), TGLPlotBox::DrawBox(), Rgl::DrawBoxFront(), DrawMinusSigns(), DrawPalette(), TGLPlotPainter::DrawSections(), Rgl::DrawSphere(), TGLPlotPainter::fBackBox, TGLPlotPainter::fBoxCut, TGLPlotPainter::fCoord, TGLPlotPainter::fDrawPalette, TGLPlotPainter::fHighColor, TGLPlotPainter::fHist, fMinMaxVal, fQuadric, TGLPlotPainter::fSelectedPart, TGLPlotPainter::fSelectionBase, TGLPlotPainter::fSelectionPass, fType, TGLPlotPainter::fXAxis, TGLPlotPainter::fYAxis, TGLPlotPainter::fZAxis, TGLPlotPainter::fZLevels, TGLPlotBox::Get2DBox(), TH1::GetBinContent(), TAxis::GetBinLowEdge(), TAxis::GetBinUpEdge(), TAxis::GetBinWidth(), TGLPlotCoordinates::GetFirstXBin(), TGLPlotCoordinates::GetFirstYBin(), TGLPlotCoordinates::GetFirstZBin(), TGLPlotBox::GetFrontPoint(), TGLPlotCoordinates::GetLastXBin(), TGLPlotCoordinates::GetLastYBin(), TGLPlotCoordinates::GetLastZBin(), TGLPlotCoordinates::GetNXBins(), TGLPlotCoordinates::GetNYBins(), TGLPlotCoordinates::GetNZBins(), TGLPlotCoordinates::GetXScale(), TGLPlotCoordinates::GetYScale(), TGLPlotCoordinates::GetZScale(), GL_BLEND, GL_CULL_FACE, GL_EMISSION, GL_FILL, GL_FRONT, GL_LIGHTING, GL_LINE, GL_LINE_SMOOTH, GL_LINE_SMOOTH_HINT, GL_NICEST, GL_ONE_MINUS_SRC_ALPHA, GL_POLYGON_OFFSET_FILL, GL_SRC_ALPHA, glBlendFunc(), glColor4d(), glDisable(), glEnable(), glHint(), glMaterialfv(), glPolygonMode(), glPolygonOffset(), Rgl::gNullEmission, Rgl::gOrangeEmission, HasSections(), i, TGLBoxCut::IsActive(), TGLBoxCut::IsInCut(), j, k, kBox, kBox1, kInit, TMath::Max(), Rgl::ObjectIDToColor(), SetPlotColor(), w, and TGLVertex3::Y().

void TGLBoxPainter::SetPlotColor (  )  const [private]

Definition at line 461 of file TGLBoxPainter.cxx.

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

Referenced by DrawPlot().

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

Implements TGLPlotPainter.

Definition at line 478 of file TGLBoxPainter.cxx.

References TGLTH3Slice::DrawSlice(), TGLPlotPainter::fCoord, TGLPlotPainter::fSelectionPass, TGLPlotPainter::fXOZSectionPos, fXOZSlice, and TGLPlotCoordinates::GetYScale().

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

Implements TGLPlotPainter.

Definition at line 488 of file TGLBoxPainter.cxx.

References TGLTH3Slice::DrawSlice(), TGLPlotPainter::fCoord, TGLPlotPainter::fSelectionPass, TGLPlotPainter::fYOZSectionPos, fYOZSlice, and TGLPlotCoordinates::GetXScale().

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

Implements TGLPlotPainter.

Definition at line 498 of file TGLBoxPainter.cxx.

References TGLTH3Slice::DrawSlice(), TGLPlotPainter::fCoord, TGLPlotPainter::fSelectionPass, TGLPlotPainter::fXOYSectionPos, fXOYSlice, and TGLPlotCoordinates::GetZScale().

void TGLBoxPainter::DrawPalette (  )  const [private]

Definition at line 517 of file TGLBoxPainter.cxx.

References Rgl::DrawPalette(), TGLPlotPainter::fBackBox, TGLPlotPainter::fCamera, TGLPlotPainter::fPadPhi, TGLPlotPainter::fPadTheta, TGLPlotPainter::fXOYSectionPos, fXOYSlice, TGLPlotPainter::fXOZSectionPos, fXOZSlice, TGLPlotPainter::fYOZSectionPos, fYOZSlice, TGLPlotBox::Get3DBox(), TGLTH3Slice::GetPalette(), glFinish(), palette, X, Y, and Z.

Referenced by DrawPlot().

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

Reimplemented from TGLPlotPainter.

Definition at line 550 of file TGLBoxPainter.cxx.

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

Bool_t TGLBoxPainter::HasSections (  )  const [private]

Definition at line 508 of file TGLBoxPainter.cxx.

References TGLPlotPainter::fBackBox, TGLPlotPainter::fXOYSectionPos, TGLPlotPainter::fXOZSectionPos, TGLPlotPainter::fYOZSectionPos, TGLPlotBox::Get3DBox(), TGLVertex3::X(), TGLVertex3::Y(), and TGLVertex3::Z().

Referenced by DrawPaletteAxis(), DrawPlot(), and ProcessEvent().

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

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

Implements TVirtualGLPainter.

Bool_t TGLBoxPainter::InitGeometry (  )  [virtual]

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TVirtualGLPainter.

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

void TGLBoxPainter::SetPlotColor (  )  const [private]

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

void TGLBoxPainter::DrawPalette (  )  const [private]

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

Reimplemented from TGLPlotPainter.

Bool_t TGLBoxPainter::HasSections (  )  const [private]


Member Data Documentation

TGLTH3Slice TGLBoxPainter::fXOZSlice [private]

Definition at line 34 of file TGLBoxPainter.h.

Referenced by DrawPalette(), DrawSectionXOZ(), and InitGeometry().

TGLTH3Slice TGLBoxPainter::fYOZSlice [private]

Definition at line 35 of file TGLBoxPainter.h.

Referenced by DrawPalette(), DrawSectionYOZ(), and InitGeometry().

TGLTH3Slice TGLBoxPainter::fXOYSlice [private]

Definition at line 36 of file TGLBoxPainter.h.

Referenced by DrawPalette(), DrawSectionXOY(), and InitGeometry().

EBoxType TGLBoxPainter::fType [mutable, private]

Definition at line 43 of file TGLBoxPainter.h.

Referenced by AddOption(), and DrawPlot().

TString TGLBoxPainter::fPlotInfo [private]

Definition at line 45 of file TGLBoxPainter.h.

Referenced by GetPlotInfo().

Rgl::Range_t TGLBoxPainter::fMinMaxVal [private]

Definition at line 46 of file TGLBoxPainter.h.

Referenced by DrawPaletteAxis(), DrawPlot(), and InitGeometry().

TGLQuadric TGLBoxPainter::fQuadric [mutable, private]

Definition at line 48 of file TGLBoxPainter.h.

Referenced by DrawPlot().


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