ROOT logo
ROOT » GRAF3D » GL » TGLPlotPainter

class TGLPlotPainter: public TVirtualGLPainter


 Base class for plot-painters that provide GL rendering of various
 2D and 3D histograms, functions and parametric surfaces.

Function Members (Methods)

 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

public:
~TGLPlotPainter()
virtual voidAddOption(const TString& stringOption)
static TClass*Class()
static TClass*TVirtualGLPainter::Class()
Bool_tCutAxisSelected() const
virtual voidDeInitGL() const
virtual voidDrawPlot() const
virtual char*TVirtualGLPainter::GetPlotInfo(Int_t px, Int_t py)
virtual Bool_tInitGeometry()
virtual voidInitGL() const
voidInvalidateSelection()
virtual TClass*IsA() const
virtual TClass*TVirtualGLPainter::IsA() const
TVirtualGLPainter&TVirtualGLPainter::operator=(const TVirtualGLPainter&)
virtual voidPaint()
virtual voidTVirtualGLPainter::Paint()
virtual voidTVirtualGLPainter::Pan(Int_t px, Int_t py)
virtual Bool_tPlotSelected(Int_t px, Int_t py)
virtual Bool_tTVirtualGLPainter::PlotSelected(Int_t px, Int_t py)
virtual voidProcessEvent(Int_t event, Int_t px, Int_t py)
const TGLPlotBox&RefBackBox() const
virtual voidSetFrameColor(const TColor* frameColor)
voidSetPadColor(const TColor* color)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidTVirtualGLPainter::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidStartPan(Int_t px, Int_t py)
virtual voidStreamer(TBuffer& b)
virtual voidTVirtualGLPainter::Streamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidTVirtualGLPainter::StreamerNVirtual(TBuffer& b)
protected:
virtual voidClearBuffers() const
virtual voidDrawPaletteAxis() const
voidDrawSections() const
virtual voidDrawSectionXOY() const
virtual voidDrawSectionXOZ() const
virtual voidDrawSectionYOZ() const
const TColor*GetPadColor() const
voidMoveSection(Int_t px, Int_t py)
voidPrintPlot() const
voidRestoreModelviewMatrix() const
voidRestoreProjectionMatrix() const
voidSaveModelviewMatrix() const
voidSaveProjectionMatrix() const

Data Members

private:
enum ESelectionBase { kHighColorSelectionBase
kTrueColorSelectionBase
};
enum ECutAxisID { kXAxis
kYAxis
kZAxis
};
protected:
TGLPlotBoxfBackBox
TGLBoxCutfBoxCut
TGLPlotCamera*fCamera
TGLPlotCoordinates*fCoord
Bool_tfDrawPalette
Bool_tfHighColor
TH1*fHist
TPointfMousePosition
Double_tfPadPhi
Double_tfPadTheta
Int_tfSelectedPart
TGLSelectionBufferfSelection
TGLPlotPainter::ESelectionBasefSelectionBase
Bool_tfSelectionPass
Bool_tfUpdateSelection
TAxis*fXAxis
Double_tfXOYSectionPos
Double_tfXOZSectionPos
TAxis*fYAxis
Double_tfYOZSectionPos
TAxis*fZAxis
vector<Double_t>fZLevels
private:
const TColor*fPadColor

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void Paint()
Draw lego/surf/whatever you can.
void PrintPlot() const
 Generate PS using gl2ps
Bool_t PlotSelected(Int_t px, Int_t py)
Read color buffer content to find selected object
void SetPadColor(const TColor* color)
Used in a pad.
void SetFrameColor(const TColor* frameColor)
Set plot's back box color.
void InvalidateSelection()
Selection must be updated.
const TColor * GetPadColor() const
Get pad color.
void MoveSection(Int_t px, Int_t py)
Create dynamic profile using selected plane
void DrawSections() const
Draw sections (if any).
void ClearBuffers() const
   // Clear buffer.
   Float_t rgb[3] = {1.f, 1.f, 1.f};
   if (const TColor *color = GetPadColor())
      color->GetRGB(rgb[0], rgb[1], rgb[2]);
   glClearColor(rgb[0], rgb[1], rgb[2], 1.);
   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

void DrawPaletteAxis() const
Draw. Palette. Axis.
void SaveModelviewMatrix() const
void SaveProjectionMatrix() const
void RestoreModelviewMatrix() const
void RestoreProjectionMatrix() const
const TGLPlotBox& RefBackBox() const
{ return fBackBox; }
void InitGL() const
void DeInitGL() const
void DrawPlot() const
Bool_t InitGeometry()
Init geometry does plot's specific initialization.
void StartPan(Int_t px, Int_t py)
Pan function is already declared in TVirtualGLPainter.
void AddOption(const TString& stringOption)
Add string option, it can be a digit in "lego" or "surf".
void ProcessEvent(Int_t event, Int_t px, Int_t py)
Used by GLpad
Bool_t CutAxisSelected() const
void DrawSectionXOZ() const
void DrawSectionYOZ() const
void DrawSectionXOY() const