Logo ROOT  
Reference Guide
ROOT::Experimental::RAttrAxis Class Reference

All supported axes attributes for: line, ticks, labels, title, min/max, log, reverse, ...

Author
Sergey Linev s.lin.nosp@m.ev@g.nosp@m.si.de
Date
2020-02-20
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 99 of file RAttrAxis.hxx.

Public Member Functions

RAttrAxisClearMinMax ()
 
void ClearTimeDisplay ()
 
RAttrAxisClearZoom ()
 
std::string GetTitle () const
 
bool IsLn () const
 
bool IsLog10 () const
 
bool IsLog2 () const
 
bool IsLogScale () const
 
RAttrAxisSetMinMax (double _min, double _max)
 
RAttrAxisSetTimeDisplay (const std::string &fmt="", double offset=-1)
 
RAttrAxisSetTitle (const std::string &_title)
 
RAttrAxisSetZoom (double _zoomMin, double _zoomMax)
 
- Public Member Functions inherited from ROOT::Experimental::RAttrAggregation
 RAttrAggregation ()=default
 
 RAttrAggregation (const RAttrAggregation &src)
 
 RAttrAggregation (RAttrBase *parent, const char *prefix=nullptr)
 
 RAttrAggregation (RDrawable *drawable, const char *prefix=nullptr)
 
void Clear () override
 Clear all respective values from drawable. Only defaults can be used. More...
 
RAttrAggregationoperator= (const RAttrAggregation &src)
 
- Public Member Functions inherited from ROOT::Experimental::RAttrBase
 RAttrBase ()=default
 
virtual ~RAttrBase ()
 
virtual void Clear ()=0
 

Public Attributes

RAttrLineEnding ending {this, "ending"}
 ! ending attributes More...
 
RAttrAxisLabels labels {this, "labels"}
 ! labels attributes More...
 
RAttrLine line {this, "line"}
 ! line attributes More...
 
RAttrValue< doublelog {this, "log", 0}
 ! log scale, <1 off, 1 - base10, 2 - base 2, 2.71 - exp, 3, 4, ... More...
 
RAttrValue< doublemax {this, "max", 0.}
 ! axis max More...
 
RAttrValue< doublemin {this, "min", 0.}
 ! axis min More...
 
RAttrValue< bool > reverse {this, "reverse", false}
 ! reverse scale More...
 
RAttrValue< doublesymlog {this, "symlog", 0}
 ! symlog scale constant, 0 - off More...
 
RAttrAxisTicks ticks {this, "ticks"}
 ! ticks attributes More...
 
RAttrValue< bool > time {this, "time", false}
 ! time scale More...
 
RAttrValue< std::string > timeFormat {this, "timeFormat", ""}
 ! time format More...
 
RAttrValue< doubletimeOffset {this, "timeOffset", 0}
 ! offset for time axis values More...
 
RAttrAxisTitle title {this, "title"}
 ! title attributes More...
 
RAttrValue< doublezoomMax {this, "zoomMax", 0.}
 ! axis zoom max More...
 
RAttrValue< doublezoomMin {this, "zoomMin", 0.}
 ! axis zoom min More...
 

Private Member Functions

 R__ATTR_CLASS (RAttrAxis, "axis")
 

Additional Inherited Members

- Protected Member Functions inherited from ROOT::Experimental::RAttrAggregation
RAttrMap CollectDefaults () const override
 Collect all attributes in derived class Works only if such class has dictionary. More...
 
void CopyTo (RAttrAggregation &tgt, bool use_style=true) const
 Copy attributes into target object. More...
 
bool CopyValue (const std::string &name, const RAttrMap::Value_t &value, bool check_type=true)
 Copy attributes from other object. More...
 
virtual const RAttrMapGetDefaults () const
 Return default values for attributes, empty for base class. More...
 
bool IsAggregation () const final
 
bool IsSame (const RAttrAggregation &src, bool use_style=true) const
 Check if all values which are evaluated in this object are exactly the same as in tgt object. More...
 
bool IsValueEqual (const std::string &name, const RAttrMap::Value_t &value, bool use_style=false) const
 Check if provided value equal to attribute in the map. More...
 
- Protected Member Functions inherited from ROOT::Experimental::RAttrBase
 RAttrBase (const char *prefix)
 
 RAttrBase (RAttrBase *parent, const char *prefix=nullptr)
 
 RAttrBase (RDrawable *drawable, const char *prefix=nullptr)
 
const Rec_t AccessAttr (const std::string &name) const
 Find attributes container and full-qualified name for value. More...
 
const Val_t AccessValue (const std::string &name, bool use_style=true) const
 Search value with given name in attributes. More...
 
void ClearValue (const std::string &name)
 Clear value if any with specified name. More...
 
virtual RAttrMap CollectDefaults () const =0
 
Rec_t EnsureAttr (const std::string &name)
 Ensure attribute with give name exists - creates container for attributes if required. More...
 
RDrawableGetDrawable () const
 
RAttrMapGetOwnAttr () const
 
RAttrBaseGetParent () const
 
const char * GetPrefix () const
 
virtual bool IsAggregation () const
 
void MoveTo (RAttrBase &tgt)
 Move all fields into target object. More...
 
void SetNoValue (const std::string &name)
 Set <NoValue> for attribute. More...
 

#include <ROOT/RAttrAxis.hxx>

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

Member Function Documentation

◆ ClearMinMax()

RAttrAxis & ROOT::Experimental::RAttrAxis::ClearMinMax ( )
inline

Definition at line 122 of file RAttrAxis.hxx.

◆ ClearTimeDisplay()

void ROOT::Experimental::RAttrAxis::ClearTimeDisplay ( )
inline

Definition at line 146 of file RAttrAxis.hxx.

◆ ClearZoom()

RAttrAxis & ROOT::Experimental::RAttrAxis::ClearZoom ( )
inline

Definition at line 125 of file RAttrAxis.hxx.

◆ GetTitle()

std::string ROOT::Experimental::RAttrAxis::GetTitle ( ) const
inline

Definition at line 154 of file RAttrAxis.hxx.

◆ IsLn()

bool ROOT::Experimental::RAttrAxis::IsLn ( ) const
inline

Definition at line 130 of file RAttrAxis.hxx.

◆ IsLog10()

bool ROOT::Experimental::RAttrAxis::IsLog10 ( ) const
inline

Definition at line 128 of file RAttrAxis.hxx.

◆ IsLog2()

bool ROOT::Experimental::RAttrAxis::IsLog2 ( ) const
inline

Definition at line 129 of file RAttrAxis.hxx.

◆ IsLogScale()

bool ROOT::Experimental::RAttrAxis::IsLogScale ( ) const
inline

Definition at line 127 of file RAttrAxis.hxx.

◆ R__ATTR_CLASS()

ROOT::Experimental::RAttrAxis::R__ATTR_CLASS ( RAttrAxis  ,
"axis"   
)
private

◆ SetMinMax()

RAttrAxis & ROOT::Experimental::RAttrAxis::SetMinMax ( double  _min,
double  _max 
)
inline

Definition at line 121 of file RAttrAxis.hxx.

◆ SetTimeDisplay()

RAttrAxis & ROOT::Experimental::RAttrAxis::SetTimeDisplay ( const std::string &  fmt = "",
double  offset = -1 
)
inline

Definition at line 132 of file RAttrAxis.hxx.

◆ SetTitle()

RAttrAxis & ROOT::Experimental::RAttrAxis::SetTitle ( const std::string &  _title)
inline

Definition at line 153 of file RAttrAxis.hxx.

◆ SetZoom()

RAttrAxis & ROOT::Experimental::RAttrAxis::SetZoom ( double  _zoomMin,
double  _zoomMax 
)
inline

Definition at line 124 of file RAttrAxis.hxx.

Member Data Documentation

◆ ending

RAttrLineEnding ROOT::Experimental::RAttrAxis::ending {this, "ending"}

! ending attributes

Definition at line 106 of file RAttrAxis.hxx.

◆ labels

RAttrAxisLabels ROOT::Experimental::RAttrAxis::labels {this, "labels"}

! labels attributes

Definition at line 107 of file RAttrAxis.hxx.

◆ line

RAttrLine ROOT::Experimental::RAttrAxis::line {this, "line"}

! line attributes

Definition at line 105 of file RAttrAxis.hxx.

◆ log

RAttrValue<double> ROOT::Experimental::RAttrAxis::log {this, "log", 0}

! log scale, <1 off, 1 - base10, 2 - base 2, 2.71 - exp, 3, 4, ...

Definition at line 114 of file RAttrAxis.hxx.

◆ max

RAttrValue<double> ROOT::Experimental::RAttrAxis::max {this, "max", 0.}

! axis max

Definition at line 111 of file RAttrAxis.hxx.

◆ min

RAttrValue<double> ROOT::Experimental::RAttrAxis::min {this, "min", 0.}

! axis min

Definition at line 110 of file RAttrAxis.hxx.

◆ reverse

RAttrValue<bool> ROOT::Experimental::RAttrAxis::reverse {this, "reverse", false}

! reverse scale

Definition at line 116 of file RAttrAxis.hxx.

◆ symlog

RAttrValue<double> ROOT::Experimental::RAttrAxis::symlog {this, "symlog", 0}

! symlog scale constant, 0 - off

Definition at line 115 of file RAttrAxis.hxx.

◆ ticks

RAttrAxisTicks ROOT::Experimental::RAttrAxis::ticks {this, "ticks"}

! ticks attributes

Definition at line 109 of file RAttrAxis.hxx.

◆ time

RAttrValue<bool> ROOT::Experimental::RAttrAxis::time {this, "time", false}

! time scale

Definition at line 117 of file RAttrAxis.hxx.

◆ timeFormat

RAttrValue<std::string> ROOT::Experimental::RAttrAxis::timeFormat {this, "timeFormat", ""}

! time format

Definition at line 119 of file RAttrAxis.hxx.

◆ timeOffset

RAttrValue<double> ROOT::Experimental::RAttrAxis::timeOffset {this, "timeOffset", 0}

! offset for time axis values

Definition at line 118 of file RAttrAxis.hxx.

◆ title

RAttrAxisTitle ROOT::Experimental::RAttrAxis::title {this, "title"}

! title attributes

Definition at line 108 of file RAttrAxis.hxx.

◆ zoomMax

RAttrValue<double> ROOT::Experimental::RAttrAxis::zoomMax {this, "zoomMax", 0.}

! axis zoom max

Definition at line 113 of file RAttrAxis.hxx.

◆ zoomMin

RAttrValue<double> ROOT::Experimental::RAttrAxis::zoomMin {this, "zoomMin", 0.}

! axis zoom min

Definition at line 112 of file RAttrAxis.hxx.


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