86 xercesc::DOMElement* colElement =
NewElement(
"color");
95 xercesc::DOMElement* colorrefElement =
NewElement(
"colorref");
96 colorrefElement->setAttributeNode(
NewAttribute(
"ref",name));
97 volumeElement->appendChild(colorrefElement);
99 G4cout <<
"Written color attribute (R,G,B,A) is: "
100 << r <<
", " <<
g <<
", " <<
b <<
", " <<
a <<
" !" <<
G4endl;
108 std::vector<const G4VisAttributes*>::const_iterator pos =
109 std::find(fAttribs.begin(), fAttribs.end(), ref);
111 if (pos != fAttribs.end()) { booking =
false; }
112 else { fAttribs.push_back(ref); }