Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RAttrMarker.hxx
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
3 * All rights reserved. *
4 * *
5 * For the licensing terms see $ROOTSYS/LICENSE. *
6 * For the list of contributors see $ROOTSYS/README/CREDITS. *
7 *************************************************************************/
8
9#ifndef ROOT7_RAttrMarker
10#define ROOT7_RAttrMarker
11
13#include <ROOT/RAttrValue.hxx>
14
15namespace ROOT {
16namespace Experimental {
17
18/** \class RAttrMarker
19\ingroup GpadROOT7
20\authors Axel Naumann <axel@cern.ch> Sergey Linev <s.linev@gsi.de>
21\date 2018-10-12
22\brief A marker attributes.
23\warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
24*/
25
27
29
30 enum EStyle {
31 kNone = 0,
32 kDot = 1,
33 kPlus = 2,
34 kStar = 3,
69 };
70
71public:
72
73 RAttrValue<RColor> color{this, "color", RColor::kBlack}; ///<! marker color
74 RAttrValue<double> size{this, "size", 0.01}; ///<! marker size >1 pixels, <1 relative to pad height
75 RAttrValue<EStyle> style{this, "style", kDot}; ///<! marker style
76
77 RAttrMarker(const RColor &_color, double _size, EStyle _style) : RAttrMarker()
78 {
79 color = _color;
80 size = _size;
81 style = _style;
82 }
83
84};
85
86} // namespace Experimental
87} // namespace ROOT
88
89#endif
#define R__ATTR_CLASS(ClassName, dflt_prefix)
Base class for attributes aggregations like lines or fill attributes.
RAttrValue< EStyle > style
! marker style
RAttrMarker(const RColor &_color, double _size, EStyle _style)
RAttrValue< double > size
! marker size >1 pixels, <1 relative to pad height
RAttrValue< RColor > color
! marker color
Template class to access single value from drawable or other attributes.
The color class.
Definition RColor.hxx:33
static R__DLLEXPORT constexpr RGB_t kBlack
Definition RColor.hxx:178
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.