Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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.
 
 TGLPlotPainter (TGLPlotCamera *camera)
 TGLPlotPainter's ctor.
 
 TGLPlotPainter (TH1 *hist, TGLPlotCamera *camera, TGLPlotCoordinates *coord, Bool_t xoySelectable, Bool_t xozSelectable, Bool_t yozSelectable)
 TGLPlotPainter's ctor.
 
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.
 
TClassIsA () const override
 
void Paint () override
 Draw lego/surf/whatever you can.
 
Bool_t PlotSelected (Int_t px, Int_t py) override
 Read color buffer content to find selected object.
 
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.
 
void SetPadColor (const TColor *color)
 Used in a pad.
 
void SetPhysicalShapeColor (const Float_t *rgba)
 
virtual void StartPan (Int_t px, Int_t py)=0
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- 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
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TVirtualGLPainter
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Protected Types

enum  ESelectionBase { kHighColorSelectionBase = 7 , kTrueColorSelectionBase = 10 }
 

Protected Member Functions

virtual void ClearBuffers () const
 
virtual void DrawPaletteAxis () const
 Draw. Palette. Axis.
 
void DrawSections () const
 Draw sections (if any).
 
virtual void DrawSectionXOY () const =0
 
virtual void DrawSectionXOZ () const =0
 
virtual void DrawSectionYOZ () const =0
 
const TColorGetPadColor () const
 Get pad color.
 
void MoveSection (Int_t px, Int_t py)
 Create dynamic profile using selected plane.
 
void PrintPlot () const
 Generate PS using gl2ps.
 
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

◆ Class()

static TClass * TGLPlotPainter::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGLPlotPainter::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGLPlotPainter::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 300 of file TGLPlotPainter.h.

◆ 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.

◆ DeclFileName()

static const char * TGLPlotPainter::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 300 of file TGLPlotPainter.h.

◆ DeInitGL()

◆ DrawPaletteAxis()

void TGLPlotPainter::DrawPaletteAxis ( ) const
protectedvirtual

Draw. Palette. Axis.

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

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.

◆ IsA()

TClass * TGLPlotPainter::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TVirtualGLPainter.

Reimplemented in TGLSurfacePainter, TGLTF3Painter, TGLTH3CompositionPainter, and TGLVoxelPainter.

Definition at line 300 of file TGLPlotPainter.h.

◆ 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 ( )
overridevirtual

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 
)
overridevirtual

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()

virtual void TGLPlotPainter::StartPan ( Int_t  px,
Int_t  py 
)
pure virtual

◆ Streamer()

void TGLPlotPainter::Streamer ( TBuffer )
overridevirtual

◆ StreamerNVirtual()

void TGLPlotPainter::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 300 of file TGLPlotPainter.h.

Friends And Related Symbol 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:

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