Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::RAttrAxisTicks Class Reference

Axis ticks attributes.

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

Definition at line 74 of file RAttrAxis.hxx.

Public Member Functions

 RAttrAxisTicks ()=default
 
 RAttrAxisTicks (const RAttrAxisTicks &src)
 
 RAttrAxisTicks (RAttrBase *parent, const char *prefix="ticks")
 
 RAttrAxisTicks (RDrawable *drawable, const char *prefix="ticks")
 
RAttrAxisTicksoperator= (const RAttrAxisTicks &src)
 
void SetBoth ()
 
void SetInvert ()
 
void SetNormal ()
 
- 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.
 
RAttrAggregationoperator= (const RAttrAggregation &src)
 
- Public Member Functions inherited from ROOT::Experimental::RAttrBase
 RAttrBase ()=default
 
virtual ~RAttrBase ()
 

Public Attributes

RAttrValue< RColorcolor {this, "color", RColor::kBlack}
 ! ticks color
 
RAttrValue< std::string > side {this, "side", "normal"}
 ! ticks position - normal, invert, both
 
RAttrValue< RPadLengthsize {this, "size", 0.02_normal}
 ! ticks size
 
RAttrValue< intwidth {this, "width", 1}
 ! ticks width
 

Protected Member Functions

const RAttrMapGetDefaults () const override
 Return default values for attributes, empty for base class.
 
- 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.
 
void CopyTo (RAttrAggregation &tgt, bool use_style=true) const
 Copy attributes into target object.
 
bool CopyValue (const std::string &name, const RAttrMap::Value_t &value, bool check_type=true)
 Copy attributes from other object.
 
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.
 
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.
 
- 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.
 
const Val_t AccessValue (const std::string &name, bool use_style=true) const
 Search value with given name in attributes.
 
void ClearValue (const std::string &name)
 Clear value if any with specified name.
 
Rec_t EnsureAttr (const std::string &name)
 Ensure attribute with give name exists - creates container for attributes if required.
 
RDrawableGetDrawable () const
 
RAttrMapGetOwnAttr () const
 
RAttrBaseGetParent () const
 
const char * GetPrefix () const
 
void MoveTo (RAttrBase &tgt)
 Move all fields into target object.
 
void SetNoValue (const std::string &name)
 Set <NoValue> for attribute.
 

#include <ROOT/RAttrAxis.hxx>

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

Constructor & Destructor Documentation

◆ RAttrAxisTicks() [1/4]

ROOT::Experimental::RAttrAxisTicks::RAttrAxisTicks ( )
default

◆ RAttrAxisTicks() [2/4]

ROOT::Experimental::RAttrAxisTicks::RAttrAxisTicks ( RDrawable drawable,
const char *  prefix = "ticks" 
)
inline

Definition at line 76 of file RAttrAxis.hxx.

◆ RAttrAxisTicks() [3/4]

ROOT::Experimental::RAttrAxisTicks::RAttrAxisTicks ( RAttrBase parent,
const char *  prefix = "ticks" 
)
inline

Definition at line 76 of file RAttrAxis.hxx.

◆ RAttrAxisTicks() [4/4]

ROOT::Experimental::RAttrAxisTicks::RAttrAxisTicks ( const RAttrAxisTicks src)
inline

Definition at line 76 of file RAttrAxis.hxx.

Member Function Documentation

◆ GetDefaults()

const RAttrMap & ROOT::Experimental::RAttrAxisTicks::GetDefaults ( ) const
inlineoverrideprotectedvirtual

Return default values for attributes, empty for base class.

Reimplemented from ROOT::Experimental::RAttrAggregation.

Definition at line 76 of file RAttrAxis.hxx.

◆ operator=()

RAttrAxisTicks & ROOT::Experimental::RAttrAxisTicks::operator= ( const RAttrAxisTicks src)
inline

Definition at line 76 of file RAttrAxis.hxx.

◆ SetBoth()

void ROOT::Experimental::RAttrAxisTicks::SetBoth ( )
inline

Definition at line 87 of file RAttrAxis.hxx.

◆ SetInvert()

void ROOT::Experimental::RAttrAxisTicks::SetInvert ( )
inline

Definition at line 86 of file RAttrAxis.hxx.

◆ SetNormal()

void ROOT::Experimental::RAttrAxisTicks::SetNormal ( )
inline

Definition at line 85 of file RAttrAxis.hxx.

Member Data Documentation

◆ color

RAttrValue<RColor> ROOT::Experimental::RAttrAxisTicks::color {this, "color", RColor::kBlack}

! ticks color

Definition at line 82 of file RAttrAxis.hxx.

◆ side

RAttrValue<std::string> ROOT::Experimental::RAttrAxisTicks::side {this, "side", "normal"}

! ticks position - normal, invert, both

Definition at line 80 of file RAttrAxis.hxx.

◆ size

RAttrValue<RPadLength> ROOT::Experimental::RAttrAxisTicks::size {this, "size", 0.02_normal}

! ticks size

Definition at line 81 of file RAttrAxis.hxx.

◆ width

RAttrValue<int> ROOT::Experimental::RAttrAxisTicks::width {this, "width", 1}

! ticks width

Definition at line 83 of file RAttrAxis.hxx.

Libraries for ROOT::Experimental::RAttrAxisTicks:

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