ROOT  6.06/09
Reference Guide
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 320 of file TGLPlotPainter.h.

Public Member Functions

 TGLPlotCoordinates ()
 
virtual ~TGLPlotCoordinates ()
 Destructor. More...
 
void SetCoordType (EGLCoordType type)
 If coord type was changed, plot must reset sections (if any), set fModified. More...
 
EGLCoordType GetCoordType () const
 Get coordinates type. More...
 
void SetXLog (Bool_t xLog)
 If log changed, sections must be reset, set fModified. More...
 
Bool_t GetXLog () const
 Get X log. More...
 
void SetYLog (Bool_t yLog)
 If log changed, sections must be reset, set fModified. More...
 
Bool_t GetYLog () const
 Get Y log. More...
 
void SetZLog (Bool_t zLog)
 If log changed, sections must be reset, set fModified. More...
 
Bool_t GetZLog () const
 Get Z log. More...
 
void ResetModified ()
 Reset modified. More...
 
Bool_t Modified () const
 Modified. 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...
 
Bool_t SetRanges (const TAxis *xAxis, const TAxis *yAxis, const TAxis *zAxis)
 Set bin ranges, ranges, etc. More...
 
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...
 
const Rgl::BinRange_tGetYBins () const
 Y bins range. More...
 
const Rgl::BinRange_tGetZBins () const
 Z bins range. More...
 
const Rgl::Range_tGetXRange () const
 X range. More...
 
Double_t GetXLength () const
 X length. More...
 
const Rgl::Range_tGetYRange () const
 Y range. More...
 
Double_t GetYLength () const
 Y length. More...
 
const Rgl::Range_tGetZRange () const
 Z range. More...
 
Double_t GetZLength () const
 Z length. More...
 
const Rgl::Range_tGetXRangeScaled () const
 Scaled range. More...
 
const Rgl::Range_tGetYRangeScaled () const
 Scaled range. More...
 
const Rgl::Range_tGetZRangeScaled () const
 Scaled range. More...
 
Double_t GetXScale () const
 
Double_t GetYScale () const
 
Double_t GetZScale () const
 
Int_t GetFirstXBin () const
 
Int_t GetLastXBin () const
 
Int_t GetFirstYBin () const
 
Int_t GetLastYBin () const
 
Int_t GetFirstZBin () const
 
Int_t GetLastZBin () const
 
Double_t GetFactor () const
 Get factor. More...
 

Private Member Functions

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

Private Attributes

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

#include <TGLPlotPainter.h>

Constructor & Destructor Documentation

TGLPlotCoordinates::TGLPlotCoordinates ( )
TGLPlotCoordinates::~TGLPlotCoordinates ( )
virtual

Destructor.

Definition at line 647 of file TGLPlotPainter.cxx.

TGLPlotCoordinates::TGLPlotCoordinates ( const TGLPlotCoordinates )
private

Member Function Documentation

EGLCoordType TGLPlotCoordinates::GetCoordType ( ) const
Double_t TGLPlotCoordinates::GetFactor ( ) const

Get factor.

Definition at line 890 of file TGLPlotPainter.cxx.

Referenced by TGLLegoPainter::DrawLegoCartesian().

Int_t TGLPlotCoordinates::GetFirstXBin ( ) const
inline
Int_t TGLPlotCoordinates::GetFirstYBin ( ) const
inline
Int_t TGLPlotCoordinates::GetFirstZBin ( ) const
inline
Int_t TGLPlotCoordinates::GetLastXBin ( ) const
inline
Int_t TGLPlotCoordinates::GetLastYBin ( ) const
inline
Int_t TGLPlotCoordinates::GetLastZBin ( ) const
inline
Int_t TGLPlotCoordinates::GetNXBins ( ) const
Int_t TGLPlotCoordinates::GetNYBins ( ) const
Int_t TGLPlotCoordinates::GetNZBins ( ) const
const Rgl::BinRange_t & TGLPlotCoordinates::GetXBins ( ) const

X bins range.

Definition at line 792 of file TGLPlotPainter.cxx.

Double_t TGLPlotCoordinates::GetXLength ( ) const

X length.

Definition at line 824 of file TGLPlotPainter.cxx.

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

X range.

Definition at line 816 of file TGLPlotPainter.cxx.

Referenced by Rgl::DrawAxes().

const Rgl::Range_t & TGLPlotCoordinates::GetXRangeScaled ( ) const
Double_t TGLPlotCoordinates::GetXScale ( ) const
inline
const Rgl::BinRange_t & TGLPlotCoordinates::GetYBins ( ) const

Y bins range.

Definition at line 800 of file TGLPlotPainter.cxx.

Double_t TGLPlotCoordinates::GetYLength ( ) const

Y length.

Definition at line 840 of file TGLPlotPainter.cxx.

Referenced by TGLLegoPainter::InitGeometryPolar().

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

Y range.

Definition at line 832 of file TGLPlotPainter.cxx.

Referenced by Rgl::DrawAxes(), and TGLLegoPainter::InitGeometryPolar().

const Rgl::Range_t & TGLPlotCoordinates::GetYRangeScaled ( ) const
Double_t TGLPlotCoordinates::GetYScale ( ) const
inline
const Rgl::BinRange_t & TGLPlotCoordinates::GetZBins ( ) const

Z bins range.

Definition at line 808 of file TGLPlotPainter.cxx.

Double_t TGLPlotCoordinates::GetZLength ( ) const
Bool_t TGLPlotCoordinates::GetZLog ( ) const
const Rgl::Range_t & TGLPlotCoordinates::GetZRange ( ) const
const Rgl::Range_t & TGLPlotCoordinates::GetZRangeScaled ( ) const
Double_t TGLPlotCoordinates::GetZScale ( ) const
inline
Bool_t TGLPlotCoordinates::Modified ( ) const
TGLPlotCoordinates& TGLPlotCoordinates::operator= ( const TGLPlotCoordinates )
private
void TGLPlotCoordinates::ResetModified ( )
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.

Referenced by TGLSurfacePainter::AddOption(), TGLHistPainter::CreatePainter(), TGLTF3Painter::InitGeometry(), TGL5DPainter::InitGeometry(), TGLIsoPainter::InitGeometry(), TF2GL::SetModel(), and TH2GL::SetModel().

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

Set bin ranges, ranges, etc.

Definition at line 979 of file TGLPlotPainter.cxx.

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.

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.

Bool_t TGLPlotCoordinates::SetRangesCylindrical ( const TH1 hist)
private

Set ranges cylindrical.

Definition at line 1141 of file TGLPlotPainter.cxx.

Bool_t TGLPlotCoordinates::SetRangesPolar ( const TH1 hist)
private

Set bin ranges, ranges, etc.

Definition at line 1086 of file TGLPlotPainter.cxx.

Bool_t TGLPlotCoordinates::SetRangesSpherical ( const TH1 hist)
private

Set ranges spherical.

Definition at line 1194 of file TGLPlotPainter.cxx.

void TGLPlotCoordinates::SetXLog ( Bool_t  xLog)
void TGLPlotCoordinates::SetYLog ( Bool_t  yLog)
void TGLPlotCoordinates::SetZLog ( Bool_t  zLog)

Member Data Documentation

EGLCoordType TGLPlotCoordinates::fCoordType
private

Definition at line 322 of file TGLPlotPainter.h.

Double_t TGLPlotCoordinates::fFactor
private

Definition at line 345 of file TGLPlotPainter.h.

Bool_t TGLPlotCoordinates::fModified
private

Definition at line 344 of file TGLPlotPainter.h.

Rgl::BinRange_t TGLPlotCoordinates::fXBins
private

Definition at line 324 of file TGLPlotPainter.h.

Bool_t TGLPlotCoordinates::fXLog
private

Definition at line 340 of file TGLPlotPainter.h.

Rgl::Range_t TGLPlotCoordinates::fXRange
private

Definition at line 332 of file TGLPlotPainter.h.

Rgl::Range_t TGLPlotCoordinates::fXRangeScaled
private

Definition at line 336 of file TGLPlotPainter.h.

Double_t TGLPlotCoordinates::fXScale
private

Definition at line 328 of file TGLPlotPainter.h.

Referenced by GetXScale().

Rgl::BinRange_t TGLPlotCoordinates::fYBins
private

Definition at line 325 of file TGLPlotPainter.h.

Bool_t TGLPlotCoordinates::fYLog
private

Definition at line 341 of file TGLPlotPainter.h.

Rgl::Range_t TGLPlotCoordinates::fYRange
private

Definition at line 333 of file TGLPlotPainter.h.

Rgl::Range_t TGLPlotCoordinates::fYRangeScaled
private

Definition at line 337 of file TGLPlotPainter.h.

Double_t TGLPlotCoordinates::fYScale
private

Definition at line 329 of file TGLPlotPainter.h.

Referenced by GetYScale().

Rgl::BinRange_t TGLPlotCoordinates::fZBins
private

Definition at line 326 of file TGLPlotPainter.h.

Bool_t TGLPlotCoordinates::fZLog
private

Definition at line 342 of file TGLPlotPainter.h.

Rgl::Range_t TGLPlotCoordinates::fZRange
private

Definition at line 334 of file TGLPlotPainter.h.

Rgl::Range_t TGLPlotCoordinates::fZRangeScaled
private

Definition at line 338 of file TGLPlotPainter.h.

Double_t TGLPlotCoordinates::fZScale
private

Definition at line 330 of file TGLPlotPainter.h.

Referenced by GetZScale().


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