16 #ifndef ROOT7_THistDrawingOpts 17 #define ROOT7_THistDrawingOpts 19 #include <ROOT/TDrawingAttr.hxx> 20 #include <ROOT/TDrawingOptsBase.hxx> 21 #include <ROOT/TStringEnumAttr.hxx> 24 namespace Experimental {
26 template <
int DIMENSION>
28 static_assert(DIMENSION != 0,
"Cannot draw 0-dimensional histograms!");
29 static_assert(DIMENSION > 3,
"Cannot draw histograms with more than 3 dimensions!");
30 static_assert(DIMENSION < 3,
"This should have been handled by the specializations below?!");
42 static const TStringEnumAttrSet &
Styles() {
43 static const TStringEnumAttrSet styles{
"hist",
"bar",
"text"};
46 TDrawingAttr<TStringEnumAttr<EStyle>> fStyle{*
this,
"Hist.1D.Style", EStyle::kBar, Styles()};
47 TDrawingAttr<TColor> fLineColor{*
this,
"Hist.1D.Line.Color"};
48 TDrawingAttr<int> fLineWidth{*
this,
"Hist.1D.Line.Width"};
52 TDrawingAttr<TStringEnumAttr<EStyle>> &
GetStyle() {
return fStyle; }
73 static const TStringEnumAttrSet &
Styles() {
74 static const TStringEnumAttrSet styles{
"box",
"surf",
"text"};
77 TDrawingAttr<TStringEnumAttr<EStyle>> fStyle{*
this,
"Hist.2D.Style",
EStyle::kBox, Styles()};
78 TDrawingAttr<TColor> fLineColor{*
this,
"Hist.2D.Line.Color"};
79 TDrawingAttr<int> fLineWidth{*
this,
"Hist.2D.Line.Width"};
83 TDrawingAttr<TStringEnumAttr<EStyle>> &
GetStyle() {
return fStyle; }
104 static const TStringEnumAttrSet &
Styles() {
105 static const TStringEnumAttrSet styles{
"box",
"iso"};
108 TDrawingAttr<TStringEnumAttr<EStyle>> fStyle{*
this,
"Hist.3D.Style",
EStyle::kBox, Styles()};
109 TDrawingAttr<TColor> fLineColor{*
this,
"Hist.3D.Line.Color"};
110 TDrawingAttr<int> fLineWidth{*
this,
"Hist.3D.Line.Width"};
114 TDrawingAttr<TStringEnumAttr<EStyle>> &
GetStyle() {
return fStyle; }
Namespace for new ROOT classes and functions.
static const TStringEnumAttrSet & Styles()
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
static const TStringEnumAttrSet & Styles()
TDrawingAttr< int > & GetLineWidth()
TColor GetLineColor() const
void SetLineColor(const TColor &col)
TDrawingAttr< int > & GetLineWidth()
TDrawingAttr< TColor > & GetLineColor()
static const TStringEnumAttrSet & Styles()
TColor GetLineColor() const
void SetStyle(EStyle style)
void SetStyle(EStyle style)
TDrawingAttr< TColor > & GetLineColor()
void SetLineWidth(int width)
void SetLineWidth(int width)
void SetLineColor(const TColor &col)
TDrawingAttr< TStringEnumAttr< EStyle > > & GetStyle()
TDrawingAttr< TColor > & GetLineColor()
The color creation and management class.
void SetStyle(EStyle style)
TColor GetLineColor() const
void SetLineColor(const TColor &col)
TDrawingAttr< TStringEnumAttr< EStyle > > & GetStyle()
void SetLineWidth(int width)
TDrawingAttr< int > & GetLineWidth()
TDrawingAttr< TStringEnumAttr< EStyle > > & GetStyle()