Logo ROOT   6.18/05
Reference Guide
RAttrMarker.hxx
Go to the documentation of this file.
1/// \file ROOT/RAttrMarker.hxx
2/// \ingroup Gpad ROOT7
3/// \author Axel Naumann <axel@cern.ch>
4/// \date 2018-10-12
5/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
6/// is welcome!
7
8/*************************************************************************
9 * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
10 * All rights reserved. *
11 * *
12 * For the licensing terms see $ROOTSYS/LICENSE. *
13 * For the list of contributors see $ROOTSYS/README/CREDITS. *
14 *************************************************************************/
15
16#ifndef ROOT7_RAttrMarker
17#define ROOT7_RAttrMarker
18
19#include <ROOT/RDrawingAttr.hxx>
20#include <ROOT/RColor.hxx>
21
22namespace ROOT {
23namespace Experimental {
24
25/** \class ROOT::Experimental::RMarker
26 A simple marker.
27 */
28
30public:
32
33 /// The color of the marker.
34 RAttrMarker &SetColor(const RColor &col) { Set("color", col); return *this; }
35 RColor GetColor() const { return Get<RColor>("color"); }
36
37 /// The size of the marker.
38 RAttrMarker &SetSize(float size) { Set("size", size); return *this; }
39 float GetSize() const { return Get<float>("size"); }
40
41 /// The style of the marker.
42 RAttrMarker &SetStyle(int style) { Set("style", style); return *this; }
43 int GetStyle() const { return Get<int>("style"); }
44};
45
46} // namespace Experimental
47} // namespace ROOT
48
49#endif
RAttrMarker & SetSize(float size)
The size of the marker.
Definition: RAttrMarker.hxx:38
RAttrMarker & SetStyle(int style)
The style of the marker.
Definition: RAttrMarker.hxx:42
RAttrMarker & SetColor(const RColor &col)
The color of the marker.
Definition: RAttrMarker.hxx:34
A color: Red|Green|Blue|Alpha, or a position in a RPalette.
Definition: RColor.hxx:28
A collection of graphics attributes, for instance everything describing a line: color,...
RDrawingAttrBase()=default
Construct a default, unnamed, unconnected attribute.
void Set(const Name &name, const T &val)
Insert or update the attribute value identified by name to the given value.
Namespace for new ROOT classes and functions.
Definition: StringConv.hxx:21
TCanvas * style()
Definition: style.C:1