Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
PadStyle.h
1/*
2 * PadStyle.h
3 *
4 * Created on: 30 lip 2024
5 * Author: daniel
6 */
7
8#ifndef HAL_FEATURES_HIST_STYLES_PADSTYLE_H_
9#define HAL_FEATURES_HIST_STYLES_PADSTYLE_H_
10
11#include <RtypesCore.h>
12
13#include "Style.h"
14
15namespace Hal {
19 class PadStyle : public Style {
20
21 public:
22 static const unsigned short int kBottomMargin;
23 static const unsigned short int kLeftMargin;
24 static const unsigned short int kTopMargin;
25 static const unsigned short int kRightMargin;
26 static const unsigned short int kLogx;
27 static const unsigned short int kLogy;
28 static const unsigned short int kLogz;
29 static const unsigned short int kGridx;
30 static const unsigned short int kGridy;
31 static const unsigned short int kGridz;
32
33 PadStyle();
34 PadStyle(const PadStyle& other) = default;
35 PadStyle(Double_t x1, Double_t y1, Double_t x2, Double_t y2);
39 void SetBottomMargin(Float_t val);
40
41 void SetLeftMargin(Float_t val);
42
43 void SetTopMargin(Float_t val);
44
45 void SetRightMargin(Float_t val);
46
47 void SetLogx(Int_t val);
48
49 void SetLogy(Int_t val);
50
51 void SetLogz(Int_t val);
52
53 void SetGridx(Int_t val);
54
55 void SetGridy(Int_t val);
56
57 void SetGridz(Int_t val);
58
59 Float_t GetBottomMargin() const;
60
61 Float_t GetLeftMargin() const;
62
63 Float_t GetTopMargin() const;
64
65 Float_t GetRightMargin() const;
66
67 Int_t GetLogx(Int_t val) const;
68
69 Int_t GetLogy(Int_t val) const;
70
71 Int_t GetLogz(Int_t val) const;
72
73 Int_t GetGridx(Int_t val) const;
74
75 Int_t GetGridy(Int_t val) const;
76
77 Int_t GetGridz(Int_t val) const;
78
79 void ExportToXML(XMLNode* node) const;
80 void ImportFromXML(XMLNode* node);
81 void Apply(TVirtualPad* pad = nullptr);
82 virtual ~PadStyle() {}
83 ClassDef(PadStyle, 1);
84 };
85
86} /* namespace Hal */
87
88#endif /* HAL_FEATURES_HIST_STYLES_PADSTYLE_H_ */
void SetBottomMargin(Float_t val)
Definition PadStyle.cxx:35