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()
Bool_tCutAxisSelected() const
virtual voidDeInitGL() const
virtual voidDrawPlot() const
Bool_tGetDrawAxes()
virtual char*TVirtualGLPainter::GetPlotInfo(Int_t px, Int_t py)
virtual Bool_tInitGeometry()
virtual voidInitGL() const
voidInvalidateSelection()
virtual TClass*IsA() const
TVirtualGLPainter&TVirtualGLPainter::operator=(const TVirtualGLPainter&)
virtual voidPaint()
virtual voidTVirtualGLPainter::Pan(Int_t px, Int_t py)
virtual Bool_tPlotSelected(Int_t px, Int_t py)
virtual voidProcessEvent(Int_t event, Int_t px, Int_t py)
const TGLPlotBox&RefBackBox() const
voidSetDrawAxes(Bool_t s)
voidSetDrawBackBox(Bool_t b)
voidSetDrawFrontBox(Bool_t b)
virtual voidSetFrameColor(const TColor* frameColor)
voidSetPadColor(const TColor* color)
voidSetPhysicalShapeColor(const Float_t* rgba)
virtual voidShowMembers(TMemberInspector&)
virtual voidStartPan(Int_t px, Int_t py)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_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

public:
enum ESelectionBase { kHighColorSelectionBase
kTrueColorSelectionBase
};
enum ECutAxisID { kXAxis
kYAxis
kZAxis
};
protected:
TGLPlotBoxfBackBox
TGLBoxCutfBoxCut
TGLPlotCamera*fCamera
TGLPlotCoordinates*fCoord
Bool_tfDrawAxes
Bool_tfDrawPalette
Bool_tfHighColor
TH1*fHist
TPointfMousePosition
Double_tfPadPhi
Double_tfPadTheta
const Float_t*fPhysicalShapeColor
Int_tfSelectedPart
TGLSelectionBufferfSelection
Int_tfSelectionBase
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 SetPhysicalShapeColor(const Float_t* rgba)
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)
Function to process additional events (key presses, mouse clicks.)
Bool_t CutAxisSelected() const
void SetDrawFrontBox(Bool_t b)
void SetDrawBackBox(Bool_t b)
void SetDrawAxes(Bool_t s)
{fDrawAxes = s;}
Bool_t GetDrawAxes()
{return fDrawAxes;}
void DrawSectionXOZ() const
void DrawSectionYOZ() const
void DrawSectionXOY() const