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

Drawing line attributes for different objects.

Authors
Axel Naumann axel@.nosp@m.cern.nosp@m..ch Sergey Linev s.lin.nosp@m.ev@g.nosp@m.si.de
Date
2018-10-12
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 26 of file RAttrLine.hxx.

Public Types

enum  EStyle {
  kNone = 0 , kSolid = 1 , kDashed = 2 , kDotted = 3 ,
  kDashDotted = 4 , kStyle1 = 1 , kStyle2 = 2 , kStyle3 = 3 ,
  kStyle4 = 4 , kStyle5 = 5 , kStyle6 = 6 , kStyle7 = 7 ,
  kStyle8 = 8 , kStyle9 = 9 , kStyle10 = 10
}
 

Public Member Functions

 RAttrLine ()=default
 
 RAttrLine (const RAttrLine &src)
 
 RAttrLine (const RColor &_color, double _width, EStyle _style)
 
 RAttrLine (RAttrBase *parent, const char *prefix="line")
 
 RAttrLine (RDrawable *drawable, const char *prefix="line")
 
RAttrLineoperator= (const RAttrLine &src)
 
- 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}
 ! line color
 
RAttrValue< std::string > pattern {this, "pattern"}
 ! line pattern like "3,2,3,1,5"
 
RAttrValue< EStylestyle {this, "style", kSolid}
 ! line style
 
RAttrValue< doublewidth {this, "width", 1.}
 ! line 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/RAttrLine.hxx>

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

Member Enumeration Documentation

◆ EStyle

Enumerator
kNone 
kSolid 
kDashed 
kDotted 
kDashDotted 
kStyle1 
kStyle2 
kStyle3 
kStyle4 
kStyle5 
kStyle6 
kStyle7 
kStyle8 
kStyle9 
kStyle10 

Definition at line 32 of file RAttrLine.hxx.

Constructor & Destructor Documentation

◆ RAttrLine() [1/5]

ROOT::Experimental::RAttrLine::RAttrLine ( )
default

◆ RAttrLine() [2/5]

ROOT::Experimental::RAttrLine::RAttrLine ( RDrawable drawable,
const char *  prefix = "line" 
)
inline

Definition at line 28 of file RAttrLine.hxx.

◆ RAttrLine() [3/5]

ROOT::Experimental::RAttrLine::RAttrLine ( RAttrBase parent,
const char *  prefix = "line" 
)
inline

Definition at line 28 of file RAttrLine.hxx.

◆ RAttrLine() [4/5]

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

Definition at line 28 of file RAttrLine.hxx.

◆ RAttrLine() [5/5]

ROOT::Experimental::RAttrLine::RAttrLine ( const RColor _color,
double  _width,
EStyle  _style 
)
inline

Definition at line 55 of file RAttrLine.hxx.

Member Function Documentation

◆ GetDefaults()

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

Return default values for attributes, empty for base class.

Reimplemented from ROOT::Experimental::RAttrAggregation.

Definition at line 28 of file RAttrLine.hxx.

◆ operator=()

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

Definition at line 28 of file RAttrLine.hxx.

Member Data Documentation

◆ color

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

! line color

Definition at line 50 of file RAttrLine.hxx.

◆ pattern

RAttrValue<std::string> ROOT::Experimental::RAttrLine::pattern {this, "pattern"}

! line pattern like "3,2,3,1,5"

Definition at line 53 of file RAttrLine.hxx.

◆ style

RAttrValue<EStyle> ROOT::Experimental::RAttrLine::style {this, "style", kSolid}

! line style

Definition at line 52 of file RAttrLine.hxx.

◆ width

RAttrValue<double> ROOT::Experimental::RAttrLine::width {this, "width", 1.}

! line width

Definition at line 51 of file RAttrLine.hxx.

Libraries for ROOT::Experimental::RAttrLine:

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