Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGLTH3CompositionPainter Class Reference

Definition at line 63 of file TGLTH3Composition.h.

Public Member Functions

 TGLTH3CompositionPainter (TGLTH3Composition *data, TGLPlotCamera *camera, TGLPlotCoordinates *coord)
 Ctor.
 
void AddOption (const TString &option) override
 No options for composition.
 
char * GetPlotInfo (Int_t px, Int_t py) override
 Will be never called from TPad.
 
Bool_t InitGeometry () override
 
TClassIsA () const override
 
void Pan (Int_t px, Int_t py) override
 User's moving mouse cursor, with middle mouse button pressed (for pad).
 
void ProcessEvent (Int_t event, Int_t px, Int_t py) override
 Switch on/off box cut.
 
void StartPan (Int_t px, Int_t py) override
 Move plot or box cut.
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TGLPlotPainter
 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.
 
Bool_t CutAxisSelected () const
 
Bool_t GetDrawAxes ()
 
void InvalidateSelection ()
 Selection must be updated.
 
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.
 
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)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TVirtualGLPainter
virtual ~TVirtualGLPainter ()
 
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 TGLPlotPainter
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 ()
 

Private Member Functions

 TGLTH3CompositionPainter (const TGLTH3CompositionPainter &)=delete
 
void DeInitGL () const override
 Return back some gl state variables.
 
void DrawPlot () const override
 Draw composition of TH3s.
 
void DrawSectionXOY () const override
 
void DrawSectionXOZ () const override
 
void DrawSectionYOZ () const override
 
void InitGL () const override
 Initialize some gl state variables.
 
TGLTH3CompositionPainteroperator= (const TGLTH3CompositionPainter &)=delete
 
void SetColor (Int_t color) const
 Set material.
 

Private Attributes

TGLTH3CompositionfData
 
std::pair< Double_t, Double_tfMinMaxVal
 
TGLQuadric fQuadric
 

Additional Inherited Members

- Public Types inherited from TGLPlotPainter
enum  ECutAxisID { kXAxis = 7 , kYAxis = 8 , kZAxis = 9 }
 
- Protected Types inherited from TGLPlotPainter
enum  ESelectionBase { kHighColorSelectionBase = 7 , kTrueColorSelectionBase = 10 }
 
- Protected Member Functions inherited from TGLPlotPainter
virtual void ClearBuffers () const
 
virtual void DrawPaletteAxis () const
 Draw. Palette. Axis.
 
void DrawSections () const
 Draw sections (if any).
 
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 inherited from TGLPlotPainter
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
 

#include <TGLTH3Composition.h>

Inheritance diagram for TGLTH3CompositionPainter:
[legend]

Constructor & Destructor Documentation

◆ TGLTH3CompositionPainter() [1/2]

TGLTH3CompositionPainter::TGLTH3CompositionPainter ( TGLTH3Composition data,
TGLPlotCamera camera,
TGLPlotCoordinates coord 
)

Ctor.

Definition at line 116 of file TGLTH3Composition.cxx.

◆ TGLTH3CompositionPainter() [2/2]

TGLTH3CompositionPainter::TGLTH3CompositionPainter ( const TGLTH3CompositionPainter )
privatedelete

Member Function Documentation

◆ AddOption()

void TGLTH3CompositionPainter::AddOption ( const TString option)
overridevirtual

No options for composition.

Implements TGLPlotPainter.

Definition at line 232 of file TGLTH3Composition.cxx.

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

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

Definition at line 98 of file TGLTH3Composition.h.

◆ DeclFileName()

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

Definition at line 98 of file TGLTH3Composition.h.

◆ DeInitGL()

void TGLTH3CompositionPainter::DeInitGL ( ) const
overrideprivatevirtual

Return back some gl state variables.

Implements TGLPlotPainter.

Definition at line 274 of file TGLTH3Composition.cxx.

◆ DrawPlot()

void TGLTH3CompositionPainter::DrawPlot ( ) const
overrideprivatevirtual

Draw composition of TH3s.

Implements TGLPlotPainter.

Definition at line 286 of file TGLTH3Composition.cxx.

◆ DrawSectionXOY()

void TGLTH3CompositionPainter::DrawSectionXOY ( ) const
inlineoverrideprivatevirtual

Implements TGLPlotPainter.

Definition at line 86 of file TGLTH3Composition.h.

◆ DrawSectionXOZ()

void TGLTH3CompositionPainter::DrawSectionXOZ ( ) const
inlineoverrideprivatevirtual

Implements TGLPlotPainter.

Definition at line 84 of file TGLTH3Composition.h.

◆ DrawSectionYOZ()

void TGLTH3CompositionPainter::DrawSectionYOZ ( ) const
inlineoverrideprivatevirtual

Implements TGLPlotPainter.

Definition at line 85 of file TGLTH3Composition.h.

◆ GetPlotInfo()

char * TGLTH3CompositionPainter::GetPlotInfo ( Int_t  px,
Int_t  py 
)
overridevirtual

Will be never called from TPad.

Implements TVirtualGLPainter.

Definition at line 126 of file TGLTH3Composition.cxx.

◆ InitGeometry()

Bool_t TGLTH3CompositionPainter::InitGeometry ( )
overridevirtual

Implements TGLPlotPainter.

Definition at line 134 of file TGLTH3Composition.cxx.

◆ InitGL()

void TGLTH3CompositionPainter::InitGL ( ) const
overrideprivatevirtual

Initialize some gl state variables.

Implements TGLPlotPainter.

Definition at line 260 of file TGLTH3Composition.cxx.

◆ IsA()

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

Reimplemented from TGLPlotPainter.

Definition at line 98 of file TGLTH3Composition.h.

◆ operator=()

TGLTH3CompositionPainter & TGLTH3CompositionPainter::operator= ( const TGLTH3CompositionPainter )
privatedelete

◆ Pan()

void TGLTH3CompositionPainter::Pan ( Int_t  px,
Int_t  py 
)
overridevirtual

User's moving mouse cursor, with middle mouse button pressed (for pad).

Calculate 3d shift related to 2d mouse movement.

Implements TVirtualGLPainter.

Definition at line 194 of file TGLTH3Composition.cxx.

◆ ProcessEvent()

void TGLTH3CompositionPainter::ProcessEvent ( Int_t  event,
Int_t  px,
Int_t  py 
)
overridevirtual

Switch on/off box cut.

Implements TGLPlotPainter.

Definition at line 239 of file TGLTH3Composition.cxx.

◆ SetColor()

void TGLTH3CompositionPainter::SetColor ( Int_t  color) const
private

Set material.

Definition at line 404 of file TGLTH3Composition.cxx.

◆ StartPan()

void TGLTH3CompositionPainter::StartPan ( Int_t  px,
Int_t  py 
)
overridevirtual

Move plot or box cut.

Implements TGLPlotPainter.

Definition at line 182 of file TGLTH3Composition.cxx.

◆ Streamer()

void TGLTH3CompositionPainter::Streamer ( TBuffer )
overridevirtual

Reimplemented from TGLPlotPainter.

◆ StreamerNVirtual()

void TGLTH3CompositionPainter::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 98 of file TGLTH3Composition.h.

Member Data Documentation

◆ fData

TGLTH3Composition* TGLTH3CompositionPainter::fData
private

Definition at line 90 of file TGLTH3Composition.h.

◆ fMinMaxVal

std::pair<Double_t, Double_t> TGLTH3CompositionPainter::fMinMaxVal
private

Definition at line 91 of file TGLTH3Composition.h.

◆ fQuadric

TGLQuadric TGLTH3CompositionPainter::fQuadric
mutableprivate

Definition at line 93 of file TGLTH3Composition.h.

Libraries for TGLTH3CompositionPainter:

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