ROOT   Reference Guide

Base class for user coordinates (e.g.

for histograms) used by RPad and RCanvas.

Date
2017-07-15
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 28 of file RPadUserAxis.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

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)

Convert user coordinates to normal coordinates. More...

## Protected Member Functions

Allow derived classes to default construct a RPadUserAxisBase. More...

Disable spliced copy construction. More...

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

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

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

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/RPadUserAxis.hxx>

[legend]

## ◆ 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 32 of file RPadUserAxis.hxx.

## Constructor & Destructor Documentation

protecteddefault

Allow derived classes to default construct a RPadUserAxisBase.

inlineprotected

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

Definition at line 54 of file RPadUserAxis.hxx.

inlineprotected

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

Definition at line 57 of file RPadUserAxis.hxx.

protecteddefault

Disable spliced copy construction.

virtual

Definition at line 12 of file RPadUserAxis.cxx.

## ◆ GetBegin()

inline

Definition at line 81 of file RPadUserAxis.hxx.

## ◆ GetBoundsKind()

inline

Definition at line 77 of file RPadUserAxis.hxx.

## ◆ GetEnd()

inline

Definition at line 82 of file RPadUserAxis.hxx.

## ◆ GetSensibleDenominator()

inlineprotected

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

Definition at line 67 of file RPadUserAxis.hxx.

## ◆ operator=()

protecteddefault

Disable spliced assignment.

## ◆ RespectBegin()

inline

Definition at line 78 of file RPadUserAxis.hxx.

## ◆ RespectEnd()

inline

Definition at line 79 of file RPadUserAxis.hxx.

## ◆ SetAutoBounds()

inline

Definition at line 91 of file RPadUserAxis.hxx.

## ◆ SetBegin()

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

Definition at line 93 of file RPadUserAxis.hxx.

## ◆ SetBound()

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

Definition at line 90 of file RPadUserAxis.hxx.

## ◆ SetBounds()

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

Definition at line 84 of file RPadUserAxis.hxx.

## ◆ SetEnd()

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

Definition at line 94 of file RPadUserAxis.hxx.

## ◆ ToNormal()

pure virtual

Convert user coordinates to normal coordinates.

## ◆ fBegin

private

Begin of the axis range (but see fBoundsKind)

Definition at line 44 of file RPadUserAxis.hxx.

## ◆ fBoundsKind

private

Axis bounds to be used by the painter.

Definition at line 41 of file RPadUserAxis.hxx.