Logo ROOT   6.14/05
Reference Guide
List of all members | Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ROOT::Experimental::TPadUserAxisBase Class Referenceabstract

Definition at line 31 of file TPadUserAxis.hxx.

Public Types

enum  EAxisBoundsKind { kAxisBoundsAuto, kAxisBoundsBegin = 1, kAxisBoundsEnd = 2, kAxisBoundsBeginEnd = kAxisBoundsBegin | kAxisBoundsEnd }
 Types of axis bounds to respect by the painter. More...
 

Public Member Functions

virtual ~TPadUserAxisBase ()
 
double GetBegin () const
 
EAxisBoundsKind GetBoundsKind () const
 
double GetEnd () const
 
bool RespectBegin () const
 
bool RespectEnd () const
 
void SetAutoBounds ()
 
void SetBegin (double begin)
 
void SetBound (EAxisBoundsKind boundKind, double bound)
 
void SetBounds (double begin, double end)
 
void SetEnd (double end)
 
virtual TPadLength::Normal ToNormal (const TPadLength::User &) const =0
 Convert user coordinates to normal coordinates. More...
 

Protected Member Functions

 TPadUserAxisBase ()=default
 Allow derived classes to default construct a TPadUserAxisBase. More...
 
 TPadUserAxisBase (double begin, double end)
 Construct a cartesian axis from min and max, setting fBoundsKind to kAxisBoundsMinMax. More...
 
 TPadUserAxisBase (EAxisBoundsKind boundKind, double bound)
 Construct a cartesian axis with min or max, depending on the boundKind parameter. More...
 
 TPadUserAxisBase (const TPadUserAxisBase &)=default
 Disable spliced copy construction. More...
 
double GetSensibleDenominator () const
 For (pos-min)/(max-min) calculations, return a sensible, div-by-0 protected denominator. More...
 
TPadUserAxisBaseoperator= (const TPadUserAxisBase &)=default
 Disable spliced assignment. More...
 

Private Attributes

double fBegin = 0.
 Begin of the axis range (but see fBoundsKind) More...
 
int fBoundsKind = kAxisBoundsAuto
 Axis bounds to be used by the painter. More...
 
double fEnd = 1.
 End of the axis range (but see fBoundsKind) More...
 

#include <ROOT/TPadUserAxis.hxx>

Inheritance diagram for ROOT::Experimental::TPadUserAxisBase:
[legend]

Member Enumeration Documentation

◆ EAxisBoundsKind

Types of axis bounds to respect by the painter.

Non-fixed ones will be updated by the painter once the first paint has happened.

Enumerator
kAxisBoundsAuto 

no defined axis range; the painter will decide

kAxisBoundsBegin 

the axis begin is to be respected by the painter.

kAxisBoundsEnd 

the axis end is to be respected by the painter.

kAxisBoundsBeginEnd 

the axis minimum and maximum are to be respected by the painter

Definition at line 35 of file TPadUserAxis.hxx.

Constructor & Destructor Documentation

◆ TPadUserAxisBase() [1/4]

ROOT::Experimental::TPadUserAxisBase::TPadUserAxisBase ( )
protecteddefault

Allow derived classes to default construct a TPadUserAxisBase.

◆ TPadUserAxisBase() [2/4]

ROOT::Experimental::TPadUserAxisBase::TPadUserAxisBase ( double  begin,
double  end 
)
inlineprotected

Construct a cartesian axis from min and max, setting fBoundsKind to kAxisBoundsMinMax.

Definition at line 57 of file TPadUserAxis.hxx.

◆ TPadUserAxisBase() [3/4]

ROOT::Experimental::TPadUserAxisBase::TPadUserAxisBase ( EAxisBoundsKind  boundKind,
double  bound 
)
inlineprotected

Construct a cartesian axis with min or max, depending on the boundKind parameter.

Definition at line 60 of file TPadUserAxis.hxx.

◆ TPadUserAxisBase() [4/4]

ROOT::Experimental::TPadUserAxisBase::TPadUserAxisBase ( const TPadUserAxisBase )
protecteddefault

Disable spliced copy construction.

◆ ~TPadUserAxisBase()

ROOT::Experimental::TPadUserAxisBase::~TPadUserAxisBase ( )
virtual

Definition at line 11 of file TPadUserAxis.cxx.

Member Function Documentation

◆ GetBegin()

double ROOT::Experimental::TPadUserAxisBase::GetBegin ( ) const
inline

Definition at line 84 of file TPadUserAxis.hxx.

◆ GetBoundsKind()

EAxisBoundsKind ROOT::Experimental::TPadUserAxisBase::GetBoundsKind ( ) const
inline

Definition at line 80 of file TPadUserAxis.hxx.

◆ GetEnd()

double ROOT::Experimental::TPadUserAxisBase::GetEnd ( ) const
inline

Definition at line 85 of file TPadUserAxis.hxx.

◆ GetSensibleDenominator()

double ROOT::Experimental::TPadUserAxisBase::GetSensibleDenominator ( ) const
inlineprotected

For (pos-min)/(max-min) calculations, return a sensible, div-by-0 protected denominator.

Definition at line 70 of file TPadUserAxis.hxx.

◆ operator=()

TPadUserAxisBase& ROOT::Experimental::TPadUserAxisBase::operator= ( const TPadUserAxisBase )
protecteddefault

Disable spliced assignment.

◆ RespectBegin()

bool ROOT::Experimental::TPadUserAxisBase::RespectBegin ( ) const
inline

Definition at line 81 of file TPadUserAxis.hxx.

◆ RespectEnd()

bool ROOT::Experimental::TPadUserAxisBase::RespectEnd ( ) const
inline

Definition at line 82 of file TPadUserAxis.hxx.

◆ SetAutoBounds()

void ROOT::Experimental::TPadUserAxisBase::SetAutoBounds ( )
inline

Definition at line 94 of file TPadUserAxis.hxx.

◆ SetBegin()

void ROOT::Experimental::TPadUserAxisBase::SetBegin ( double  begin)
inline

Definition at line 96 of file TPadUserAxis.hxx.

◆ SetBound()

void ROOT::Experimental::TPadUserAxisBase::SetBound ( EAxisBoundsKind  boundKind,
double  bound 
)
inline

Definition at line 93 of file TPadUserAxis.hxx.

◆ SetBounds()

void ROOT::Experimental::TPadUserAxisBase::SetBounds ( double  begin,
double  end 
)
inline

Definition at line 87 of file TPadUserAxis.hxx.

◆ SetEnd()

void ROOT::Experimental::TPadUserAxisBase::SetEnd ( double  end)
inline

Definition at line 97 of file TPadUserAxis.hxx.

◆ ToNormal()

virtual TPadLength::Normal ROOT::Experimental::TPadUserAxisBase::ToNormal ( const TPadLength::User ) const
pure virtual

Convert user coordinates to normal coordinates.

Implemented in ROOT::Experimental::TPadCartesianUserAxis.

Member Data Documentation

◆ fBegin

double ROOT::Experimental::TPadUserAxisBase::fBegin = 0.
private

Begin of the axis range (but see fBoundsKind)

Definition at line 47 of file TPadUserAxis.hxx.

◆ fBoundsKind

int ROOT::Experimental::TPadUserAxisBase::fBoundsKind = kAxisBoundsAuto
private

Axis bounds to be used by the painter.

Definition at line 44 of file TPadUserAxis.hxx.

◆ fEnd

double ROOT::Experimental::TPadUserAxisBase::fEnd = 1.
private

End of the axis range (but see fBoundsKind)

Definition at line 50 of file TPadUserAxis.hxx.


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