Logo ROOT   6.14/05
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 836 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 846 of file TAxis.hxx.

◆ TAxisView() [3/3]

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

Construct a view on a TAxisIrregular.

Definition at line 849 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 854 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 899 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 901 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 875 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 883 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 891 of file TAxis.hxx.

◆ GetFrom()

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

Get the lower axis limit.

Definition at line 870 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 862 of file TAxis.hxx.

◆ GetTitle()

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

Definition at line 851 of file TAxis.hxx.

◆ GetTo()

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

Get the upper axis limit.

Definition at line 872 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 838 of file TAxis.hxx.

◆ fIrr

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

View on a TAxisIrregular.

Definition at line 840 of file TAxis.hxx.

Libraries for ROOT::Experimental::TAxisView:
[legend]

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