Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
RMarker.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_RMarker
10#define ROOT7_RMarker
11
13#include <ROOT/RAttrMarker.hxx>
14#include <ROOT/RPadPos.hxx>
15
16#include <initializer_list>
17
18namespace ROOT {
19namespace Experimental {
20
21/** \class RMarker
22\ingroup GrafROOT7
23\brief A simple marker.
24\author Olivier Couet <Olivier.Couet@cern.ch>
25\date 2017-10-16
26\warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
27*/
28
29class RMarker : public ROnFrameDrawable {
30
31 RPadPos fP; ///< position
32
33public:
34 RAttrMarker marker{this, "marker"}; ///<! marker attributes
35
36 RMarker() : ROnFrameDrawable("marker") {}
37
38 RMarker(const RPadPos &p) : RMarker() { fP = p; }
39
40 RMarker &SetP(const RPadPos &p) { fP = p; return *this; }
41 const RPadPos &GetP() const { return fP; }
42};
43
44} // namespace Experimental
45} // namespace ROOT
46
47#endif
RMarker(const RPadPos &p)
Definition RMarker.hxx:38
RAttrMarker marker
! marker attributes
Definition RMarker.hxx:34
const RPadPos & GetP() const
Definition RMarker.hxx:41
RMarker & SetP(const RPadPos &p)
Definition RMarker.hxx:40
ROnFrameDrawable(const ROnFrameDrawable &)=delete
A position (horizontal and vertical) in a RPad.
Definition RPadPos.hxx:28
Namespace for ROOT features in testing.
Definition TROOT.h:100
Small utility to parse cmdline options.
Definition RExports.h:71