Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RAttrMarker.hxx
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (C) 1995-2019, 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
12#include <ROOT/RAttrBase.hxx>
13#include <ROOT/RAttrColor.hxx>
14#include <ROOT/RAttrValue.hxx>
15
16namespace ROOT {
17namespace Experimental {
18
19/** \class RAttrMarker
20\ingroup GpadROOT7
21\authors Axel Naumann <axel@cern.ch> Sergey Linev <s.linev@gsi.de>
22\date 2018-10-12
23\brief A marker attributes.
24\warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
25*/
26
27class RAttrMarker : public RAttrBase {
28
29 RAttrColor fColor{this, "color"}; ///<! marker color
30 RAttrValue<double> fSize{this, "size", 1.}; ///<! marker size
31 RAttrValue<int> fStyle{this, "style", 1}; ///<! marker style
32
34
35 RAttrMarker &SetColor(const RColor &color) { fColor = color; return *this; }
36 RColor GetColor() const { return fColor.GetColor(); }
38
39 /// The size of the marker.
40 RAttrMarker &SetSize(double size) { fSize = size; return *this; }
41 double GetSize() const { return fSize; }
42
43 /// The style of the marker.
44 RAttrMarker &SetStyle(int style) { fStyle = style; return *this; }
45 int GetStyle() const { return fStyle; }
46
47};
48
49} // namespace Experimental
50} // namespace ROOT
51
52#endif
Base class for all attributes, used with RDrawable.
Definition RAttrBase.hxx:31
Access RColor from drawable attributes.
RColor GetColor() const
Extract RColor for given attribute.
RAttrValue< int > fStyle
! marker style
RAttrMarker & SetColor(const RColor &color)
RAttrColor fColor
! marker color
R__ATTR_CLASS(RAttrMarker, "marker")
RAttrMarker & SetStyle(int style)
The style of the marker.
RAttrMarker & SetSize(double size)
The size of the marker.
RAttrValue< double > fSize
! marker size
Template class to access single value from drawable or other attributes.
The color class.
Definition RColor.hxx:35
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
TCanvas * style()
Definition style.C:1