15 const unsigned short int FillStyle::kColor = 0;
16 const unsigned short int FillStyle::kStyle = 1;
18 void FillStyle::SetColor(Int_t val) { SetI(kColor, val); }
20 void FillStyle::SetStyle(Int_t val) { SetI(kStyle, val); }
22 Int_t FillStyle::GetColor()
const {
return GetI(kColor); }
24 Int_t FillStyle::GetStyle()
const {
return GetI(kStyle); }
26 void FillStyle::ExportToXML(XMLNode* node)
const {
28 if (
Find(kColor)) node->AddAttrib(
new Hal::XMLAttrib(
"Color", Form(
"%i", GetI(kColor))));
29 if (
Find(kStyle)) node->AddAttrib(
new Hal::XMLAttrib(
"Style", Form(
"%i", GetI(kStyle))));
32 void FillStyle::ImportFromXML(XMLNode* node) {
34 if (
auto atr = node->GetAttrib(
"Color")) {
35 int x = atr->GetValue().Atoi();
38 if (
auto atr = node->GetAttrib(
"Style")) {
39 int x = atr->GetValue().Atoi();
Bool_t Find(Int_t bit) const