Logo ROOT  
Reference Guide
ROOT::Experimental::RAxisView Class Reference

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

Definition at line 836 of file RAxis.hxx.

Public Member Functions

 RAxisView ()=default
 
 RAxisView (const RAxisEquidistant &equi)
 Construct a view on a RAxisEquidistant, RAxisGrow or RAxisLabel. More...
 
 RAxisView (const RAxisIrregular &irr)
 Construct a view on a RAxisIrregular. More...
 
int FindBin (double x) const noexcept
 Find the bin containing coordinate x. Forwards to the underlying axis. More...
 
const RAxisEquidistantGetAsEquidistant () const
 Get the axis as a RAxisEquidistant; returns nullptr if it's a RAxisIrregular. More...
 
const RAxisIrregularGetAsIrregular () const
 Get the axis as a RAxisIrregular; returns nullptr if it's a RAxisEquidistant. 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 RAxisEquidistantfEqui = nullptr
 View on a RAxisEquidistant, RAxisGrow or RAxisLabel. More...
 
const RAxisIrregularfIrr = nullptr
 View on a RAxisIrregular. More...
 

#include <ROOT/RAxis.hxx>

Constructor & Destructor Documentation

◆ RAxisView() [1/3]

ROOT::Experimental::RAxisView::RAxisView ( )
default

◆ RAxisView() [2/3]

ROOT::Experimental::RAxisView::RAxisView ( const RAxisEquidistant equi)
inline

Construct a view on a RAxisEquidistant, RAxisGrow or RAxisLabel.

Definition at line 846 of file RAxis.hxx.

◆ RAxisView() [3/3]

ROOT::Experimental::RAxisView::RAxisView ( const RAxisIrregular irr)
inline

Construct a view on a RAxisIrregular.

Definition at line 849 of file RAxis.hxx.

Member Function Documentation

◆ FindBin()

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

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

Definition at line 854 of file RAxis.hxx.

◆ GetAsEquidistant()

const RAxisEquidistant * ROOT::Experimental::RAxisView::GetAsEquidistant ( ) const
inline

Get the axis as a RAxisEquidistant; returns nullptr if it's a RAxisIrregular.

Definition at line 899 of file RAxis.hxx.

◆ GetAsIrregular()

const RAxisIrregular * ROOT::Experimental::RAxisView::GetAsIrregular ( ) const
inline

Get the axis as a RAxisIrregular; returns nullptr if it's a RAxisEquidistant.

Definition at line 901 of file RAxis.hxx.

◆ GetBinCenter()

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

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

Definition at line 875 of file RAxis.hxx.

◆ GetBinFrom()

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

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

Definition at line 883 of file RAxis.hxx.

◆ GetBinTo()

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

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

Definition at line 891 of file RAxis.hxx.

◆ GetFrom()

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

Get the lower axis limit.

Definition at line 870 of file RAxis.hxx.

◆ GetNBins()

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

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

Definition at line 862 of file RAxis.hxx.

◆ GetTitle()

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

Definition at line 851 of file RAxis.hxx.

◆ GetTo()

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

Get the upper axis limit.

Definition at line 872 of file RAxis.hxx.

Member Data Documentation

◆ fEqui

const RAxisEquidistant* ROOT::Experimental::RAxisView::fEqui = nullptr
private

View on a RAxisEquidistant, RAxisGrow or RAxisLabel.

Definition at line 838 of file RAxis.hxx.

◆ fIrr

const RAxisIrregular* ROOT::Experimental::RAxisView::fIrr = nullptr
private

View on a RAxisIrregular.

Definition at line 840 of file RAxis.hxx.

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

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