TGLTF3Painter Class Reference

#include <TGLTF3Painter.h>

Inheritance diagram for TGLTF3Painter:

TGLPlotPainter TGLPlotPainter TVirtualGLPainter TVirtualGLPainter TVirtualGLPainter TVirtualGLPainter List of all members.

Public Member Functions

 TGLTF3Painter (TF3 *fun, 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)
 TGLTF3Painter (TF3 *fun, 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  ETF3Style
enum  ETF3Style

Private Member Functions

void InitGL () const
void DeInitGL () const
void DrawPlot () const
void DrawToSelectionBuffer () const
void DrawDefaultPlot () const
void DrawMaplePlot () const
void SetSurfaceColor () const
Bool_t HasSections () const
void DrawSectionXOZ () const
void DrawSectionYOZ () const
void DrawSectionXOY () const
void InitGL () const
void DeInitGL () const
void DrawPlot () const
void DrawToSelectionBuffer () const
void DrawDefaultPlot () const
void DrawMaplePlot () const
void SetSurfaceColor () const
Bool_t HasSections () const
void DrawSectionXOZ () const
void DrawSectionYOZ () const
void DrawSectionXOY () const

Private Attributes

ETF3Style fStyle
Rgl::Mc::TIsoMesh< Double_tfMesh
TF3fF3
TGLTH3Slice fXOZSlice
TGLTH3Slice fYOZSlice
TGLTH3Slice fXOYSlice
Rgl::Mc::TIsoMesh< Double_tfMesh
TF3fF3

Detailed Description

Definition at line 35 of file TGLTF3Painter.h.


Member Enumeration Documentation

enum TGLTF3Painter::ETF3Style [private]

Definition at line 37 of file TGLTF3Painter.h.

enum TGLTF3Painter::ETF3Style [private]

Definition at line 37 of file TGLTF3Painter.h.


Constructor & Destructor Documentation

TGLTF3Painter::TGLTF3Painter ( TF3 fun,
TH1 hist,
TGLPlotCamera camera,
TGLPlotCoordinates coord 
)

TGLTF3Painter::TGLTF3Painter ( TF3 fun,
TH1 hist,
TGLPlotCamera camera,
TGLPlotCoordinates coord 
)


Member Function Documentation

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

Implements TVirtualGLPainter.

Definition at line 49 of file TGLTF3Painter.cxx.

Bool_t TGLTF3Painter::InitGeometry (  )  [virtual]

Implements TGLPlotPainter.

Definition at line 57 of file TGLTF3Painter.cxx.

References Rgl::Mc::TMeshBuilder< DataSource, ValueType >::BuildMesh(), TGLPlotPainter::fBackBox, TGLPlotPainter::fCamera, TGLPlotPainter::fCoord, fF3, TGLPlotPainter::fHist, fMesh, TGLPlotPainter::fUpdateSelection, TGLPlotPainter::fXAxis, TGLPlotPainter::fXOYSectionPos, TGLPlotPainter::fXOZSectionPos, TGLPlotPainter::fYAxis, TGLPlotPainter::fYOZSectionPos, TGLPlotPainter::fZAxis, TGLPlotBox::Get3DBox(), TGLPlotCoordinates::GetXRangeScaled(), TGLPlotCoordinates::GetXScale(), TGLPlotCoordinates::GetYRangeScaled(), TGLPlotCoordinates::GetYScale(), TGLPlotCoordinates::GetZRangeScaled(), TGLPlotCoordinates::GetZScale(), kFALSE, kGLCartesian, kTRUE, TGLPlotCoordinates::Modified(), TGLPlotCoordinates::ResetModified(), TGLPlotCoordinates::SetCoordType(), TGLPlotBox::SetPlotBox(), TGLPlotCoordinates::SetRanges(), TGLPlotCamera::SetViewVolume(), TGLVertex3::X(), TGLVertex3::Y(), and TGLVertex3::Z().

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

Implements TGLPlotPainter.

Definition at line 92 of file TGLTF3Painter.cxx.

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

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

Implements TVirtualGLPainter.

Definition at line 102 of file TGLTF3Painter.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(), TGLPlotCamera::Pan(), TGLPlotPainter::RestoreModelviewMatrix(), TGLPlotPainter::RestoreProjectionMatrix(), TGLPlotPainter::SaveModelviewMatrix(), TGLPlotPainter::SaveProjectionMatrix(), and TGLPlotCamera::SetCamera().

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

Implements TGLPlotPainter.

Definition at line 147 of file TGLTF3Painter.cxx.

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

Implements TGLPlotPainter.

Definition at line 153 of file TGLTF3Painter.cxx.

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

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

Implements TGLPlotPainter.

Definition at line 183 of file TGLTF3Painter.cxx.

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

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

Implements TGLPlotPainter.

Definition at line 194 of file TGLTF3Painter.cxx.

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

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

Implements TGLPlotPainter.

Definition at line 286 of file TGLTF3Painter.cxx.

References TGLBoxCut::DrawBox(), TGLPlotBox::DrawBox(), DrawDefaultPlot(), DrawMaplePlot(), TGLPlotPainter::DrawSections(), DrawToSelectionBuffer(), TGLPlotPainter::fBackBox, TGLPlotPainter::fBoxCut, TGLPlotPainter::fHighColor, TGLPlotPainter::fSelectedPart, TGLPlotPainter::fSelectionPass, fStyle, TGLPlotPainter::fZLevels, TGLBoxCut::IsActive(), and kDefault.

void TGLTF3Painter::DrawToSelectionBuffer (  )  const [private]

Definition at line 205 of file TGLTF3Painter.cxx.

References Rgl::DrawMesh(), TGLPlotPainter::fBoxCut, TGLPlotPainter::fHighColor, fMesh, TGLPlotPainter::fSelectionBase, TGLBoxCut::IsActive(), and Rgl::ObjectIDToColor().

Referenced by DrawPlot().

void TGLTF3Painter::DrawDefaultPlot (  )  const [private]

Definition at line 217 of file TGLTF3Painter.cxx.

References Rgl::DrawMesh(), TGLPlotPainter::fBoxCut, fMesh, GL_BLEND, GL_FALSE, GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA, GL_TRUE, glBlendFunc(), glDepthMask(), glDisable(), glEnable(), HasSections(), TGLBoxCut::IsActive(), and SetSurfaceColor().

Referenced by DrawPlot().

void TGLTF3Painter::DrawMaplePlot (  )  const [private]

Definition at line 241 of file TGLTF3Painter.cxx.

References Rgl::DrawMapleMesh(), Rgl::DrawMesh(), TGLPlotPainter::fBoxCut, fMesh, fStyle, GL_BLEND, GL_FALSE, GL_FILL, GL_FRONT_AND_BACK, GL_LIGHTING, GL_LINE, GL_ONE_MINUS_SRC_ALPHA, GL_POLYGON_OFFSET_FILL, GL_SRC_ALPHA, GL_TRUE, glBlendFunc(), glColor4d(), glDepthMask(), glDisable(), glEnable(), glPolygonMode(), glPolygonOffset(), HasSections(), TGLBoxCut::IsActive(), kMaple1, and kMaple2.

Referenced by DrawPlot().

void TGLTF3Painter::SetSurfaceColor (  )  const [private]

Definition at line 309 of file TGLTF3Painter.cxx.

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

Referenced by DrawDefaultPlot().

Bool_t TGLTF3Painter::HasSections (  )  const [private]

Definition at line 327 of file TGLTF3Painter.cxx.

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

Referenced by DrawDefaultPlot(), DrawMaplePlot(), and ProcessEvent().

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

Implements TGLPlotPainter.

Definition at line 336 of file TGLTF3Painter.cxx.

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

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

Implements TGLPlotPainter.

Definition at line 345 of file TGLTF3Painter.cxx.

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

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

Implements TGLPlotPainter.

Definition at line 354 of file TGLTF3Painter.cxx.

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

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

Implements TVirtualGLPainter.

Bool_t TGLTF3Painter::InitGeometry (  )  [virtual]

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TVirtualGLPainter.

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

void TGLTF3Painter::DrawToSelectionBuffer (  )  const [private]

void TGLTF3Painter::DrawDefaultPlot (  )  const [private]

void TGLTF3Painter::DrawMaplePlot (  )  const [private]

void TGLTF3Painter::SetSurfaceColor (  )  const [private]

Bool_t TGLTF3Painter::HasSections (  )  const [private]

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.


Member Data Documentation

ETF3Style TGLTF3Painter::fStyle [private]

Definition at line 44 of file TGLTF3Painter.h.

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

Rgl::Mc::TIsoMesh<Double_t> TGLTF3Painter::fMesh [private]

Definition at line 46 of file TGLTF3Painter.h.

Referenced by DrawDefaultPlot(), DrawMaplePlot(), DrawToSelectionBuffer(), and InitGeometry().

TF3* TGLTF3Painter::fF3 [private]

Definition at line 47 of file TGLTF3Painter.h.

Referenced by InitGeometry(), and SetSurfaceColor().

TGLTH3Slice TGLTF3Painter::fXOZSlice [private]

Definition at line 49 of file TGLTF3Painter.h.

Referenced by DrawSectionXOZ().

TGLTH3Slice TGLTF3Painter::fYOZSlice [private]

Definition at line 50 of file TGLTF3Painter.h.

Referenced by DrawSectionYOZ().

TGLTH3Slice TGLTF3Painter::fXOYSlice [private]

Definition at line 51 of file TGLTF3Painter.h.

Referenced by DrawSectionXOY().

Rgl::Mc::TIsoMesh<Double_t> TGLTF3Painter::fMesh [private]

Definition at line 46 of file TGLTF3Painter.h.

TF3* TGLTF3Painter::fF3 [private]

Definition at line 47 of file TGLTF3Painter.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