BioDynaMo  v1.05.120-25dc9790
style.cc
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------
2 //
3 // Copyright (C) 2021 CERN & University of Surrey for the benefit of the
4 // BioDynaMo collaboration. All Rights Reserved.
5 //
6 // Licensed under the Apache License, Version 2.0 (the "License");
7 // you may not use this file except in compliance with the License.
8 //
9 // See the LICENSE file distributed with this work for details.
10 // See the NOTICE file distributed with this work for additional information
11 // regarding copyright ownership.
12 //
13 // -----------------------------------------------------------------------------
14 
15 #include "core/analysis/style.h"
16 
17 namespace bdm {
18 namespace experimental {
19 
20 // -----------------------------------------------------------------------------
21 Style::Style() : TNamed(), TAttLine(), TAttFill(), TAttMarker(), TAttText() {
22  FromTStyle(gStyle);
23 }
24 
25 // -----------------------------------------------------------------------------
27  if (tstyle_) {
28  delete tstyle_;
29  }
30 }
31 
32 // -----------------------------------------------------------------------------
33 TStyle* Style::GetTStyle() const {
34  if (!tstyle_) {
35  tstyle_ = new TStyle();
36  ToTStyle();
37  }
38  return tstyle_;
39 }
40 
41 // -----------------------------------------------------------------------------
42 Style::operator TStyle*() const { return GetTStyle(); }
43 
44 // -----------------------------------------------------------------------------
45 void Style::ToTStyle() const {
46  // delete gROOT->GetStyle("Modern");
47  auto set_axis = [this](const TAttAxis& axis, Option_t* o) {
48  this->tstyle_->SetNdivisions(axis.GetNdivisions(), o);
49  this->tstyle_->SetAxisColor(axis.GetAxisColor(), o);
50  this->tstyle_->SetLabelColor(axis.GetLabelColor(), o);
51  this->tstyle_->SetLabelFont(axis.GetLabelFont(), o);
52  this->tstyle_->SetLabelOffset(axis.GetLabelOffset(), o);
53  this->tstyle_->SetLabelSize(axis.GetLabelSize(), o);
54  this->tstyle_->SetTickLength(axis.GetTickLength(), o);
55  this->tstyle_->SetTitleOffset(axis.GetTitleOffset(), o);
56  this->tstyle_->SetTitleSize(axis.GetTitleSize(), o);
57  this->tstyle_->SetTitleColor(axis.GetTitleColor(), o);
58  this->tstyle_->SetTitleFont(axis.GetTitleFont(), o);
59  };
60  set_axis(fXaxis, "x");
61  set_axis(fYaxis, "y");
62  set_axis(fZaxis, "z");
63 
64  tstyle_->SetBarWidth(fBarWidth);
65  tstyle_->SetBarOffset(fBarOffset);
66  tstyle_->SetColorModelPS(fColorModelPS);
67  tstyle_->SetDrawBorder(fDrawBorder);
68  tstyle_->SetOptLogx(fOptLogx);
69  tstyle_->SetOptLogy(fOptLogy);
70  tstyle_->SetOptLogz(fOptLogz);
71  tstyle_->SetOptDate(fOptDate);
72  tstyle_->SetOptStat(fOptStat);
73  tstyle_->SetOptTitle(fOptTitle);
74  tstyle_->SetOptFile(fOptFile);
75  tstyle_->SetOptFit(fOptFit);
76  tstyle_->SetNumberContours(fNumberContours);
77  if (fShowEventStatus != tstyle_->GetShowEventStatus()) {
78  tstyle_->ToggleEventStatus();
79  }
80  if (fShowEditor != tstyle_->GetShowEditor()) {
81  tstyle_->ToggleEditor();
82  }
83  if (fShowToolBar != tstyle_->GetShowToolBar()) {
84  tstyle_->ToggleToolBar();
85  }
86  tstyle_->GetAttDate()->SetTextFont(fAttDate.GetTextFont());
87  tstyle_->GetAttDate()->SetTextSize(fAttDate.GetTextSize());
88  tstyle_->GetAttDate()->SetTextAngle(fAttDate.GetTextAngle());
89  tstyle_->GetAttDate()->SetTextAlign(fAttDate.GetTextAlign());
90  tstyle_->GetAttDate()->SetTextColor(fAttDate.GetTextColor());
91  tstyle_->SetDateX(fDateX);
92  tstyle_->SetDateY(fDateY);
93  tstyle_->SetEndErrorSize(fEndErrorSize);
94  tstyle_->SetErrorX(fErrorX);
95  tstyle_->SetFuncColor(fFuncColor);
96  tstyle_->SetFuncStyle(fFuncStyle);
97  tstyle_->SetFuncWidth(fFuncWidth);
98  tstyle_->SetGridColor(fGridColor);
99  tstyle_->SetGridStyle(fGridStyle);
100  tstyle_->SetGridWidth(fGridWidth);
101  tstyle_->SetLegendBorderSize(fLegendBorderSize);
102  tstyle_->SetLegendFillColor(fLegendFillColor);
103  tstyle_->SetLegendFont(fLegendFont);
104  tstyle_->SetLegendTextSize(fLegendTextSize);
105  tstyle_->SetHatchesLineWidth(fHatchesLineWidth);
106  tstyle_->SetHatchesSpacing(fHatchesSpacing);
107  tstyle_->SetFrameFillColor(fFrameFillColor);
108  tstyle_->SetFrameLineColor(fFrameLineColor);
109  tstyle_->SetFrameFillStyle(fFrameFillStyle);
110  tstyle_->SetFrameLineStyle(fFrameLineStyle);
111  tstyle_->SetFrameLineWidth(fFrameLineWidth);
112  tstyle_->SetFrameBorderSize(fFrameBorderSize);
113  tstyle_->SetFrameBorderMode(fFrameBorderMode);
114  tstyle_->SetHistFillColor(fHistFillColor);
115  tstyle_->SetHistLineColor(fHistLineColor);
116  tstyle_->SetHistFillStyle(fHistFillStyle);
117  tstyle_->SetHistLineStyle(fHistLineStyle);
118  tstyle_->SetHistLineWidth(fHistLineWidth);
119  tstyle_->SetHistMinimumZero(fHistMinimumZero);
120  tstyle_->SetHistTopMargin(fHistTopMargin);
121  tstyle_->SetCanvasPreferGL(fCanvasPreferGL);
122  tstyle_->SetCanvasColor(fCanvasColor);
123  tstyle_->SetCanvasBorderSize(fCanvasBorderSize);
124  tstyle_->SetCanvasBorderMode(fCanvasBorderMode);
125  tstyle_->SetCanvasDefH(fCanvasDefH);
126  tstyle_->SetCanvasDefW(fCanvasDefW);
127  tstyle_->SetCanvasDefX(fCanvasDefX);
128  tstyle_->SetCanvasDefY(fCanvasDefY);
129  tstyle_->SetPadColor(fPadColor);
130  tstyle_->SetPadBorderSize(fPadBorderSize);
131  tstyle_->SetPadBorderMode(fPadBorderMode);
132  tstyle_->SetPadBottomMargin(fPadBottomMargin);
133  tstyle_->SetPadTopMargin(fPadTopMargin);
134  tstyle_->SetPadLeftMargin(fPadLeftMargin);
135  tstyle_->SetPadRightMargin(fPadRightMargin);
136  tstyle_->SetPadGridX(fPadGridX);
137  tstyle_->SetPadGridY(fPadGridY);
138  tstyle_->SetPadTickX(fPadTickX);
139  tstyle_->SetPadTickY(fPadTickY);
140  tstyle_->SetPaperSize(fPaperSizeX, fPaperSizeY);
141  tstyle_->SetScreenFactor(fScreenFactor);
142  tstyle_->SetStatColor(fStatColor);
143  tstyle_->SetStatTextColor(fStatTextColor);
144  tstyle_->SetStatBorderSize(fStatBorderSize);
145  tstyle_->SetStatFont(fStatFont);
146  tstyle_->SetStatFontSize(fStatFontSize);
147  tstyle_->SetStatStyle(fStatStyle);
148  tstyle_->SetStatFormat(fStatFormat);
149  tstyle_->SetStatX(fStatX);
150  tstyle_->SetStatY(fStatY);
151  tstyle_->SetStatW(fStatW);
152  tstyle_->SetStatH(fStatH);
153  tstyle_->SetStripDecimals(fStripDecimals);
154  tstyle_->SetTitleAlign(fTitleAlign);
155  tstyle_->SetTitleColor(fTitleColor);
156  tstyle_->SetTitleTextColor(fTitleTextColor);
157  tstyle_->SetTitleBorderSize(fTitleBorderSize);
158  tstyle_->SetTitleFont(fTitleFont);
159  tstyle_->SetTitleFontSize(fTitleFontSize);
160  tstyle_->SetTitleStyle(fTitleStyle);
161  tstyle_->SetTitleX(fTitleX);
162  tstyle_->SetTitleY(fTitleY);
163  tstyle_->SetTitleW(fTitleW);
164  tstyle_->SetTitleH(fTitleH);
165  tstyle_->SetLegoInnerR(fLegoInnerR);
166 
167  tstyle_->SetHeaderPS(fHeaderPS);
168  tstyle_->SetTitlePS(fTitlePS);
169  tstyle_->SetFitFormat(fFitFormat);
170  tstyle_->SetPaintTextFormat(fPaintTextFormat);
171  tstyle_->SetLineScalePS(fLineScalePS);
172  tstyle_->SetJoinLinePS(fJoinLinePS);
173  tstyle_->SetCapLinePS(fCapLinePS);
174  tstyle_->SetColorModelPS(fColorModelPS);
175  tstyle_->SetTimeOffset(fTimeOffset);
176  tstyle_->SetImageScaling(fImageScaling);
177 
178  tstyle_->SetLineColor(fLineColor);
179  tstyle_->SetLineStyle(fLineStyle);
180  tstyle_->SetLineWidth(GetLineWidth());
181  tstyle_->SetFillColor(GetFillColor());
182  tstyle_->SetFillStyle(GetFillStyle());
183  tstyle_->SetMarkerColor(GetMarkerColor());
184  tstyle_->SetMarkerSize(GetMarkerSize());
185  tstyle_->SetMarkerStyle(GetMarkerStyle());
186  tstyle_->SetTextAlign(GetTextAlign());
187  tstyle_->SetTextAngle(GetTextAngle());
188  tstyle_->SetTextColor(GetTextColor());
189  tstyle_->SetTextFont(GetTextFont());
190  tstyle_->SetTextSize(GetTextSize());
191 }
192 
193 // -----------------------------------------------------------------------------
194 void Style::FromTStyle(TStyle* style) {
195  auto set_axis = [style](TAttAxis& axis, Option_t* o) {
196  axis.SetNdivisions(style->GetNdivisions(o));
197  axis.SetAxisColor(style->GetAxisColor(o));
198  axis.SetLabelColor(style->GetLabelColor(o));
199  axis.SetLabelFont(style->GetLabelFont(o));
200  axis.SetLabelOffset(style->GetLabelOffset(o));
201  axis.SetTickLength(style->GetTickLength(o));
202  axis.SetTitleOffset(style->GetTitleOffset(o));
203  axis.SetTitleSize(style->GetTitleSize(o));
204  axis.SetTitleColor(style->GetTitleColor(o));
205  axis.SetTitleFont(style->GetTitleFont(o));
206  };
207  set_axis(fXaxis, "x");
208  set_axis(fYaxis, "y");
209  set_axis(fZaxis, "z");
210 
211  fBarWidth = style->GetBarWidth();
212  fBarOffset = style->GetBarOffset();
213  fColorModelPS = style->GetColorModelPS();
214  fDrawBorder = style->GetDrawBorder();
215  fOptLogx = style->GetOptLogx();
216  fOptLogy = style->GetOptLogy();
217  fOptLogz = style->GetOptLogz();
218  fOptDate = style->GetOptDate();
219  fOptStat = style->GetOptStat();
220  fOptTitle = style->GetOptTitle();
221  fOptFile = style->GetOptFile();
222  fOptFit = style->GetOptFit();
223  fShowEventStatus = style->GetShowEventStatus();
224  fShowEditor = style->GetShowEditor();
225  fShowToolBar = style->GetShowToolBar();
226  fNumberContours = style->GetNumberContours();
227  fAttDate.SetTextFont(style->GetAttDate()->GetTextFont());
228  fAttDate.SetTextSize(style->GetAttDate()->GetTextSize());
229  fAttDate.SetTextAngle(style->GetAttDate()->GetTextAngle());
230  fAttDate.SetTextAlign(style->GetAttDate()->GetTextAlign());
231  fAttDate.SetTextColor(style->GetAttDate()->GetTextColor());
232  fDateX = style->GetDateX();
233  fDateY = style->GetDateY();
234  fEndErrorSize = style->GetEndErrorSize();
235  fErrorX = style->GetErrorX();
236  fFuncColor = style->GetFuncColor();
237  fFuncStyle = style->GetFuncStyle();
238  fFuncWidth = style->GetFuncWidth();
239  fGridColor = style->GetGridColor();
240  fGridStyle = style->GetGridStyle();
241  fGridWidth = style->GetGridWidth();
242  fLegendBorderSize = style->GetLegendBorderSize();
243  fLegendFillColor = style->GetLegendFillColor();
244  fLegendFont = style->GetLegendFont();
245  fLegendTextSize = style->GetLegendTextSize();
246  fHatchesLineWidth = style->GetHatchesLineWidth();
247  fHatchesSpacing = style->GetHatchesSpacing();
248  fFrameFillColor = style->GetFrameFillColor();
249  fFrameLineColor = style->GetFrameLineColor();
250  fFrameFillStyle = style->GetFrameFillStyle();
251  fFrameLineStyle = style->GetFrameLineStyle();
252  fFrameLineWidth = style->GetFrameLineWidth();
253  fFrameBorderSize = style->GetFrameBorderSize();
254  fFrameBorderMode = style->GetFrameBorderMode();
255  fHistFillColor = style->GetHistFillColor();
256  fHistLineColor = style->GetHistLineColor();
257  fHistFillStyle = style->GetHistFillStyle();
258  fHistLineStyle = style->GetHistLineStyle();
259  fHistLineWidth = style->GetHistLineWidth();
260  fHistMinimumZero = style->GetHistMinimumZero();
261  fHistTopMargin = style->GetHistTopMargin();
262  fCanvasPreferGL = style->GetCanvasPreferGL();
263  fCanvasColor = style->GetCanvasColor();
264  fCanvasBorderSize = style->GetCanvasBorderSize();
265  fCanvasBorderMode = style->GetCanvasBorderMode();
266  fCanvasDefH = style->GetCanvasDefH();
267  fCanvasDefW = style->GetCanvasDefW();
268  fCanvasDefX = style->GetCanvasDefX();
269  fCanvasDefY = style->GetCanvasDefY();
270  fPadColor = style->GetPadColor();
271  fPadBorderSize = style->GetPadBorderSize();
272  fPadBorderMode = style->GetPadBorderMode();
273  fPadBottomMargin = style->GetPadBottomMargin();
274  fPadTopMargin = style->GetPadTopMargin();
275  fPadLeftMargin = style->GetPadLeftMargin();
276  fPadRightMargin = style->GetPadRightMargin();
277  fPadGridX = style->GetPadGridX();
278  fPadGridY = style->GetPadGridY();
279  fPadTickX = style->GetPadTickX();
280  fPadTickY = style->GetPadTickY();
281  style->GetPaperSize(fPaperSizeX, fPaperSizeY);
282  fScreenFactor = style->GetScreenFactor();
283  fStatColor = style->GetStatColor();
284  fStatTextColor = style->GetStatTextColor();
285  fStatBorderSize = style->GetStatBorderSize();
286  fStatFont = style->GetStatFont();
287  fStatFontSize = style->GetStatFontSize();
288  fStatStyle = style->GetStatStyle();
289  fStatFormat = style->GetStatFormat();
290  fStatX = style->GetStatX();
291  fStatY = style->GetStatY();
292  fStatW = style->GetStatW();
293  fStatH = style->GetStatH();
294  fStripDecimals = style->GetStripDecimals();
295  fTitleAlign = style->GetTitleAlign();
296  fTitleColor = style->GetTitleColor();
297  fTitleTextColor = style->GetTitleTextColor();
298  fTitleBorderSize = style->GetTitleBorderSize();
299  fTitleFont = style->GetTitleFont();
300  fTitleFontSize = style->GetTitleFontSize();
301  fTitleStyle = style->GetTitleStyle();
302  fTitleX = style->GetTitleX();
303  fTitleY = style->GetTitleY();
304  fTitleW = style->GetTitleW();
305  fTitleH = style->GetTitleH();
306  fLegoInnerR = style->GetLegoInnerR();
307 
308  fHeaderPS = style->GetHeaderPS();
309  fTitlePS = style->GetTitlePS();
310  fFitFormat = style->GetFitFormat();
311  fPaintTextFormat = style->GetPaintTextFormat();
312  fLineScalePS = style->GetLineScalePS();
313  fJoinLinePS = style->GetJoinLinePS();
314  fCapLinePS = style->GetCapLinePS();
315  fColorModelPS = style->GetColorModelPS();
316  fTimeOffset = style->GetTimeOffset();
317  fImageScaling = style->GetImageScaling();
318 
319  fLineColor = style->GetLineColor();
320  fLineStyle = style->GetLineStyle();
321  SetLineWidth(style->GetLineWidth());
322  SetFillColor(style->GetFillColor());
323  SetFillStyle(style->GetFillStyle());
324  SetMarkerColor(style->GetMarkerColor());
325  SetMarkerSize(style->GetMarkerSize());
326  SetMarkerStyle(style->GetMarkerStyle());
327  SetTextAlign(style->GetTextAlign());
328  SetTextAngle(style->GetTextAngle());
329  SetTextColor(style->GetTextColor());
330  SetTextFont(style->GetTextFont());
331  SetTextSize(style->GetTextSize());
332 }
333 
334 } // namespace experimental
335 } // namespace bdm
bdm::experimental::Style::fImageScaling
Float_t fImageScaling
Definition: style.h:157
bdm::experimental::Style::fCanvasDefY
Int_t fCanvasDefY
Default canvas top Y position.
Definition: style.h:102
style.h
bdm::experimental::Style::fNumberContours
Int_t fNumberContours
Default number of contours for 2-d plots.
Definition: style.h:61
bdm::experimental::Style::fStatFormat
TString fStatFormat
Printing format for stats.
Definition: style.h:125
bdm::experimental::Style::FromTStyle
void FromTStyle(TStyle *style)
Definition: style.cc:194
bdm::experimental::Style::fLegendTextSize
Double_t fLegendTextSize
Definition: style.h:76
bdm::experimental::Style::fPadBottomMargin
Float_t fPadBottomMargin
Pad bottom margin.
Definition: style.h:106
bdm::experimental::Style::fFrameLineWidth
Width_t fFrameLineWidth
Pad frame line width.
Definition: style.h:84
bdm::experimental::Style::fHistFillColor
Color_t fHistFillColor
Histogram fill color.
Definition: style.h:87
bdm::experimental::Style::fStatY
Float_t fStatY
Y position of top right corner of stat box.
Definition: style.h:127
bdm::experimental::Style::fGridStyle
Style_t fGridStyle
Grid line style.
Definition: style.h:71
bdm::experimental::Style::fCanvasDefW
Int_t fCanvasDefW
Default canvas width.
Definition: style.h:100
bdm::experimental::Style::fTitlePS
TString fTitlePS
User defined Postscript file title.
Definition: style.h:148
bdm::experimental::Style::fHistLineWidth
Width_t fHistLineWidth
Histogram line width.
Definition: style.h:91
bdm::experimental::Style::fOptTitle
Int_t fOptTitle
True if option Title is selected.
Definition: style.h:54
bdm
Definition: agent.cc:39
bdm::experimental::Style::fHistTopMargin
Double_t fHistTopMargin
Margin between histogram's top and pad's top.
Definition: style.h:94
bdm::experimental::Style::fFuncColor
Color_t fFuncColor
Function color.
Definition: style.h:67
bdm::experimental::Style::fPadBorderMode
Int_t fPadBorderMode
Pad border mode.
Definition: style.h:105
bdm::experimental::Style::fLegendFillColor
Color_t fLegendFillColor
Legend fill color.
Definition: style.h:74
bdm::experimental::Style::fPadColor
Color_t fPadColor
Pad color.
Definition: style.h:103
bdm::experimental::Style::fStatFontSize
Float_t fStatFontSize
Font size in pixels for fonts with precision type 3.
Definition: style.h:123
bdm::experimental::Style::fScreenFactor
Float_t fScreenFactor
Multiplication factor for canvas size and position.
Definition: style.h:117
bdm::experimental::Style::fDrawBorder
Int_t fDrawBorder
Flag to draw border(=1) or not (0)
Definition: style.h:48
bdm::experimental::Style::fFitFormat
TString fFitFormat
Printing format for fit parameters.
Definition: style.h:149
bdm::experimental::Style::fBarOffset
Float_t fBarOffset
Offset of bar for graphs.
Definition: style.h:46
bdm::experimental::Style::fPadBorderSize
Width_t fPadBorderSize
Pad border size.
Definition: style.h:104
bdm::experimental::Style::fOptLogx
Int_t fOptLogx
True if log scale in X.
Definition: style.h:49
bdm::experimental::Style::fHatchesSpacing
Double_t fHatchesSpacing
Hatches spacing for hatch styles > 3100.
Definition: style.h:79
bdm::experimental::Style::fShowEventStatus
Int_t fShowEventStatus
Show event status panel.
Definition: style.h:57
bdm::experimental::Style::fTitleW
Float_t fTitleW
Width of title box.
Definition: style.h:141
bdm::experimental::Style::fDateX
Float_t fDateX
X position of the date in the canvas (in NDC)
Definition: style.h:63
bdm::experimental::Style::fBarWidth
Float_t fBarWidth
Width of bar for graphs.
Definition: style.h:45
bdm::experimental::Style::fLegendFont
Style_t fLegendFont
Legend font style.
Definition: style.h:75
bdm::experimental::Style::fJoinLinePS
Int_t fJoinLinePS
Definition: style.h:152
bdm::experimental::Style::fTimeOffset
Double_t fTimeOffset
Time offset to the beginning of an axis.
Definition: style.h:156
bdm::experimental::Style::fOptLogy
Int_t fOptLogy
True if log scale in y.
Definition: style.h:50
bdm::experimental::Style::fAttDate
TAttText fAttDate
Canvas date attribute.
Definition: style.h:62
bdm::experimental::Style::Style
Style()
Definition: style.cc:21
bdm::experimental::Style::fPadLeftMargin
Float_t fPadLeftMargin
Pad left margin.
Definition: style.h:108
bdm::experimental::Style::fLegendBorderSize
Width_t fLegendBorderSize
Legend box border size.
Definition: style.h:73
bdm::experimental::Style::fFrameBorderMode
Int_t fFrameBorderMode
Pad frame border mode.
Definition: style.h:86
bdm::experimental::Style::fGridWidth
Width_t fGridWidth
Grid line width.
Definition: style.h:72
bdm::experimental::Style::fPaperSizeX
Float_t fPaperSizeX
PostScript paper size along X.
Definition: style.h:114
bdm::experimental::Style::fHistFillStyle
Style_t fHistFillStyle
Histogram fill style.
Definition: style.h:89
bdm::experimental::Style::fCanvasColor
Color_t fCanvasColor
Canvas color.
Definition: style.h:96
bdm::experimental::Style::fPadGridX
Bool_t fPadGridX
True to get the grid along X.
Definition: style.h:110
bdm::experimental::Style::fFrameBorderSize
Width_t fFrameBorderSize
Pad frame border size.
Definition: style.h:85
bdm::experimental::Style::fPadRightMargin
Float_t fPadRightMargin
Pad right margin.
Definition: style.h:109
bdm::experimental::Style::fCanvasPreferGL
Bool_t fCanvasPreferGL
If true, rendering in canvas is with GL.
Definition: style.h:95
bdm::experimental::Style::fStatFont
Style_t fStatFont
Font style of Stats PaveLabel.
Definition: style.h:121
bdm::experimental::Style::fOptFit
Int_t fOptFit
True if option Fit is selected.
Definition: style.h:56
bdm::experimental::Style::fYaxis
TAttAxis fYaxis
Y axis attributes.
Definition: style.h:43
bdm::experimental::Style::fHistMinimumZero
Bool_t fHistMinimumZero
Definition: style.h:92
bdm::experimental::Style::fPadGridY
Bool_t fPadGridY
True to get the grid along Y.
Definition: style.h:111
bdm::experimental::Style::fStripDecimals
Bool_t fStripDecimals
Strip decimals in axis labels.
Definition: style.h:130
bdm::experimental::Style::fHeaderPS
TString fHeaderPS
User defined additional Postscript header.
Definition: style.h:147
bdm::experimental::Style::fPadTopMargin
Float_t fPadTopMargin
Pad top margin.
Definition: style.h:107
bdm::experimental::Style::fTitleX
Float_t fTitleX
X position of top left corner of title box.
Definition: style.h:139
bdm::experimental::Style::fOptFile
Int_t fOptFile
True if option File is selected.
Definition: style.h:55
bdm::experimental::Style::fFrameLineStyle
Style_t fFrameLineStyle
Pad frame line style.
Definition: style.h:83
bdm::experimental::Style::fLegoInnerR
Float_t fLegoInnerR
Inner radius for cylindrical legos.
Definition: style.h:143
bdm::experimental::Style::fErrorX
Float_t fErrorX
Per cent of bin width for errors along X.
Definition: style.h:66
bdm::experimental::Style::ToTStyle
void ToTStyle() const
Definition: style.cc:45
bdm::experimental::Style::fTitleColor
Color_t fTitleColor
Title fill area color.
Definition: style.h:132
bdm::experimental::Style::fTitleAlign
Int_t fTitleAlign
Title box alignment.
Definition: style.h:131
bdm::experimental::Style::fStatColor
Color_t fStatColor
Stat fill area color.
Definition: style.h:118
bdm::experimental::Style::fFrameFillStyle
Style_t fFrameFillStyle
Pad frame fill style.
Definition: style.h:82
bdm::experimental::Style::fCanvasBorderMode
Int_t fCanvasBorderMode
Canvas border mode.
Definition: style.h:98
bdm::experimental::Style::fEndErrorSize
Float_t fEndErrorSize
Size of lines at the end of error bars.
Definition: style.h:65
bdm::experimental::Style::fTitleBorderSize
Width_t fTitleBorderSize
Border size of Title PavelLabel.
Definition: style.h:134
bdm::experimental::Style::fCanvasBorderSize
Width_t fCanvasBorderSize
Canvas border size.
Definition: style.h:97
bdm::experimental::Style::fShowToolBar
Int_t fShowToolBar
Show toolbar.
Definition: style.h:59
bdm::experimental::Style::fColorModelPS
Int_t fColorModelPS
PostScript color model: 0 = RGB, 1 = CMYK.
Definition: style.h:47
bdm::experimental::Style::fTitleFont
Style_t fTitleFont
Font style of Title PaveLabel.
Definition: style.h:135
bdm::experimental::Style::~Style
~Style()
Definition: style.cc:26
bdm::experimental::Style::GetTStyle
TStyle * GetTStyle() const
Definition: style.cc:33
bdm::experimental::Style::fTitleY
Float_t fTitleY
Y position of top left corner of title box.
Definition: style.h:140
bdm::experimental::Style::fHistLineColor
Color_t fHistLineColor
Histogram line color.
Definition: style.h:88
bdm::experimental::Style::fTitleFontSize
Float_t fTitleFontSize
Font size in pixels for fonts with precision type 3.
Definition: style.h:137
bdm::experimental::Style::fTitleH
Float_t fTitleH
Height of title box.
Definition: style.h:142
bdm::experimental::Style::fFuncWidth
Width_t fFuncWidth
Function line width.
Definition: style.h:69
bdm::experimental::Style::fPaintTextFormat
TString fPaintTextFormat
Printing format for TH2::PaintText.
Definition: style.h:150
bdm::experimental::Style::fTitleStyle
Style_t fTitleStyle
Fill area style of title PaveLabel.
Definition: style.h:138
bdm::experimental::Style::fCanvasDefH
Int_t fCanvasDefH
Default canvas height.
Definition: style.h:99
bdm::experimental::Style::fStatH
Float_t fStatH
Height of stat box.
Definition: style.h:129
bdm::experimental::Style::fStatX
Float_t fStatX
X position of top right corner of stat box.
Definition: style.h:126
bdm::experimental::Style::fFrameLineColor
Color_t fFrameLineColor
Pad frame line color.
Definition: style.h:81
bdm::experimental::Style::fPaperSizeY
Float_t fPaperSizeY
PostScript paper size along Y.
Definition: style.h:115
bdm::experimental::Style::fHatchesLineWidth
Int_t fHatchesLineWidth
Hatches line width for hatch styles > 3100.
Definition: style.h:78
bdm::experimental::Style::fFrameFillColor
Color_t fFrameFillColor
Pad frame fill color.
Definition: style.h:80
bdm::experimental::Style::fOptLogz
Int_t fOptLogz
True if log scale in z.
Definition: style.h:51
bdm::experimental::Style::fFuncStyle
Style_t fFuncStyle
Function style.
Definition: style.h:68
bdm::experimental::Style::fLineScalePS
Float_t fLineScalePS
Line scale factor when drawing lines on Postscript.
Definition: style.h:151
bdm::experimental::Style::fPadTickY
Int_t fPadTickY
True to set special pad ticks along Y.
Definition: style.h:113
bdm::experimental::Style::tstyle_
TStyle * tstyle_
Definition: style.h:38
bdm::experimental::Style::fStatTextColor
Color_t fStatTextColor
Stat text color.
Definition: style.h:119
bdm::experimental::Style::fHistLineStyle
Style_t fHistLineStyle
Histogram line style.
Definition: style.h:90
bdm::experimental::Style::fStatW
Float_t fStatW
Width of stat box.
Definition: style.h:128
bdm::experimental::Style::fGridColor
Color_t fGridColor
Grid line color (if 0 use axis line color)
Definition: style.h:70
bdm::experimental::Style::fStatBorderSize
Width_t fStatBorderSize
Border size of Stats PaveLabel.
Definition: style.h:120
bdm::experimental::Style::fDateY
Float_t fDateY
Y position of the date in the canvas (in NDC)
Definition: style.h:64
bdm::experimental::Style::fCanvasDefX
Int_t fCanvasDefX
Default canvas top X position.
Definition: style.h:101
bdm::experimental::Style::fOptDate
Int_t fOptDate
True if date option is selected.
Definition: style.h:52
bdm::experimental::Style::fShowEditor
Int_t fShowEditor
Show pad editor.
Definition: style.h:58
bdm::experimental::Style::fPadTickX
Int_t fPadTickX
True to set special pad ticks along X.
Definition: style.h:112
bdm::experimental::Style::fCapLinePS
Int_t fCapLinePS
Definition: style.h:154
bdm::experimental::Style::fXaxis
TAttAxis fXaxis
X axis attributes.
Definition: style.h:42
bdm::experimental::Style::fStatStyle
Style_t fStatStyle
Fill area style of Stats PaveLabel.
Definition: style.h:124
bdm::experimental::Style::fTitleTextColor
Color_t fTitleTextColor
Title text color.
Definition: style.h:133
bdm::experimental::Style::fZaxis
TAttAxis fZaxis
Z axis attributes.
Definition: style.h:44
bdm::experimental::Style::fOptStat
Int_t fOptStat
True if option Stat is selected.
Definition: style.h:53