Logo ROOT  
Reference Guide
TGLPlotPainter Class Referenceabstract

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

Definition at line 181 of file TGLPlotPainter.h.

Public Types

enum  ECutAxisID { kXAxis = 7, kYAxis = 8, kZAxis = 9 }
 

Public Member Functions

 TGLPlotPainter (TGL5DDataSet *data, TGLPlotCamera *camera, TGLPlotCoordinates *coord)
 TGLPlotPainter's ctor. More...
 
 TGLPlotPainter (TGLPlotCamera *camera)
 TGLPlotPainter's ctor. More...
 
 TGLPlotPainter (TH1 *hist, TGLPlotCamera *camera, TGLPlotCoordinates *coord, Bool_t xoySelectable, Bool_t xozSelectable, Bool_t yozSelectable)
 TGLPlotPainter's ctor. More...
 
virtual void AddOption (const TString &stringOption)=0
 
Bool_t CutAxisSelected () const
 
virtual void DeInitGL () const =0
 
virtual void DrawPlot () const =0
 
Bool_t GetDrawAxes ()
 
virtual Bool_t InitGeometry ()=0
 
virtual void InitGL () const =0
 
void InvalidateSelection ()
 Selection must be updated. More...
 
virtual void Paint ()
 Draw lego/surf/whatever you can. More...
 
virtual Bool_t PlotSelected (Int_t px, Int_t py)
 Read color buffer content to find selected object. More...
 
virtual void ProcessEvent (Int_t event, Int_t px, Int_t py)=0
 
const TGLPlotBoxRefBackBox () const
 
void SetDrawAxes (Bool_t s)
 
void SetDrawBackBox (Bool_t b)
 
void SetDrawFrontBox (Bool_t b)
 
virtual void SetFrameColor (const TColor *frameColor)
 Set plot's back box color. More...
 
void SetPadColor (const TColor *color)
 Used in a pad. More...
 
void SetPhysicalShapeColor (const Float_t *rgba)
 
virtual void StartPan (Int_t px, Int_t py)=0
 
- Public Member Functions inherited from TVirtualGLPainter
virtual ~TVirtualGLPainter ()
 
virtual char * GetPlotInfo (Int_t px, Int_t py)=0
 
virtual void Pan (Int_t px, Int_t py)=0
 

Protected Types

enum  ESelectionBase { kHighColorSelectionBase = 7, kTrueColorSelectionBase = 10 }
 

Protected Member Functions

virtual void ClearBuffers () const
 
virtual void DrawPaletteAxis () const
 Draw. Palette. Axis. More...
 
void DrawSections () const
 Draw sections (if any). More...
 
virtual void DrawSectionXOY () const =0
 
virtual void DrawSectionXOZ () const =0
 
virtual void DrawSectionYOZ () const =0
 
const TColorGetPadColor () const
 Get pad color. More...
 
void MoveSection (Int_t px, Int_t py)
 Create dynamic profile using selected plane. More...
 
void PrintPlot () const
 Generate PS using gl2ps. More...
 
void RestoreModelviewMatrix () const
 
void RestoreProjectionMatrix () const
 
void SaveModelviewMatrix () const
 
void SaveProjectionMatrix () const
 

Protected Attributes

TGLPlotBox fBackBox
 
TGLBoxCut fBoxCut
 
TGLPlotCamerafCamera
 
TGLPlotCoordinatesfCoord
 
Bool_t fDrawAxes
 
Bool_t fDrawPalette
 
Bool_t fHighColor
 
TH1fHist
 
TPoint fMousePosition
 
Double_t fPadPhi
 
Double_t fPadTheta
 
const Float_tfPhysicalShapeColor
 
Int_t fSelectedPart
 
TGLSelectionBuffer fSelection
 
Int_t fSelectionBase
 
Bool_t fSelectionPass
 
Bool_t fUpdateSelection
 
TAxisfXAxis
 
Double_t fXOYSectionPos
 
Double_t fXOZSectionPos
 
TAxisfYAxis
 
Double_t fYOZSectionPos
 
TAxisfZAxis
 
std::vector< Double_tfZLevels
 

Private Attributes

const TColorfPadColor
 

Friends

class Rgl::PlotTranslation
 

#include <TGLPlotPainter.h>

Inheritance diagram for TGLPlotPainter:
[legend]

Member Enumeration Documentation

◆ ECutAxisID

Enumerator
kXAxis 
kYAxis 
kZAxis 

Definition at line 262 of file TGLPlotPainter.h.

◆ ESelectionBase

Enumerator
kHighColorSelectionBase 
kTrueColorSelectionBase 

Definition at line 213 of file TGLPlotPainter.h.

Constructor & Destructor Documentation

◆ TGLPlotPainter() [1/3]

TGLPlotPainter::TGLPlotPainter ( TH1 hist,
TGLPlotCamera camera,
TGLPlotCoordinates coord,
Bool_t  xoySelectable,
Bool_t  xozSelectable,
Bool_t  yozSelectable 
)

TGLPlotPainter's ctor.

Definition at line 50 of file TGLPlotPainter.cxx.

◆ TGLPlotPainter() [2/3]

TGLPlotPainter::TGLPlotPainter ( TGL5DDataSet data,
TGLPlotCamera camera,
TGLPlotCoordinates coord 
)

TGLPlotPainter's ctor.

Definition at line 84 of file TGLPlotPainter.cxx.

◆ TGLPlotPainter() [3/3]

TGLPlotPainter::TGLPlotPainter ( TGLPlotCamera camera)

TGLPlotPainter's ctor.

Definition at line 117 of file TGLPlotPainter.cxx.

Member Function Documentation

◆ AddOption()

virtual void TGLPlotPainter::AddOption ( const TString stringOption)
pure virtual

◆ ClearBuffers()

void TGLPlotPainter::ClearBuffers ( ) const
protectedvirtual

Definition at line 567 of file TGLPlotPainter.cxx.

◆ CutAxisSelected()

Bool_t TGLPlotPainter::CutAxisSelected ( ) const
inline

Definition at line 268 of file TGLPlotPainter.h.

◆ DeInitGL()

◆ DrawPaletteAxis()

void TGLPlotPainter::DrawPaletteAxis ( ) const
protectedvirtual

Draw. Palette. Axis.

Reimplemented in TGLVoxelPainter, TGLSurfacePainter, TGLLegoPainter, TGLH2PolyPainter, and TGLBoxPainter.

Definition at line 582 of file TGLPlotPainter.cxx.

◆ DrawPlot()

◆ DrawSections()

void TGLPlotPainter::DrawSections ( ) const
protected

Draw sections (if any).

Definition at line 443 of file TGLPlotPainter.cxx.

◆ DrawSectionXOY()

virtual void TGLPlotPainter::DrawSectionXOY ( ) const
protectedpure virtual

◆ DrawSectionXOZ()

virtual void TGLPlotPainter::DrawSectionXOZ ( ) const
protectedpure virtual

◆ DrawSectionYOZ()

virtual void TGLPlotPainter::DrawSectionYOZ ( ) const
protectedpure virtual

◆ GetDrawAxes()

Bool_t TGLPlotPainter::GetDrawAxes ( )
inline

Definition at line 273 of file TGLPlotPainter.h.

◆ GetPadColor()

const TColor * TGLPlotPainter::GetPadColor ( ) const
protected

Get pad color.

Definition at line 363 of file TGLPlotPainter.cxx.

◆ InitGeometry()

◆ InitGL()

◆ InvalidateSelection()

void TGLPlotPainter::InvalidateSelection ( )

Selection must be updated.

Definition at line 355 of file TGLPlotPainter.cxx.

◆ MoveSection()

void TGLPlotPainter::MoveSection ( Int_t  px,
Int_t  py 
)
protected

Create dynamic profile using selected plane.

Definition at line 371 of file TGLPlotPainter.cxx.

◆ Paint()

void TGLPlotPainter::Paint ( )
virtual

Draw lego/surf/whatever you can.

Implements TVirtualGLPainter.

Definition at line 150 of file TGLPlotPainter.cxx.

◆ PlotSelected()

Bool_t TGLPlotPainter::PlotSelected ( Int_t  px,
Int_t  py 
)
virtual

Read color buffer content to find selected object.

Implements TVirtualGLPainter.

Definition at line 274 of file TGLPlotPainter.cxx.

◆ PrintPlot()

void TGLPlotPainter::PrintPlot ( ) const
protected

Generate PS using gl2ps.

Definition at line 232 of file TGLPlotPainter.cxx.

◆ ProcessEvent()

virtual void TGLPlotPainter::ProcessEvent ( Int_t  event,
Int_t  px,
Int_t  py 
)
pure virtual

◆ RefBackBox()

const TGLPlotBox& TGLPlotPainter::RefBackBox ( ) const
inline

Definition at line 231 of file TGLPlotPainter.h.

◆ RestoreModelviewMatrix()

void TGLPlotPainter::RestoreModelviewMatrix ( ) const
protected

Definition at line 604 of file TGLPlotPainter.cxx.

◆ RestoreProjectionMatrix()

void TGLPlotPainter::RestoreProjectionMatrix ( ) const
protected

Definition at line 612 of file TGLPlotPainter.cxx.

◆ SaveModelviewMatrix()

void TGLPlotPainter::SaveModelviewMatrix ( ) const
protected

Definition at line 588 of file TGLPlotPainter.cxx.

◆ SaveProjectionMatrix()

void TGLPlotPainter::SaveProjectionMatrix ( ) const
protected

Definition at line 596 of file TGLPlotPainter.cxx.

◆ SetDrawAxes()

void TGLPlotPainter::SetDrawAxes ( Bool_t  s)
inline

Definition at line 272 of file TGLPlotPainter.h.

◆ SetDrawBackBox()

void TGLPlotPainter::SetDrawBackBox ( Bool_t  b)
inline

Definition at line 271 of file TGLPlotPainter.h.

◆ SetDrawFrontBox()

void TGLPlotPainter::SetDrawFrontBox ( Bool_t  b)
inline

Definition at line 270 of file TGLPlotPainter.h.

◆ SetFrameColor()

void TGLPlotPainter::SetFrameColor ( const TColor frameColor)
virtual

Set plot's back box color.

Definition at line 347 of file TGLPlotPainter.cxx.

◆ SetPadColor()

void TGLPlotPainter::SetPadColor ( const TColor color)

Used in a pad.

Definition at line 339 of file TGLPlotPainter.cxx.

◆ SetPhysicalShapeColor()

void TGLPlotPainter::SetPhysicalShapeColor ( const Float_t rgba)
inline

Definition at line 232 of file TGLPlotPainter.h.

◆ StartPan()

Friends And Related Function Documentation

◆ Rgl::PlotTranslation

friend class Rgl::PlotTranslation
friend

Definition at line 182 of file TGLPlotPainter.h.

Member Data Documentation

◆ fBackBox

TGLPlotBox TGLPlotPainter::fBackBox
protected

Definition at line 207 of file TGLPlotPainter.h.

◆ fBoxCut

TGLBoxCut TGLPlotPainter::fBoxCut
protected

Definition at line 208 of file TGLPlotPainter.h.

◆ fCamera

TGLPlotCamera* TGLPlotPainter::fCamera
protected

Definition at line 197 of file TGLPlotPainter.h.

◆ fCoord

TGLPlotCoordinates* TGLPlotPainter::fCoord
protected

Definition at line 196 of file TGLPlotPainter.h.

◆ fDrawAxes

Bool_t TGLPlotPainter::fDrawAxes
protected

Definition at line 220 of file TGLPlotPainter.h.

◆ fDrawPalette

Bool_t TGLPlotPainter::fDrawPalette
mutableprotected

Definition at line 219 of file TGLPlotPainter.h.

◆ fHighColor

Bool_t TGLPlotPainter::fHighColor
protected

Definition at line 211 of file TGLPlotPainter.h.

◆ fHist

TH1* TGLPlotPainter::fHist
protected

Definition at line 191 of file TGLPlotPainter.h.

◆ fMousePosition

TPoint TGLPlotPainter::fMousePosition
protected

Definition at line 203 of file TGLPlotPainter.h.

◆ fPadColor

const TColor* TGLPlotPainter::fPadColor
private

Definition at line 184 of file TGLPlotPainter.h.

◆ fPadPhi

Double_t TGLPlotPainter::fPadPhi
protected

Definition at line 189 of file TGLPlotPainter.h.

◆ fPadTheta

Double_t TGLPlotPainter::fPadTheta
protected

Definition at line 190 of file TGLPlotPainter.h.

◆ fPhysicalShapeColor

const Float_t* TGLPlotPainter::fPhysicalShapeColor
protected

Definition at line 187 of file TGLPlotPainter.h.

◆ fSelectedPart

Int_t TGLPlotPainter::fSelectedPart
protected

Definition at line 202 of file TGLPlotPainter.h.

◆ fSelection

TGLSelectionBuffer TGLPlotPainter::fSelection
protected

Definition at line 198 of file TGLPlotPainter.h.

◆ fSelectionBase

Int_t TGLPlotPainter::fSelectionBase
protected

Definition at line 218 of file TGLPlotPainter.h.

◆ fSelectionPass

Bool_t TGLPlotPainter::fSelectionPass
protected

Definition at line 201 of file TGLPlotPainter.h.

◆ fUpdateSelection

Bool_t TGLPlotPainter::fUpdateSelection
protected

Definition at line 200 of file TGLPlotPainter.h.

◆ fXAxis

TAxis* TGLPlotPainter::fXAxis
protected

Definition at line 192 of file TGLPlotPainter.h.

◆ fXOYSectionPos

Double_t TGLPlotPainter::fXOYSectionPos
mutableprotected

Definition at line 206 of file TGLPlotPainter.h.

◆ fXOZSectionPos

Double_t TGLPlotPainter::fXOZSectionPos
mutableprotected

Definition at line 204 of file TGLPlotPainter.h.

◆ fYAxis

TAxis* TGLPlotPainter::fYAxis
protected

Definition at line 193 of file TGLPlotPainter.h.

◆ fYOZSectionPos

Double_t TGLPlotPainter::fYOZSectionPos
mutableprotected

Definition at line 205 of file TGLPlotPainter.h.

◆ fZAxis

TAxis* TGLPlotPainter::fZAxis
protected

Definition at line 194 of file TGLPlotPainter.h.

◆ fZLevels

std::vector<Double_t> TGLPlotPainter::fZLevels
protected

Definition at line 210 of file TGLPlotPainter.h.

Libraries for TGLPlotPainter:
[legend]

The documentation for this class was generated from the following files: