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

A marker attributes.

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 RAttrMarker.hxx.

Public Types

enum  EStyle {
  kNone = 0 , kDot = 1 , kPlus = 2 , kStar = 3 ,
  kCircle = 4 , kMultiply = 5 , kFullDotSmall = 6 , kFullDotMedium = 7 ,
  kFullDotLarge = 8 , kFullCircle = 20 , kFullSquare = 21 , kFullTriangleUp = 22 ,
  kFullTriangleDown = 23 , kOpenCircle = 24 , kOpenSquare = 25 , kOpenTriangleUp = 26 ,
  kOpenDiamond = 27 , kOpenCross = 28 , kFullStar = 29 , kOpenStar = 30 ,
  kOpenTriangleDown = 32 , kFullDiamond = 33 , kFullCross = 34 , kOpenDiamondCross = 35 ,
  kOpenSquareDiagonal = 36 , kOpenThreeTriangles = 37 , kOctagonCross = 38 , kFullThreeTriangles = 39 ,
  kOpenFourTrianglesX = 40 , kFullFourTrianglesX = 41 , kOpenDoubleDiamond = 42 , kFullDoubleDiamond = 43 ,
  kOpenFourTrianglesPlus = 44 , kFullFourTrianglesPlus = 45 , kOpenCrossX = 46 , kFullCrossX = 47 ,
  kFourSquaresX = 48 , kFourSquaresPlus = 49
}
 

Public Member Functions

 RAttrMarker ()=default
 
 RAttrMarker (const RAttrMarker &src)
 
 RAttrMarker (const RColor &_color, double _size, EStyle _style)
 
 RAttrMarker (RAttrBase *parent, const char *prefix="marker")
 
 RAttrMarker (RDrawable *drawable, const char *prefix="marker")
 
RAttrMarkeroperator= (const RAttrMarker &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}
 ! marker color
 
RAttrValue< doublesize {this, "size", 0.01}
 ! marker size >1 pixels, <1 relative to pad height
 
RAttrValue< EStylestyle {this, "style", kDot}
 ! marker style
 

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/RAttrMarker.hxx>

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

Member Enumeration Documentation

◆ EStyle

Enumerator
kNone 
kDot 
kPlus 
kStar 
kCircle 
kMultiply 
kFullDotSmall 
kFullDotMedium 
kFullDotLarge 
kFullCircle 
kFullSquare 
kFullTriangleUp 
kFullTriangleDown 
kOpenCircle 
kOpenSquare 
kOpenTriangleUp 
kOpenDiamond 
kOpenCross 
kFullStar 
kOpenStar 
kOpenTriangleDown 
kFullDiamond 
kFullCross 
kOpenDiamondCross 
kOpenSquareDiagonal 
kOpenThreeTriangles 
kOctagonCross 
kFullThreeTriangles 
kOpenFourTrianglesX 
kFullFourTrianglesX 
kOpenDoubleDiamond 
kFullDoubleDiamond 
kOpenFourTrianglesPlus 
kFullFourTrianglesPlus 
kOpenCrossX 
kFullCrossX 
kFourSquaresX 
kFourSquaresPlus 

Definition at line 30 of file RAttrMarker.hxx.

Constructor & Destructor Documentation

◆ RAttrMarker() [1/5]

ROOT::Experimental::RAttrMarker::RAttrMarker ( )
default

◆ RAttrMarker() [2/5]

ROOT::Experimental::RAttrMarker::RAttrMarker ( RDrawable drawable,
const char *  prefix = "marker" 
)
inline

Definition at line 28 of file RAttrMarker.hxx.

◆ RAttrMarker() [3/5]

ROOT::Experimental::RAttrMarker::RAttrMarker ( RAttrBase parent,
const char *  prefix = "marker" 
)
inline

Definition at line 28 of file RAttrMarker.hxx.

◆ RAttrMarker() [4/5]

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

Definition at line 28 of file RAttrMarker.hxx.

◆ RAttrMarker() [5/5]

ROOT::Experimental::RAttrMarker::RAttrMarker ( const RColor _color,
double  _size,
EStyle  _style 
)
inline

Definition at line 77 of file RAttrMarker.hxx.

Member Function Documentation

◆ GetDefaults()

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

Return default values for attributes, empty for base class.

Reimplemented from ROOT::Experimental::RAttrAggregation.

Definition at line 28 of file RAttrMarker.hxx.

◆ operator=()

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

Definition at line 28 of file RAttrMarker.hxx.

Member Data Documentation

◆ color

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

! marker color

Definition at line 73 of file RAttrMarker.hxx.

◆ size

RAttrValue<double> ROOT::Experimental::RAttrMarker::size {this, "size", 0.01}

! marker size >1 pixels, <1 relative to pad height

Definition at line 74 of file RAttrMarker.hxx.

◆ style

RAttrValue<EStyle> ROOT::Experimental::RAttrMarker::style {this, "style", kDot}

! marker style

Definition at line 75 of file RAttrMarker.hxx.

Libraries for ROOT::Experimental::RAttrMarker:

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