Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
MarkerStyle.h
1/*
2 * MarkerStyle.h
3 *
4 * Created on: 30 lip 2024
5 * Author: daniel
6 */
7
8#ifndef HAL_FEATURES_HIST_STYLES_MARKERSTYLE_H_
9#define HAL_FEATURES_HIST_STYLES_MARKERSTYLE_H_
10
11#include "Style.h"
12
13namespace Hal {
17 class MarkerStyle : public Style {
18
19
20 public:
21 static const unsigned short int kColor;
22 static const unsigned short int kStyle;
23 static const unsigned short int kLineWidth;
24 static const unsigned short int kSize;
25
26 MarkerStyle() {};
27
28 void SetColor(Int_t val);
29
30 void SetStyle(Int_t val);
31
32 // void SetLineWidth(Int_t val);
33
34 void SetSize(Int_t val);
35
36 Int_t GetColor() const;
37
38 Int_t GetStyle() const;
39
40 // Int_t GetLineWidth() const;
41
42 Int_t GetSize() const;
43
44 void ExportToXML(XMLNode* node) const;
45
46 void ImportFromXML(XMLNode* node);
47
48 template<class T>
49 void Apply(T& obj) const;
50
51 virtual ~MarkerStyle() {};
52 ClassDef(MarkerStyle, 1)
53 };
54
55} /* namespace Hal */
56
57template<class T>
58inline void Hal::MarkerStyle::Apply(T& obj) const {
59 if (Find(kColor)) obj.SetMarkerColor(GetI(kColor));
60 if (Find(kSize)) obj.SetMarkerSize(GetI(kSize));
61 // if (Find(kLineWidth)) obj.SetMarkerLineWidth(GetI(kLineWidth));
62 if (Find(kStyle)) obj.SetMarkerStyle(GetI(kStyle));
63}
64
65#endif /* HAL_FEATURES_HIST_STYLES_MARKERSTYLE_H_ */
Bool_t Find(Int_t bit) const
Definition Style.h:55