Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RPave.hxx
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (C) 1995-2020, 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_RPave
10#define ROOT7_RPave
11
12#include <ROOT/RDrawable.hxx>
13#include <ROOT/RAttrText.hxx>
14#include <ROOT/RAttrLine.hxx>
15#include <ROOT/RAttrFill.hxx>
16#include <ROOT/RAttrValue.hxx>
17#include <ROOT/RPadPos.hxx>
18
19namespace ROOT {
20namespace Experimental {
21
22
23/** \class ROOT::Experimental::RPave
24\ingroup GrafROOT7
25\brief Base class for paves with text, statistic, legends, placed relative to RFrame position and adjustable height
26\author Sergey Linev <s.linev@gsi.de>
27\date 2020-06-18
28\warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
29*/
30
31class RPave : public RDrawable {
32
33 RAttrText fAttrText{this, "text"}; ///<! text attributes
34 RAttrLine fAttrBorder{this, "border"}; ///<! border attributes
35 RAttrFill fAttrFill{this, "fill"}; ///<! line attributes
36 RAttrValue<RPadLength> fCornerX{this, "cornerx", 0.02}; ///<! X corner
37 RAttrValue<RPadLength> fCornerY{this, "cornery", 0.02}; ///<! Y corner
38 RAttrValue<RPadLength> fWidth{this, "width", 0.4}; ///<! pave width
39 RAttrValue<RPadLength> fHeight{this, "height", 0.2}; ///<! pave height
40
41public:
42
43 RPave(const std::string &csstype = "pave") : RDrawable(csstype) {}
44
45 RPave &SetCornerX(const RPadLength &pos) { fCornerX = pos; return *this; }
46 RPadLength GetCornerX() const { return fCornerX; }
47
48 RPave &SetCornerY(const RPadLength &pos) { fCornerY = pos; return *this; }
49 RPadLength GetCornerY() const { return fCornerY; }
50
51 RPave &SetWidth(const RPadLength &width) { fWidth = width; return *this; }
52 RPadLength GetWidth() const { return fWidth; }
53
54 RPave &SetHeight(const RPadLength &height) { fHeight = height; return *this; }
55 RPadLength GetHeight() const { return fHeight; }
56
57 const RAttrText &GetAttrText() const { return fAttrText; }
58 RPave &SetAttrText(const RAttrText &attr) { fAttrText = attr; return *this; }
60
61 const RAttrLine &GetAttrBorder() const { return fAttrBorder; }
62 RPave &SetAttrBorder(const RAttrLine &border) { fAttrBorder = border; return *this; }
64
65 const RAttrFill &GetAttrFill() const { return fAttrFill; }
66 RPave &SetAttrFill(const RAttrFill &fill) { fAttrFill = fill; return *this; }
68};
69
70} // namespace Experimental
71} // namespace ROOT
72
73#endif
include TDocParser_001 C image html pict1_TDocParser_001 png width
Drawing fill attributes for different objects.
Definition RAttrFill.hxx:27
Drawing line attributes for different objects.
Definition RAttrLine.hxx:27
Template class to access single value from drawable or other attributes.
Base class for drawable entities: objects that can be painted on a RPad.
Base class for paves with text, statistic, legends, placed relative to RFrame position and adjustable...
Definition RPave.hxx:31
RAttrLine & AttrBorder()
Definition RPave.hxx:63
RPave & SetHeight(const RPadLength &height)
Definition RPave.hxx:54
RAttrValue< RPadLength > fWidth
! pave width
Definition RPave.hxx:38
RPave & SetAttrBorder(const RAttrLine &border)
Definition RPave.hxx:62
RAttrValue< RPadLength > fCornerY
! Y corner
Definition RPave.hxx:37
RPave(const std::string &csstype="pave")
Definition RPave.hxx:43
const RAttrLine & GetAttrBorder() const
Definition RPave.hxx:61
RAttrFill & AttrFill()
Definition RPave.hxx:67
RAttrText & AttrText()
Definition RPave.hxx:59
RPadLength GetWidth() const
Definition RPave.hxx:52
RAttrValue< RPadLength > fHeight
! pave height
Definition RPave.hxx:39
RPadLength GetCornerX() const
Definition RPave.hxx:46
RPave & SetAttrText(const RAttrText &attr)
Definition RPave.hxx:58
const RAttrFill & GetAttrFill() const
Definition RPave.hxx:65
RPave & SetAttrFill(const RAttrFill &fill)
Definition RPave.hxx:66
RAttrFill fAttrFill
! line attributes
Definition RPave.hxx:35
RPave & SetCornerX(const RPadLength &pos)
Definition RPave.hxx:45
RPadLength GetHeight() const
Definition RPave.hxx:55
RPave & SetCornerY(const RPadLength &pos)
Definition RPave.hxx:48
const RAttrText & GetAttrText() const
Definition RPave.hxx:57
RPave & SetWidth(const RPadLength &width)
Definition RPave.hxx:51
RAttrText fAttrText
! text attributes
Definition RPave.hxx:33
RPadLength GetCornerY() const
Definition RPave.hxx:49
RAttrValue< RPadLength > fCornerX
! X corner
Definition RPave.hxx:36
RAttrLine fAttrBorder
! border attributes
Definition RPave.hxx:34
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...