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

All kind of drawing a axis: line, text, ticks, min/max, log, invert, ...

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 27 of file RAttrAxis.hxx.

Private Member Functions

 AddBool ("log", false).AddBool("invert"
 
 AddDouble ("min", 0.).AddDouble("max"
 
 AddDouble ("zoommin", 0.).AddDouble("zoommax"
 
RAttrLineAttrLine ()
 
RAttrTextAttrText ()
 
void ClearMinMax ()
 
void ClearZoomMinMax ()
 
const RAttrLineGetAttrLine () const
 
const RAttrTextGetAttrText () const
 
bool GetInvert () const
 
bool GetLog () const
 
double GetMax () const
 
double GetMin () const
 
double GetZoomMax () const
 
double GetZoomMin () const
 
bool HasMax () const
 
bool HasMin () const
 
bool HasZoomMax () const
 
bool HasZoomMin () const
 
RAttrAxisSetAttrLine (const RAttrLine &line)
 
RAttrAxisSetAttrText (const RAttrText &text)
 
RAttrAxisSetInvert (bool on=true)
 
RAttrAxisSetLog (bool on=true)
 
RAttrAxisSetMax (double max)
 
RAttrAxisSetMin (double min)
 
RAttrAxisSetMinMax (double min, double max)
 
RAttrAxisSetZoomMax (double max)
 
RAttrAxisSetZoomMin (double min)
 
RAttrAxisSetZoomMinMax (double min, double max)
 

Private Attributes

 false
 
RAttrLine fAttrLine {this, "line_"}
 ! axis line attributes More...
 
RAttrText fAttrText {this, "text_"}
 ! axis text attributes More...
 

Additional Inherited Members

- Public Member Functions inherited from ROOT::Experimental::RAttrBase
 RAttrBase ()=default
 
virtual ~RAttrBase ()=default
 
- Protected Member Functions inherited from ROOT::Experimental::RAttrBase
 RAttrBase (const RAttrBase &src)
 
 RAttrBase (RAttrBase *parent, const std::string &prefix)
 
 RAttrBase (RDrawable *drawable, const std::string &prefix)
 
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 AssignDrawable (RDrawable *drawable, const std::string &prefix)
 Return value from attributes container - no style or defaults are used. More...
 
void AssignParent (RAttrBase *parent, const std::string &prefix)
 Assign parent object for this RAttrBase. More...
 
void Clear ()
 Clear all respective values from drawable. Only defaults can be used. More...
 
void ClearValue (const std::string &name)
 Clear value if any with specified name. More...
 
void CopyTo (RAttrBase &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...
 
Rec_t EnsureAttr (const std::string &name)
 Ensure attribute with give name exists - creates container for attributes if required. More...
 
template<typename RET_TYPE , typename MATCH_TYPE = void>
auto Eval (const std::string &name, bool use_dflts=true) const
 Evaluate attribute value. More...
 
virtual const RAttrMapGetDefaults () const
 Return default values for attributes, empty for base class. More...
 
const std::string & GetPrefix () const
 
template<typename T >
GetValue (const std::string &name) const
 
template<typename T = void>
bool HasValue (const std::string &name, bool check_defaults=false) const
 
bool IsSame (const RAttrBase &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...
 
void MoveTo (RAttrBase &tgt)
 Move all fields into target object. More...
 
RAttrBaseoperator= (const RAttrBase &src)
 
void SetNoValue (const std::string &name)
 Set <NoValue> for attribute. More...
 
void SetValue (const std::string &name, bool value)
 Set boolean value. More...
 
void SetValue (const std::string &name, const RPadLength &value)
 Set PadLength value. More...
 
void SetValue (const std::string &name, const std::string &value)
 Set string value. More...
 
void SetValue (const std::string &name, double value)
 Set double value. More...
 
void SetValue (const std::string &name, int value)
 Set integer value. More...
 

#include <ROOT/RAttrAxis.hxx>

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

Member Function Documentation

◆ AddBool()

ROOT::Experimental::RAttrAxis::AddBool ( "log"  ,
false   
)
private

◆ AddDouble() [1/2]

ROOT::Experimental::RAttrAxis::AddDouble ( "min"  ,
0.   
)
private

◆ AddDouble() [2/2]

ROOT::Experimental::RAttrAxis::AddDouble ( "zoommin"  ,
0.   
)
private

◆ AttrLine()

RAttrLine & ROOT::Experimental::RAttrAxis::AttrLine ( )
inlineprivate

Definition at line 39 of file RAttrAxis.hxx.

◆ AttrText()

RAttrText & ROOT::Experimental::RAttrAxis::AttrText ( )
inlineprivate

Definition at line 43 of file RAttrAxis.hxx.

◆ ClearMinMax()

void ROOT::Experimental::RAttrAxis::ClearMinMax ( )
inlineprivate

Definition at line 54 of file RAttrAxis.hxx.

◆ ClearZoomMinMax()

void ROOT::Experimental::RAttrAxis::ClearZoomMinMax ( )
inlineprivate

Definition at line 64 of file RAttrAxis.hxx.

◆ GetAttrLine()

const RAttrLine & ROOT::Experimental::RAttrAxis::GetAttrLine ( ) const
inlineprivate

Definition at line 37 of file RAttrAxis.hxx.

◆ GetAttrText()

const RAttrText & ROOT::Experimental::RAttrAxis::GetAttrText ( ) const
inlineprivate

Definition at line 41 of file RAttrAxis.hxx.

◆ GetInvert()

bool ROOT::Experimental::RAttrAxis::GetInvert ( ) const
inlineprivate

Definition at line 70 of file RAttrAxis.hxx.

◆ GetLog()

bool ROOT::Experimental::RAttrAxis::GetLog ( ) const
inlineprivate

Definition at line 67 of file RAttrAxis.hxx.

◆ GetMax()

double ROOT::Experimental::RAttrAxis::GetMax ( ) const
inlineprivate

Definition at line 49 of file RAttrAxis.hxx.

◆ GetMin()

double ROOT::Experimental::RAttrAxis::GetMin ( ) const
inlineprivate

Definition at line 48 of file RAttrAxis.hxx.

◆ GetZoomMax()

double ROOT::Experimental::RAttrAxis::GetZoomMax ( ) const
inlineprivate

Definition at line 59 of file RAttrAxis.hxx.

◆ GetZoomMin()

double ROOT::Experimental::RAttrAxis::GetZoomMin ( ) const
inlineprivate

Definition at line 58 of file RAttrAxis.hxx.

◆ HasMax()

bool ROOT::Experimental::RAttrAxis::HasMax ( ) const
inlineprivate

Definition at line 51 of file RAttrAxis.hxx.

◆ HasMin()

bool ROOT::Experimental::RAttrAxis::HasMin ( ) const
inlineprivate

Definition at line 50 of file RAttrAxis.hxx.

◆ HasZoomMax()

bool ROOT::Experimental::RAttrAxis::HasZoomMax ( ) const
inlineprivate

Definition at line 61 of file RAttrAxis.hxx.

◆ HasZoomMin()

bool ROOT::Experimental::RAttrAxis::HasZoomMin ( ) const
inlineprivate

Definition at line 60 of file RAttrAxis.hxx.

◆ SetAttrLine()

RAttrAxis & ROOT::Experimental::RAttrAxis::SetAttrLine ( const RAttrLine line)
inlineprivate

Definition at line 38 of file RAttrAxis.hxx.

◆ SetAttrText()

RAttrAxis & ROOT::Experimental::RAttrAxis::SetAttrText ( const RAttrText text)
inlineprivate

Definition at line 42 of file RAttrAxis.hxx.

◆ SetInvert()

RAttrAxis & ROOT::Experimental::RAttrAxis::SetInvert ( bool  on = true)
inlineprivate

Definition at line 69 of file RAttrAxis.hxx.

◆ SetLog()

RAttrAxis & ROOT::Experimental::RAttrAxis::SetLog ( bool  on = true)
inlineprivate

Definition at line 66 of file RAttrAxis.hxx.

◆ SetMax()

RAttrAxis & ROOT::Experimental::RAttrAxis::SetMax ( double  max)
inlineprivate

Definition at line 47 of file RAttrAxis.hxx.

◆ SetMin()

RAttrAxis & ROOT::Experimental::RAttrAxis::SetMin ( double  min)
inlineprivate

Definition at line 46 of file RAttrAxis.hxx.

◆ SetMinMax()

RAttrAxis & ROOT::Experimental::RAttrAxis::SetMinMax ( double  min,
double  max 
)
inlineprivate

Definition at line 53 of file RAttrAxis.hxx.

◆ SetZoomMax()

RAttrAxis & ROOT::Experimental::RAttrAxis::SetZoomMax ( double  max)
inlineprivate

Definition at line 57 of file RAttrAxis.hxx.

◆ SetZoomMin()

RAttrAxis & ROOT::Experimental::RAttrAxis::SetZoomMin ( double  min)
inlineprivate

Definition at line 56 of file RAttrAxis.hxx.

◆ SetZoomMinMax()

RAttrAxis & ROOT::Experimental::RAttrAxis::SetZoomMinMax ( double  min,
double  max 
)
inlineprivate

Definition at line 63 of file RAttrAxis.hxx.

Member Data Documentation

◆ false

ROOT::Experimental::RAttrAxis::false
private

Definition at line 35 of file RAttrAxis.hxx.

◆ fAttrLine

RAttrLine ROOT::Experimental::RAttrAxis::fAttrLine {this, "line_"}
private

! axis line attributes

Definition at line 29 of file RAttrAxis.hxx.

◆ fAttrText

RAttrText ROOT::Experimental::RAttrAxis::fAttrText {this, "text_"}
private

! axis text attributes

Definition at line 30 of file RAttrAxis.hxx.

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

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