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

Drawing line attributes for different objects.

Author
Axel Naumann axel@.nosp@m.cern.nosp@m..ch
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 27 of file RAttrLine.hxx.

Private Member Functions

RAttrColorAttrColor ()
 
RColor GetColor () const
 
int GetStyle () const
 
double GetWidth () const
 
 R__ATTR_CLASS (RAttrLine, "line")
 
RAttrLineSetColor (const RColor &color)
 The color of the line.
 
RAttrLineSetStyle (int style)
 The style of the line.
 
RAttrLineSetWidth (double width)
 The width of the line.
 

Private Attributes

RAttrColor fColor {this, "color"}
 ! line color
 
RAttrValue< intfStyle {this, "style", 1}
 ! line style
 
RAttrValue< doublefWidth {this, "width", 1.}
 ! line width
 

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.
 
const Val_t AccessValue (const std::string &name, bool use_style=true) const
 Search value with given name in attributes.
 
void AssignDrawable (RDrawable *drawable, const std::string &prefix)
 Return value from attributes container - no style or defaults are used.
 
void AssignParent (RAttrBase *parent, const std::string &prefix)
 Assign parent object for this RAttrBase.
 
void Clear ()
 Clear all respective values from drawable. Only defaults can be used.
 
void ClearValue (const std::string &name)
 Clear value if any with specified name.
 
virtual RAttrMap CollectDefaults () const
 Collect all attributes in derived class Works only if such class has dictionary.
 
void CopyTo (RAttrBase &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.
 
Rec_t EnsureAttr (const std::string &name)
 Ensure attribute with give name exists - creates container for attributes if required.
 
template<typename RET_TYPE , typename MATCH_TYPE = void>
auto Eval (const std::string &name, bool use_dflts=true) const
 Evaluate attribute value.
 
virtual const RAttrMapGetDefaults () const
 Return default values for attributes, empty for base class.
 
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.
 
virtual bool IsValue () const
 
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.
 
void MoveTo (RAttrBase &tgt)
 Move all fields into target object.
 
RAttrBaseoperator= (const RAttrBase &src)
 
void SetNoValue (const std::string &name)
 Set <NoValue> for attribute.
 
void SetValue (const std::string &name, bool value)
 Set boolean value.
 
void SetValue (const std::string &name, const RPadLength &value)
 Set PadLength value.
 
void SetValue (const std::string &name, const std::string &value)
 Set string value.
 
void SetValue (const std::string &name, double value)
 Set double value.
 
void SetValue (const std::string &name, int value)
 Set integer value.
 

#include <ROOT/RAttrLine.hxx>

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

Member Function Documentation

◆ AttrColor()

RAttrColor & ROOT::Experimental::RAttrLine::AttrColor ( )
inlineprivate

Definition at line 46 of file RAttrLine.hxx.

◆ GetColor()

RColor ROOT::Experimental::RAttrLine::GetColor ( ) const
inlineprivate

Definition at line 45 of file RAttrLine.hxx.

◆ GetStyle()

int ROOT::Experimental::RAttrLine::GetStyle ( ) const
inlineprivate

Definition at line 41 of file RAttrLine.hxx.

◆ GetWidth()

double ROOT::Experimental::RAttrLine::GetWidth ( ) const
inlineprivate

Definition at line 37 of file RAttrLine.hxx.

◆ R__ATTR_CLASS()

ROOT::Experimental::RAttrLine::R__ATTR_CLASS ( RAttrLine  ,
"line"   
)
private

◆ SetColor()

RAttrLine & ROOT::Experimental::RAttrLine::SetColor ( const RColor color)
inlineprivate

The color of the line.

Definition at line 44 of file RAttrLine.hxx.

◆ SetStyle()

RAttrLine & ROOT::Experimental::RAttrLine::SetStyle ( int  style)
inlineprivate

The style of the line.

Definition at line 40 of file RAttrLine.hxx.

◆ SetWidth()

RAttrLine & ROOT::Experimental::RAttrLine::SetWidth ( double  width)
inlineprivate

The width of the line.

Definition at line 36 of file RAttrLine.hxx.

Member Data Documentation

◆ fColor

RAttrColor ROOT::Experimental::RAttrLine::fColor {this, "color"}
private

! line color

Definition at line 29 of file RAttrLine.hxx.

◆ fStyle

RAttrValue<int> ROOT::Experimental::RAttrLine::fStyle {this, "style", 1}
private

! line style

Definition at line 31 of file RAttrLine.hxx.

◆ fWidth

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

! line width

Definition at line 30 of file RAttrLine.hxx.

Libraries for ROOT::Experimental::RAttrLine:

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