Logo ROOT   6.16/01
Reference Guide
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
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. More...
 
virtual ~TGLPlotCoordinates ()
 Destructor. More...
 
EGLCoordType GetCoordType () const
 Get coordinates type. More...
 
Double_t GetFactor () const
 Get factor. More...
 
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. More...
 
Int_t GetNYBins () const
 Number of Y bins. More...
 
Int_t GetNZBins () const
 Number of Z bins. More...
 
const Rgl::BinRange_tGetXBins () const
 X bins range. More...
 
Double_t GetXLength () const
 X length. More...
 
Bool_t GetXLog () const
 Get X log. More...
 
const Rgl::Range_tGetXRange () const
 X range. More...
 
const Rgl::Range_tGetXRangeScaled () const
 Scaled range. More...
 
Double_t GetXScale () const
 
const Rgl::BinRange_tGetYBins () const
 Y bins range. More...
 
Double_t GetYLength () const
 Y length. More...
 
Bool_t GetYLog () const
 Get Y log. More...
 
const Rgl::Range_tGetYRange () const
 Y range. More...
 
const Rgl::Range_tGetYRangeScaled () const
 Scaled range. More...
 
Double_t GetYScale () const
 
const Rgl::BinRange_tGetZBins () const
 Z bins range. More...
 
Double_t GetZLength () const
 Z length. More...
 
Bool_t GetZLog () const
 Get Z log. More...
 
const Rgl::Range_tGetZRange () const
 Z range. More...
 
const Rgl::Range_tGetZRangeScaled () const
 Scaled range. More...
 
Double_t GetZScale () const
 
Bool_t Modified () const
 Modified. More...
 
void ResetModified ()
 Reset modified. More...
 
void SetCoordType (EGLCoordType type)
 If coord type was changed, plot must reset sections (if any), set fModified. More...
 
Bool_t SetRanges (const TAxis *xAxis, const TAxis *yAxis, const TAxis *zAxis)
 Set bin ranges, ranges, etc. More...
 
Bool_t SetRanges (const TH1 *hist, Bool_t errors=kFALSE, Bool_t zBins=kFALSE)
 Set bin ranges, ranges. More...
 
Bool_t SetRanges (TH2Poly *hist)
 Set bin ranges, ranges, etc. More...
 
void SetXLog (Bool_t xLog)
 If log changed, sections must be reset, set fModified. More...
 
void SetYLog (Bool_t yLog)
 If log changed, sections must be reset, set fModified. More...
 
void SetZLog (Bool_t zLog)
 If log changed, sections must be reset, set fModified. More...
 

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. More...
 
Bool_t SetRangesCylindrical (const TH1 *hist)
 Set ranges cylindrical. More...
 
Bool_t SetRangesPolar (const TH1 *hist)
 Set bin ranges, ranges, etc. More...
 
Bool_t SetRangesSpherical (const TH1 *hist)
 Set ranges spherical. More...
 

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 631 of file TGLPlotPainter.cxx.

◆ ~TGLPlotCoordinates()

TGLPlotCoordinates::~TGLPlotCoordinates ( )
virtual

Destructor.

Definition at line 647 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 666 of file TGLPlotPainter.cxx.

◆ GetFactor()

Double_t TGLPlotCoordinates::GetFactor ( ) const

Get factor.

Definition at line 890 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 768 of file TGLPlotPainter.cxx.

◆ GetNYBins()

Int_t TGLPlotCoordinates::GetNYBins ( ) const

Number of Y bins.

Definition at line 776 of file TGLPlotPainter.cxx.

◆ GetNZBins()

Int_t TGLPlotCoordinates::GetNZBins ( ) const

Number of Z bins.

Definition at line 784 of file TGLPlotPainter.cxx.

◆ GetXBins()

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

X bins range.

Definition at line 792 of file TGLPlotPainter.cxx.

◆ GetXLength()

Double_t TGLPlotCoordinates::GetXLength ( ) const

X length.

Definition at line 824 of file TGLPlotPainter.cxx.

◆ GetXLog()

Bool_t TGLPlotCoordinates::GetXLog ( ) const

Get X log.

Definition at line 686 of file TGLPlotPainter.cxx.

◆ GetXRange()

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

X range.

Definition at line 816 of file TGLPlotPainter.cxx.

◆ GetXRangeScaled()

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

Scaled range.

Definition at line 866 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 800 of file TGLPlotPainter.cxx.

◆ GetYLength()

Double_t TGLPlotCoordinates::GetYLength ( ) const

Y length.

Definition at line 840 of file TGLPlotPainter.cxx.

◆ GetYLog()

Bool_t TGLPlotCoordinates::GetYLog ( ) const

Get Y log.

Definition at line 706 of file TGLPlotPainter.cxx.

◆ GetYRange()

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

Y range.

Definition at line 832 of file TGLPlotPainter.cxx.

◆ GetYRangeScaled()

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

Scaled range.

Definition at line 874 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 808 of file TGLPlotPainter.cxx.

◆ GetZLength()

Double_t TGLPlotCoordinates::GetZLength ( ) const

Z length.

Definition at line 857 of file TGLPlotPainter.cxx.

◆ GetZLog()

Bool_t TGLPlotCoordinates::GetZLog ( ) const

Get Z log.

Definition at line 726 of file TGLPlotPainter.cxx.

◆ GetZRange()

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

Z range.

Definition at line 849 of file TGLPlotPainter.cxx.

◆ GetZRangeScaled()

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

Scaled range.

Definition at line 882 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 742 of file TGLPlotPainter.cxx.

◆ operator=()

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

◆ ResetModified()

void TGLPlotCoordinates::ResetModified ( )

Reset modified.

Definition at line 734 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 655 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 1030 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 750 of file TGLPlotPainter.cxx.

◆ SetRanges() [3/3]

Bool_t TGLPlotCoordinates::SetRanges ( TH2Poly hist)

Set bin ranges, ranges, etc.

Definition at line 979 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 909 of file TGLPlotPainter.cxx.

◆ SetRangesCylindrical()

Bool_t TGLPlotCoordinates::SetRangesCylindrical ( const TH1 hist)
private

Set ranges cylindrical.

Definition at line 1141 of file TGLPlotPainter.cxx.

◆ SetRangesPolar()

Bool_t TGLPlotCoordinates::SetRangesPolar ( const TH1 hist)
private

Set bin ranges, ranges, etc.

Definition at line 1086 of file TGLPlotPainter.cxx.

◆ SetRangesSpherical()

Bool_t TGLPlotCoordinates::SetRangesSpherical ( const TH1 hist)
private

Set ranges spherical.

Definition at line 1194 of file TGLPlotPainter.cxx.

◆ SetXLog()

void TGLPlotCoordinates::SetXLog ( Bool_t  xLog)

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

Definition at line 675 of file TGLPlotPainter.cxx.

◆ SetYLog()

void TGLPlotCoordinates::SetYLog ( Bool_t  yLog)

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

Definition at line 695 of file TGLPlotPainter.cxx.

◆ SetZLog()

void TGLPlotCoordinates::SetZLog ( Bool_t  zLog)

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

Definition at line 715 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.


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