Logo ROOT   6.08/07
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
ROOT::Experimental::TAxisView Class Reference

Common view on a TAxis, no matter what its kind.

Definition at line 891 of file TAxis.hxx.

Public Member Functions

 TAxisView ()=default
 
 TAxisView (const TAxisEquidistant &equi)
 Construct a view on a TAxisEquidistant, TAxisGrow or TAxisLabel. More...
 
 TAxisView (const TAxisIrregular &irr)
 Construct a view on a TAxisIrregular. More...
 
int FindBin (double x) const noexcept
 Find the bin containing coordinate x. Forwards to the underlying axis. More...
 
const TAxisEquidistantGetAsEquidistant () const
 Get the axis as a TAxisEquidistant; returns nullptr if it's a TAxisIrregular. More...
 
const TAxisIrregularGetAsIrregular () const
 Get the axis as a TAxisIrregular; returns nullptr if it's a TAxisEquidistant. More...
 
double GetBinCenter (int i) const noexcept
 Get the bin center of bin index i. Forwards to the underlying axis. More...
 
double GetBinFrom (int i) const noexcept
 Get the minimal coordinate of bin index i. Forwards to the underlying axis. More...
 
double GetBinTo (int i) const noexcept
 Get the maximal coordinate of bin index i. Forwards to the underlying axis. More...
 
double GetFrom () const
 Get the lower axis limit. More...
 
int GetNBins () const noexcept
 Get the number of bins. Forwards to the underlying axis. More...
 
const std::string & GetTitle () const
 
double GetTo () const
 Get the upper axis limit. More...
 

Private Attributes

const TAxisEquidistantfEqui = nullptr
 View on a TAxisEquidistant, TAxisGrow or TAxisLabel. More...
 
const TAxisIrregularfIrr = nullptr
 View on a TAxisIrregular. More...
 

#include <ROOT/TAxis.hxx>

Constructor & Destructor Documentation

◆ TAxisView() [1/3]

ROOT::Experimental::TAxisView::TAxisView ( )
default

◆ TAxisView() [2/3]

ROOT::Experimental::TAxisView::TAxisView ( const TAxisEquidistant equi)
inline

Construct a view on a TAxisEquidistant, TAxisGrow or TAxisLabel.

Definition at line 901 of file TAxis.hxx.

◆ TAxisView() [3/3]

ROOT::Experimental::TAxisView::TAxisView ( const TAxisIrregular irr)
inline

Construct a view on a TAxisIrregular.

Definition at line 904 of file TAxis.hxx.

Member Function Documentation

◆ FindBin()

int ROOT::Experimental::TAxisView::FindBin ( double  x) const
inlinenoexcept

Find the bin containing coordinate x. Forwards to the underlying axis.

Definition at line 911 of file TAxis.hxx.

◆ GetAsEquidistant()

const TAxisEquidistant* ROOT::Experimental::TAxisView::GetAsEquidistant ( ) const
inline

Get the axis as a TAxisEquidistant; returns nullptr if it's a TAxisIrregular.

Definition at line 951 of file TAxis.hxx.

◆ GetAsIrregular()

const TAxisIrregular* ROOT::Experimental::TAxisView::GetAsIrregular ( ) const
inline

Get the axis as a TAxisIrregular; returns nullptr if it's a TAxisEquidistant.

Definition at line 953 of file TAxis.hxx.

◆ GetBinCenter()

double ROOT::Experimental::TAxisView::GetBinCenter ( int  i) const
inlinenoexcept

Get the bin center of bin index i. Forwards to the underlying axis.

Definition at line 930 of file TAxis.hxx.

◆ GetBinFrom()

double ROOT::Experimental::TAxisView::GetBinFrom ( int  i) const
inlinenoexcept

Get the minimal coordinate of bin index i. Forwards to the underlying axis.

Definition at line 937 of file TAxis.hxx.

◆ GetBinTo()

double ROOT::Experimental::TAxisView::GetBinTo ( int  i) const
inlinenoexcept

Get the maximal coordinate of bin index i. Forwards to the underlying axis.

Definition at line 944 of file TAxis.hxx.

◆ GetFrom()

double ROOT::Experimental::TAxisView::GetFrom ( ) const
inline

Get the lower axis limit.

Definition at line 925 of file TAxis.hxx.

◆ GetNBins()

int ROOT::Experimental::TAxisView::GetNBins ( ) const
inlinenoexcept

Get the number of bins. Forwards to the underlying axis.

Definition at line 918 of file TAxis.hxx.

◆ GetTitle()

const std::string& ROOT::Experimental::TAxisView::GetTitle ( ) const
inline

Definition at line 906 of file TAxis.hxx.

◆ GetTo()

double ROOT::Experimental::TAxisView::GetTo ( ) const
inline

Get the upper axis limit.

Definition at line 927 of file TAxis.hxx.

Member Data Documentation

◆ fEqui

const TAxisEquidistant* ROOT::Experimental::TAxisView::fEqui = nullptr
private

View on a TAxisEquidistant, TAxisGrow or TAxisLabel.

Definition at line 893 of file TAxis.hxx.

◆ fIrr

const TAxisIrregular* ROOT::Experimental::TAxisView::fIrr = nullptr
private

View on a TAxisIrregular.

Definition at line 895 of file TAxis.hxx.


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