8#include "MarkerStyle.h"
10#include <RtypesCore.h>
16 const unsigned short int MarkerStyle::kColor = 0;
17 const unsigned short int MarkerStyle::kStyle = 1;
18 const unsigned short int MarkerStyle::kLineWidth = 2;
19 const unsigned short int MarkerStyle::kSize = 3;
20 void MarkerStyle::SetColor(Int_t val) { SetI(kColor, val); }
22 void MarkerStyle::SetStyle(Int_t val) { SetI(kStyle, val); }
26 void MarkerStyle::SetSize(Int_t val) { SetI(kSize, val); }
28 Int_t MarkerStyle::GetColor()
const {
return GetI(kColor); }
30 Int_t MarkerStyle::GetStyle()
const {
return GetI(kStyle); }
34 Int_t MarkerStyle::GetSize()
const {
return GetI(kSize); }
36 void MarkerStyle::ExportToXML(XMLNode* node)
const {
38 if (
Find(kColor)) node->AddAttrib(
new Hal::XMLAttrib(
"Color", Form(
"%i", GetI(kColor))));
39 if (
Find(kStyle)) node->AddAttrib(
new Hal::XMLAttrib(
"Style", Form(
"%i", GetI(kStyle))));
44 void MarkerStyle::ImportFromXML(XMLNode* node) {
46 if (
auto atr = node->GetAttrib(
"Color")) {
47 int x = atr->GetValue().Atoi();
50 if (
auto atr = node->GetAttrib(
"Style")) {
51 int x = atr->GetValue().Atoi();
58 if (
auto atr = node->GetAttrib(
"Size")) {
59 int x = atr->GetValue().Atoi();
Bool_t Find(Int_t bit) const