TGLIsoPainter Class Reference

#include <TGLTF3Painter.h>

Inheritance diagram for TGLIsoPainter:

TGLPlotPainter TGLPlotPainter TVirtualGLPainter TVirtualGLPainter TVirtualGLPainter TVirtualGLPainter List of all members.

Public Member Functions

 TGLIsoPainter (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 &option)
void ProcessEvent (Int_t event, Int_t px, Int_t py)
 TGLIsoPainter (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 &option)
void ProcessEvent (Int_t event, Int_t px, Int_t py)

Private Types

typedef Rgl::Mc::TIsoMesh<
Float_t
Mesh_t
typedef std::list< Mesh_tMeshList_t
typedef std::list< Mesh_t
>::iterator 
MeshIter_t
typedef std::list< Mesh_t
>::const_iterator 
ConstMeshIter_t
typedef Rgl::Mc::TIsoMesh<
Float_t
Mesh_t
typedef std::list< Mesh_tMeshList_t
typedef std::list< Mesh_t
>::iterator 
MeshIter_t
typedef std::list< Mesh_t
>::const_iterator 
ConstMeshIter_t

Private Member Functions

void InitGL () const
void DeInitGL () const
void DrawPlot () const
void DrawSectionXOZ () const
void DrawSectionYOZ () const
void DrawSectionXOY () const
Bool_t HasSections () const
void SetSurfaceColor (Int_t ind) const
void SetMesh (Mesh_t &mesh, Double_t isoValue)
void DrawMesh (const Mesh_t &mesh, Int_t level) const
void FindMinMax ()
 TGLIsoPainter (const TGLIsoPainter &)
TGLIsoPainteroperator= (const TGLIsoPainter &)
void InitGL () const
void DeInitGL () const
void DrawPlot () const
void DrawSectionXOZ () const
void DrawSectionYOZ () const
void DrawSectionXOY () const
Bool_t HasSections () const
void SetSurfaceColor (Int_t ind) const
void SetMesh (Mesh_t &mesh, Double_t isoValue)
void DrawMesh (const Mesh_t &mesh, Int_t level) const
void FindMinMax ()
 TGLIsoPainter (const TGLIsoPainter &)
TGLIsoPainteroperator= (const TGLIsoPainter &)

Private Attributes

TGLTH3Slice fXOZSlice
TGLTH3Slice fYOZSlice
TGLTH3Slice fXOYSlice
Mesh_t fDummyMesh
MeshList_t fIsos
MeshList_t fCache
Rgl::Range_t fMinMax
TGLLevelPalette fPalette
std::vector< Double_tfColorLevels
Bool_t fInit
std::vector< Double_tfColorLevels

Detailed Description

Definition at line 91 of file TGLTF3Painter.h.


Member Typedef Documentation

typedef Rgl::Mc::TIsoMesh<Float_t> TGLIsoPainter::Mesh_t [private]

Definition at line 93 of file TGLTF3Painter.h.

typedef std::list<Mesh_t> TGLIsoPainter::MeshList_t [private]

Definition at line 94 of file TGLTF3Painter.h.

typedef std::list<Mesh_t>::iterator TGLIsoPainter::MeshIter_t [private]

Definition at line 95 of file TGLTF3Painter.h.

typedef std::list<Mesh_t>::const_iterator TGLIsoPainter::ConstMeshIter_t [private]

Definition at line 96 of file TGLTF3Painter.h.

typedef Rgl::Mc::TIsoMesh<Float_t> TGLIsoPainter::Mesh_t [private]

Definition at line 93 of file TGLTF3Painter.h.

typedef std::list<Mesh_t> TGLIsoPainter::MeshList_t [private]

Definition at line 94 of file TGLTF3Painter.h.

typedef std::list<Mesh_t>::iterator TGLIsoPainter::MeshIter_t [private]

Definition at line 95 of file TGLTF3Painter.h.

typedef std::list<Mesh_t>::const_iterator TGLIsoPainter::ConstMeshIter_t [private]

Definition at line 96 of file TGLTF3Painter.h.


Constructor & Destructor Documentation

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

TGLIsoPainter::TGLIsoPainter ( const TGLIsoPainter  )  [private]

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

TGLIsoPainter::TGLIsoPainter ( const TGLIsoPainter  )  [private]


Member Function Documentation

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

Implements TVirtualGLPainter.

Definition at line 383 of file TGLTF3Painter.cxx.

Bool_t TGLIsoPainter::InitGeometry (  )  [virtual]

Implements TGLPlotPainter.

Definition at line 392 of file TGLTF3Painter.cxx.

References Error, TGLPlotPainter::fBackBox, fCache, TGLPlotPainter::fCamera, fColorLevels, TGLPlotPainter::fCoord, fDummyMesh, TGLPlotPainter::fHist, FindMinMax(), fInit, fIsos, fMinMax, fPalette, TGLPlotPainter::fUpdateSelection, TGLPlotPainter::fXOYSectionPos, TGLPlotPainter::fXOZSectionPos, TGLPlotPainter::fYOZSectionPos, TGLLevelPalette::GeneratePalette(), TGLPlotBox::Get3DBox(), TH1::GetContour(), TH1::GetContourLevelPad(), TH1::GetDimension(), TH1::GetNbinsX(), TH1::GetNbinsY(), TH1::GetNbinsZ(), TH1::GetSumOfWeights(), TGLPlotCoordinates::GetXRangeScaled(), TGLPlotCoordinates::GetYRangeScaled(), TGLPlotCoordinates::GetZRangeScaled(), i, kFALSE, kGLCartesian, kTRUE, TH1::kUserContour, TGLPlotCoordinates::Modified(), TGLPlotCoordinates::ResetModified(), TGLPlotCoordinates::SetCoordType(), SetMesh(), TGLPlotBox::SetPlotBox(), TGLPlotCoordinates::SetRanges(), TGLPlotCamera::SetViewVolume(), TObject::TestBit(), TGLVertex3::X(), TGLVertex3::Y(), and TGLVertex3::Z().

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

Implements TGLPlotPainter.

Definition at line 479 of file TGLTF3Painter.cxx.

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

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

Implements TVirtualGLPainter.

Definition at line 489 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 TGLIsoPainter::AddOption ( const TString option  )  [virtual]

Implements TGLPlotPainter.

Definition at line 536 of file TGLTF3Painter.cxx.

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

Implements TGLPlotPainter.

Definition at line 542 of file TGLTF3Painter.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 TGLIsoPainter::InitGL (  )  const [private, virtual]

Implements TGLPlotPainter.

Definition at line 570 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 TGLIsoPainter::DeInitGL (  )  const [private, virtual]

Implements TGLPlotPainter.

Definition at line 581 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 TGLIsoPainter::DrawPlot (  )  const [private, virtual]

Implements TGLPlotPainter.

Definition at line 592 of file TGLTF3Painter.cxx.

References TGLBoxCut::DrawBox(), TGLPlotBox::DrawBox(), DrawMesh(), TGLPlotPainter::DrawSections(), Error, TGLPlotPainter::fBackBox, TGLPlotPainter::fBoxCut, fColorLevels, TGLPlotPainter::fHighColor, fIsos, TGLPlotPainter::fSelectedPart, TGLPlotPainter::fSelectionPass, TGLPlotPainter::fZLevels, GL_BLEND, GL_FALSE, GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA, GL_TRUE, glBlendFunc(), glDepthMask(), glDisable(), glEnable(), HasSections(), and TGLBoxCut::IsActive().

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

Implements TGLPlotPainter.

Definition at line 634 of file TGLTF3Painter.cxx.

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

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

Implements TGLPlotPainter.

Definition at line 643 of file TGLTF3Painter.cxx.

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

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

Implements TGLPlotPainter.

Definition at line 652 of file TGLTF3Painter.cxx.

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

Bool_t TGLIsoPainter::HasSections (  )  const [private]

Definition at line 661 of file TGLTF3Painter.cxx.

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

Referenced by DrawPlot(), and ProcessEvent().

void TGLIsoPainter::SetSurfaceColor ( Int_t  ind  )  const [private]

Definition at line 669 of file TGLTF3Painter.cxx.

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

Referenced by DrawMesh().

void TGLIsoPainter::SetMesh ( Mesh_t mesh,
Double_t  isoValue 
) [private]

Definition at line 694 of file TGLTF3Painter.cxx.

References Rgl::Mc::TMeshBuilder< DataSource, ValueType >::BuildMesh(), TGLPlotPainter::fCoord, TGLPlotPainter::fHist, TGLPlotPainter::fXAxis, TGLPlotPainter::fYAxis, TGLPlotPainter::fZAxis, TGLPlotCoordinates::GetXScale(), TGLPlotCoordinates::GetYScale(), TGLPlotCoordinates::GetZScale(), kTRUE, and m.

Referenced by InitGeometry().

void TGLIsoPainter::DrawMesh ( const Mesh_t mesh,
Int_t  level 
) const [private]

Definition at line 721 of file TGLTF3Painter.cxx.

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

Referenced by DrawPlot().

void TGLIsoPainter::FindMinMax (  )  [private]

Definition at line 745 of file TGLTF3Painter.cxx.

References TGLPlotPainter::fHist, fMinMax, TGLPlotPainter::fXAxis, TGLPlotPainter::fYAxis, TGLPlotPainter::fZAxis, TH1::GetBinContent(), TAxis::GetFirst(), TAxis::GetLast(), i, j, k, TMath::Max(), and TMath::Min().

Referenced by InitGeometry().

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

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

Implements TVirtualGLPainter.

Bool_t TGLIsoPainter::InitGeometry (  )  [virtual]

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TVirtualGLPainter.

void TGLIsoPainter::AddOption ( const TString option  )  [virtual]

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

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

Implements TGLPlotPainter.

Bool_t TGLIsoPainter::HasSections (  )  const [private]

void TGLIsoPainter::SetSurfaceColor ( Int_t  ind  )  const [private]

void TGLIsoPainter::SetMesh ( Mesh_t mesh,
Double_t  isoValue 
) [private]

void TGLIsoPainter::DrawMesh ( const Mesh_t mesh,
Int_t  level 
) const [private]

void TGLIsoPainter::FindMinMax (  )  [private]

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


Member Data Documentation

TGLTH3Slice TGLIsoPainter::fXOZSlice [private]

Definition at line 98 of file TGLTF3Painter.h.

Referenced by DrawSectionXOZ().

TGLTH3Slice TGLIsoPainter::fYOZSlice [private]

Definition at line 99 of file TGLTF3Painter.h.

Referenced by DrawSectionYOZ().

TGLTH3Slice TGLIsoPainter::fXOYSlice [private]

Definition at line 100 of file TGLTF3Painter.h.

Referenced by DrawSectionXOY().

Mesh_t TGLIsoPainter::fDummyMesh [private]

Definition at line 102 of file TGLTF3Painter.h.

Referenced by InitGeometry().

MeshList_t TGLIsoPainter::fIsos [private]

Definition at line 104 of file TGLTF3Painter.h.

Referenced by DrawPlot(), and InitGeometry().

MeshList_t TGLIsoPainter::fCache [private]

Definition at line 107 of file TGLTF3Painter.h.

Referenced by InitGeometry().

Rgl::Range_t TGLIsoPainter::fMinMax [private]

Definition at line 109 of file TGLTF3Painter.h.

Referenced by FindMinMax(), and InitGeometry().

TGLLevelPalette TGLIsoPainter::fPalette [private]

Definition at line 111 of file TGLTF3Painter.h.

Referenced by InitGeometry(), and SetSurfaceColor().

std::vector<Double_t> TGLIsoPainter::fColorLevels [private]

Definition at line 113 of file TGLTF3Painter.h.

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

Bool_t TGLIsoPainter::fInit [private]

Definition at line 116 of file TGLTF3Painter.h.

Referenced by InitGeometry().

std::vector<Double_t> TGLIsoPainter::fColorLevels [private]

Definition at line 113 of file TGLTF3Painter.h.


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