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

Helper class for plot-painters holding information about axis ranges, numbers of bins and flags if certain axis is logarithmic.

Definition at line 310 of file TGLPlotPainter.h.

Public Member Functions

 TGLPlotCoordinates ()
 Constructor.
 
virtual ~TGLPlotCoordinates ()
 Destructor.
 
EGLCoordType GetCoordType () const
 Get coordinates type.
 
Double_t GetFactor () const
 Get factor.
 
Int_t GetFirstXBin () const
 
Int_t GetFirstYBin () const
 
Int_t GetFirstZBin () const
 
Int_t GetLastXBin () const
 
Int_t GetLastYBin () const
 
Int_t GetLastZBin () const
 
Int_t GetNXBins () const
 Number of X bins.
 
Int_t GetNYBins () const
 Number of Y bins.
 
Int_t GetNZBins () const
 Number of Z bins.
 
const Rgl::BinRange_tGetXBins () const
 X bins range.
 
Double_t GetXLength () const
 X length.
 
Bool_t GetXLog () const
 Get X log.
 
const Rgl::Range_tGetXRange () const
 X range.
 
const Rgl::Range_tGetXRangeScaled () const
 Scaled range.
 
Double_t GetXScale () const
 
const Rgl::BinRange_tGetYBins () const
 Y bins range.
 
Double_t GetYLength () const
 Y length.
 
Bool_t GetYLog () const
 Get Y log.
 
const Rgl::Range_tGetYRange () const
 Y range.
 
const Rgl::Range_tGetYRangeScaled () const
 Scaled range.
 
Double_t GetYScale () const
 
const Rgl::BinRange_tGetZBins () const
 Z bins range.
 
Double_t GetZLength () const
 Z length.
 
Bool_t GetZLog () const
 Get Z log.
 
const Rgl::Range_tGetZRange () const
 Z range.
 
const Rgl::Range_tGetZRangeScaled () const
 Scaled range.
 
Double_t GetZScale () const
 
Bool_t Modified () const
 Modified.
 
void ResetModified ()
 Reset modified.
 
void SetCoordType (EGLCoordType type)
 If coord type was changed, plot must reset sections (if any), set fModified.
 
Bool_t SetRanges (const TAxis *xAxis, const TAxis *yAxis, const TAxis *zAxis)
 Set bin ranges, ranges, etc.
 
Bool_t SetRanges (const TH1 *hist, Bool_t errors=kFALSE, Bool_t zBins=kFALSE)
 Set bin ranges, ranges.
 
Bool_t SetRanges (TH2Poly *hist)
 Set bin ranges, ranges, etc.
 
void SetXLog (Bool_t xLog)
 If log changed, sections must be reset, set fModified.
 
void SetYLog (Bool_t yLog)
 If log changed, sections must be reset, set fModified.
 
void SetZLog (Bool_t zLog)
 If log changed, sections must be reset, set fModified.
 

Private Member Functions

 TGLPlotCoordinates (const TGLPlotCoordinates &)
 
TGLPlotCoordinatesoperator= (const TGLPlotCoordinates &)
 
Bool_t SetRangesCartesian (const TH1 *hist, Bool_t errors=kFALSE, Bool_t zBins=kFALSE)
 Set bin ranges, ranges, etc.
 
Bool_t SetRangesCylindrical (const TH1 *hist)
 Set ranges cylindrical.
 
Bool_t SetRangesPolar (const TH1 *hist)
 Set bin ranges, ranges, etc.
 
Bool_t SetRangesSpherical (const TH1 *hist)
 Set ranges spherical.
 

Private Attributes

EGLCoordType fCoordType
 
Double_t fFactor
 
Bool_t fModified
 
Rgl::BinRange_t fXBins
 
Bool_t fXLog
 
Rgl::Range_t fXRange
 
Rgl::Range_t fXRangeScaled
 
Double_t fXScale
 
Rgl::BinRange_t fYBins
 
Bool_t fYLog
 
Rgl::Range_t fYRange
 
Rgl::Range_t fYRangeScaled
 
Double_t fYScale
 
Rgl::BinRange_t fZBins
 
Bool_t fZLog
 
Rgl::Range_t fZRange
 
Rgl::Range_t fZRangeScaled
 
Double_t fZScale
 

#include <TGLPlotPainter.h>

Constructor & Destructor Documentation

◆ TGLPlotCoordinates() [1/2]

TGLPlotCoordinates::TGLPlotCoordinates ( )

Constructor.

Definition at line 629 of file TGLPlotPainter.cxx.

◆ ~TGLPlotCoordinates()

TGLPlotCoordinates::~TGLPlotCoordinates ( )
virtual

Destructor.

Definition at line 645 of file TGLPlotPainter.cxx.

◆ TGLPlotCoordinates() [2/2]

TGLPlotCoordinates::TGLPlotCoordinates ( const TGLPlotCoordinates )
private

Member Function Documentation

◆ GetCoordType()

EGLCoordType TGLPlotCoordinates::GetCoordType ( ) const

Get coordinates type.

Definition at line 664 of file TGLPlotPainter.cxx.

◆ GetFactor()

Double_t TGLPlotCoordinates::GetFactor ( ) const

Get factor.

Definition at line 888 of file TGLPlotPainter.cxx.

◆ GetFirstXBin()

Int_t TGLPlotCoordinates::GetFirstXBin ( ) const
inline

Definition at line 385 of file TGLPlotPainter.h.

◆ GetFirstYBin()

Int_t TGLPlotCoordinates::GetFirstYBin ( ) const
inline

Definition at line 387 of file TGLPlotPainter.h.

◆ GetFirstZBin()

Int_t TGLPlotCoordinates::GetFirstZBin ( ) const
inline

Definition at line 389 of file TGLPlotPainter.h.

◆ GetLastXBin()

Int_t TGLPlotCoordinates::GetLastXBin ( ) const
inline

Definition at line 386 of file TGLPlotPainter.h.

◆ GetLastYBin()

Int_t TGLPlotCoordinates::GetLastYBin ( ) const
inline

Definition at line 388 of file TGLPlotPainter.h.

◆ GetLastZBin()

Int_t TGLPlotCoordinates::GetLastZBin ( ) const
inline

Definition at line 390 of file TGLPlotPainter.h.

◆ GetNXBins()

Int_t TGLPlotCoordinates::GetNXBins ( ) const

Number of X bins.

Definition at line 766 of file TGLPlotPainter.cxx.

◆ GetNYBins()

Int_t TGLPlotCoordinates::GetNYBins ( ) const

Number of Y bins.

Definition at line 774 of file TGLPlotPainter.cxx.

◆ GetNZBins()

Int_t TGLPlotCoordinates::GetNZBins ( ) const

Number of Z bins.

Definition at line 782 of file TGLPlotPainter.cxx.

◆ GetXBins()

const Rgl::BinRange_t & TGLPlotCoordinates::GetXBins ( ) const

X bins range.

Definition at line 790 of file TGLPlotPainter.cxx.

◆ GetXLength()

Double_t TGLPlotCoordinates::GetXLength ( ) const

X length.

Definition at line 822 of file TGLPlotPainter.cxx.

◆ GetXLog()

Bool_t TGLPlotCoordinates::GetXLog ( ) const

Get X log.

Definition at line 684 of file TGLPlotPainter.cxx.

◆ GetXRange()

const Rgl::Range_t & TGLPlotCoordinates::GetXRange ( ) const

X range.

Definition at line 814 of file TGLPlotPainter.cxx.

◆ GetXRangeScaled()

const Rgl::Range_t & TGLPlotCoordinates::GetXRangeScaled ( ) const

Scaled range.

Definition at line 864 of file TGLPlotPainter.cxx.

◆ GetXScale()

Double_t TGLPlotCoordinates::GetXScale ( ) const
inline

Definition at line 381 of file TGLPlotPainter.h.

◆ GetYBins()

const Rgl::BinRange_t & TGLPlotCoordinates::GetYBins ( ) const

Y bins range.

Definition at line 798 of file TGLPlotPainter.cxx.

◆ GetYLength()

Double_t TGLPlotCoordinates::GetYLength ( ) const

Y length.

Definition at line 838 of file TGLPlotPainter.cxx.

◆ GetYLog()

Bool_t TGLPlotCoordinates::GetYLog ( ) const

Get Y log.

Definition at line 704 of file TGLPlotPainter.cxx.

◆ GetYRange()

const Rgl::Range_t & TGLPlotCoordinates::GetYRange ( ) const

Y range.

Definition at line 830 of file TGLPlotPainter.cxx.

◆ GetYRangeScaled()

const Rgl::Range_t & TGLPlotCoordinates::GetYRangeScaled ( ) const

Scaled range.

Definition at line 872 of file TGLPlotPainter.cxx.

◆ GetYScale()

Double_t TGLPlotCoordinates::GetYScale ( ) const
inline

Definition at line 382 of file TGLPlotPainter.h.

◆ GetZBins()

const Rgl::BinRange_t & TGLPlotCoordinates::GetZBins ( ) const

Z bins range.

Definition at line 806 of file TGLPlotPainter.cxx.

◆ GetZLength()

Double_t TGLPlotCoordinates::GetZLength ( ) const

Z length.

Definition at line 855 of file TGLPlotPainter.cxx.

◆ GetZLog()

Bool_t TGLPlotCoordinates::GetZLog ( ) const

Get Z log.

Definition at line 724 of file TGLPlotPainter.cxx.

◆ GetZRange()

const Rgl::Range_t & TGLPlotCoordinates::GetZRange ( ) const

Z range.

Definition at line 847 of file TGLPlotPainter.cxx.

◆ GetZRangeScaled()

const Rgl::Range_t & TGLPlotCoordinates::GetZRangeScaled ( ) const

Scaled range.

Definition at line 880 of file TGLPlotPainter.cxx.

◆ GetZScale()

Double_t TGLPlotCoordinates::GetZScale ( ) const
inline

Definition at line 383 of file TGLPlotPainter.h.

◆ Modified()

Bool_t TGLPlotCoordinates::Modified ( ) const

Modified.

Definition at line 740 of file TGLPlotPainter.cxx.

◆ operator=()

TGLPlotCoordinates & TGLPlotCoordinates::operator= ( const TGLPlotCoordinates )
private

◆ ResetModified()

void TGLPlotCoordinates::ResetModified ( )

Reset modified.

Definition at line 732 of file TGLPlotPainter.cxx.

◆ SetCoordType()

void TGLPlotCoordinates::SetCoordType ( EGLCoordType  type)

If coord type was changed, plot must reset sections (if any), set fModified.

Definition at line 653 of file TGLPlotPainter.cxx.

◆ SetRanges() [1/3]

Bool_t TGLPlotCoordinates::SetRanges ( const TAxis xAxis,
const TAxis yAxis,
const TAxis zAxis 
)

Set bin ranges, ranges, etc.

Definition at line 1028 of file TGLPlotPainter.cxx.

◆ SetRanges() [2/3]

Bool_t TGLPlotCoordinates::SetRanges ( const TH1 hist,
Bool_t  errors = kFALSE,
Bool_t  zBins = kFALSE 
)

Set bin ranges, ranges.

Definition at line 748 of file TGLPlotPainter.cxx.

◆ SetRanges() [3/3]

Bool_t TGLPlotCoordinates::SetRanges ( TH2Poly hist)

Set bin ranges, ranges, etc.

Definition at line 977 of file TGLPlotPainter.cxx.

◆ SetRangesCartesian()

Bool_t TGLPlotCoordinates::SetRangesCartesian ( const TH1 hist,
Bool_t  errors = kFALSE,
Bool_t  zBins = kFALSE 
)
private

Set bin ranges, ranges, etc.

Definition at line 907 of file TGLPlotPainter.cxx.

◆ SetRangesCylindrical()

Bool_t TGLPlotCoordinates::SetRangesCylindrical ( const TH1 hist)
private

Set ranges cylindrical.

Definition at line 1139 of file TGLPlotPainter.cxx.

◆ SetRangesPolar()

Bool_t TGLPlotCoordinates::SetRangesPolar ( const TH1 hist)
private

Set bin ranges, ranges, etc.

Definition at line 1084 of file TGLPlotPainter.cxx.

◆ SetRangesSpherical()

Bool_t TGLPlotCoordinates::SetRangesSpherical ( const TH1 hist)
private

Set ranges spherical.

Definition at line 1192 of file TGLPlotPainter.cxx.

◆ SetXLog()

void TGLPlotCoordinates::SetXLog ( Bool_t  xLog)

If log changed, sections must be reset, set fModified.

Definition at line 673 of file TGLPlotPainter.cxx.

◆ SetYLog()

void TGLPlotCoordinates::SetYLog ( Bool_t  yLog)

If log changed, sections must be reset, set fModified.

Definition at line 693 of file TGLPlotPainter.cxx.

◆ SetZLog()

void TGLPlotCoordinates::SetZLog ( Bool_t  zLog)

If log changed, sections must be reset, set fModified.

Definition at line 713 of file TGLPlotPainter.cxx.

Member Data Documentation

◆ fCoordType

EGLCoordType TGLPlotCoordinates::fCoordType
private

Definition at line 312 of file TGLPlotPainter.h.

◆ fFactor

Double_t TGLPlotCoordinates::fFactor
private

Definition at line 335 of file TGLPlotPainter.h.

◆ fModified

Bool_t TGLPlotCoordinates::fModified
private

Definition at line 334 of file TGLPlotPainter.h.

◆ fXBins

Rgl::BinRange_t TGLPlotCoordinates::fXBins
private

Definition at line 314 of file TGLPlotPainter.h.

◆ fXLog

Bool_t TGLPlotCoordinates::fXLog
private

Definition at line 330 of file TGLPlotPainter.h.

◆ fXRange

Rgl::Range_t TGLPlotCoordinates::fXRange
private

Definition at line 322 of file TGLPlotPainter.h.

◆ fXRangeScaled

Rgl::Range_t TGLPlotCoordinates::fXRangeScaled
private

Definition at line 326 of file TGLPlotPainter.h.

◆ fXScale

Double_t TGLPlotCoordinates::fXScale
private

Definition at line 318 of file TGLPlotPainter.h.

◆ fYBins

Rgl::BinRange_t TGLPlotCoordinates::fYBins
private

Definition at line 315 of file TGLPlotPainter.h.

◆ fYLog

Bool_t TGLPlotCoordinates::fYLog
private

Definition at line 331 of file TGLPlotPainter.h.

◆ fYRange

Rgl::Range_t TGLPlotCoordinates::fYRange
private

Definition at line 323 of file TGLPlotPainter.h.

◆ fYRangeScaled

Rgl::Range_t TGLPlotCoordinates::fYRangeScaled
private

Definition at line 327 of file TGLPlotPainter.h.

◆ fYScale

Double_t TGLPlotCoordinates::fYScale
private

Definition at line 319 of file TGLPlotPainter.h.

◆ fZBins

Rgl::BinRange_t TGLPlotCoordinates::fZBins
private

Definition at line 316 of file TGLPlotPainter.h.

◆ fZLog

Bool_t TGLPlotCoordinates::fZLog
private

Definition at line 332 of file TGLPlotPainter.h.

◆ fZRange

Rgl::Range_t TGLPlotCoordinates::fZRange
private

Definition at line 324 of file TGLPlotPainter.h.

◆ fZRangeScaled

Rgl::Range_t TGLPlotCoordinates::fZRangeScaled
private

Definition at line 328 of file TGLPlotPainter.h.

◆ fZScale

Double_t TGLPlotCoordinates::fZScale
private

Definition at line 320 of file TGLPlotPainter.h.

Libraries for TGLPlotCoordinates:

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