ROOT logo
ROOT » GRAF3D » GL » TGLPlotCoordinates

class TGLPlotCoordinates


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

Function Members (Methods)

public:
TGLPlotCoordinates()
virtual~TGLPlotCoordinates()
static TClass*Class()
EGLCoordTypeGetCoordType() const
Double_tGetFactor() const
Int_tGetFirstXBin() const
Int_tGetFirstYBin() const
Int_tGetFirstZBin() const
Int_tGetLastXBin() const
Int_tGetLastYBin() const
Int_tGetLastZBin() const
Int_tGetNXBins() const
Int_tGetNYBins() const
Int_tGetNZBins() const
const Rgl::BinRange_t&GetXBins() const
Double_tGetXLength() const
Bool_tGetXLog() const
const Rgl::Range_t&GetXRange() const
const Rgl::Range_t&GetXRangeScaled() const
Double_tGetXScale() const
const Rgl::BinRange_t&GetYBins() const
Double_tGetYLength() const
Bool_tGetYLog() const
const Rgl::Range_t&GetYRange() const
const Rgl::Range_t&GetYRangeScaled() const
Double_tGetYScale() const
const Rgl::BinRange_t&GetZBins() const
Double_tGetZLength() const
Bool_tGetZLog() const
const Rgl::Range_t&GetZRange() const
const Rgl::Range_t&GetZRangeScaled() const
Double_tGetZScale() const
virtual TClass*IsA() const
Bool_tModified() const
voidResetModified()
voidSetCoordType(EGLCoordType type)
Bool_tSetRanges(const TH1* hist, Bool_t errors = kFALSE, Bool_t zBins = kFALSE)
Bool_tSetRanges(const TAxis* xAxis, const TAxis* yAxis, const TAxis* zAxis)
voidSetXLog(Bool_t xLog)
voidSetYLog(Bool_t yLog)
voidSetZLog(Bool_t zLog)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

private:
EGLCoordTypefCoordType
Double_tfFactor
Bool_tfModified
pair<int,int>fXBins
Bool_tfXLog
pair<double,double>fXRange
pair<double,double>fXRangeScaled
Double_tfXScale
pair<int,int>fYBins
Bool_tfYLog
pair<double,double>fYRange
pair<double,double>fYRangeScaled
Double_tfYScale
pair<int,int>fZBins
Bool_tfZLog
pair<double,double>fZRange
pair<double,double>fZRangeScaled
Double_tfZScale

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLPlotCoordinates()
Constructor.
~TGLPlotCoordinates()
Destructor.
void SetCoordType(EGLCoordType type)
If coord type was changed, plot must reset sections (if any),
set fModified.
EGLCoordType GetCoordType() const
 Get coordinates type.
void SetXLog(Bool_t xLog)
If log changed, sections must be reset,
set fModified.
Bool_t GetXLog() const
 Get X log.
void SetYLog(Bool_t yLog)
If log changed, sections must be reset,
set fModified.
Bool_t GetYLog() const
 Get Y log.
void SetZLog(Bool_t zLog)
If log changed, sections must be reset,
set fModified.
Bool_t GetZLog() const
 Get Z log.
void ResetModified()
 Reset modified.
Bool_t Modified() const
Bool_t SetRanges(const TH1 *hist, Bool_t errors, Bool_t zBins)
Set bin ranges, ranges.
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_t & GetXBins() const
X bins range.
const Rgl::BinRange_t & GetYBins() const
Y bins range.
const Rgl::BinRange_t & GetZBins() const
Z bins range.
const Rgl::Range_t & GetXRange() const
X range.
Double_t GetXLength() const
X length.
const Rgl::Range_t & GetYRange() const
Y range.
Double_t GetYLength() const
Y length.
const Rgl::Range_t & GetZRange() const
Z range.
Double_t GetZLength() const
Z length.
const Rgl::Range_t & GetXRangeScaled() const
Scaled range.
const Rgl::Range_t & GetYRangeScaled() const
Scaled range.
const Rgl::Range_t & GetZRangeScaled() const
Scaled range.
Double_t GetFactor() const
 Get factor.
Bool_t SetRangesCartesian(const TH1* hist, Bool_t errors = kFALSE, Bool_t zBins = kFALSE)
Set bin ranges, ranges, etc.
Bool_t SetRanges(const TAxis *xAxis, const TAxis *yAxis, const TAxis *zAxis)
Set bin ranges, ranges, etc.
Bool_t SetRangesPolar(const TH1* hist)
Set bin ranges, ranges, etc.
Bool_t SetRangesCylindrical(const TH1* hist)
 Set ranges cylindrical.
Bool_t SetRangesSpherical(const TH1* hist)
 Set ranges spherical.
TGLPlotCoordinates()
Double_t GetXScale() const
{return fXScale;}
Double_t GetYScale() const
{return fYScale;}
Double_t GetZScale() const
{return fZScale;}
Int_t GetFirstXBin() const
{return fXBins.first;}
Int_t GetLastXBin() const
{return fXBins.second;}
Int_t GetFirstYBin() const
{return fYBins.first;}
Int_t GetLastYBin() const
{return fYBins.second;}
Int_t GetFirstZBin() const
{return fZBins.first;}
Int_t GetLastZBin() const
{return fZBins.second;}