Base class for user coordinates (e.g.
for histograms) used by RPad
and RCanvas
.
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 | |
virtual | ~RPadUserAxisBase () |
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 RPadLength::Normal | ToNormal (const RPadLength::User &) const =0 |
Convert user coordinates to normal coordinates. | |
Protected Member Functions | |
RPadUserAxisBase ()=default | |
Allow derived classes to default construct a RPadUserAxisBase. | |
RPadUserAxisBase (const RPadUserAxisBase &)=default | |
Disable spliced copy construction. | |
RPadUserAxisBase (double begin, double end) | |
Construct a cartesian axis from min and max, setting fBoundsKind to kAxisBoundsMinMax. | |
RPadUserAxisBase (EAxisBoundsKind boundKind, double bound) | |
Construct a cartesian axis with min or max, depending on the boundKind parameter. | |
double | GetSensibleDenominator () const |
For (pos-min)/(max-min) calculations, return a sensible, div-by-0 protected denominator. | |
RPadUserAxisBase & | operator= (const RPadUserAxisBase &)=default |
Disable spliced assignment. | |
Private Attributes | |
double | fBegin = 0. |
Begin of the axis range (but see fBoundsKind) | |
int | fBoundsKind = kAxisBoundsAuto |
Axis bounds to be used by the painter. | |
double | fEnd = 1. |
End of the axis range (but see fBoundsKind) | |
#include <ROOT/RPadUserAxis.hxx>
Types of axis bounds to respect by the painter.
Non-fixed ones will be updated by the painter once the first paint has happened.
Definition at line 32 of file RPadUserAxis.hxx.
|
protecteddefault |
Allow derived classes to default construct a RPadUserAxisBase.
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.
|
inline |
Definition at line 81 of file RPadUserAxis.hxx.
|
inline |
Definition at line 77 of file RPadUserAxis.hxx.
|
inline |
Definition at line 82 of file RPadUserAxis.hxx.
|
inlineprotected |
For (pos-min)/(max-min) calculations, return a sensible, div-by-0 protected denominator.
Definition at line 67 of file RPadUserAxis.hxx.
|
protecteddefault |
Disable spliced assignment.
|
inline |
Definition at line 78 of file RPadUserAxis.hxx.
|
inline |
Definition at line 79 of file RPadUserAxis.hxx.
|
inline |
Definition at line 91 of file RPadUserAxis.hxx.
Definition at line 93 of file RPadUserAxis.hxx.
|
inline |
Definition at line 90 of file RPadUserAxis.hxx.
Definition at line 84 of file RPadUserAxis.hxx.
Definition at line 94 of file RPadUserAxis.hxx.
|
pure virtual |
Convert user coordinates to normal coordinates.
Implemented in ROOT::Experimental::RPadCartesianUserAxis.
|
private |
Begin of the axis range (but see fBoundsKind)
Definition at line 44 of file RPadUserAxis.hxx.
|
private |
Axis bounds to be used by the painter.
Definition at line 41 of file RPadUserAxis.hxx.
|
private |
End of the axis range (but see fBoundsKind)
Definition at line 47 of file RPadUserAxis.hxx.