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); }
G4double GetAlpha() const
void ExtensionWrite(xercesc::DOMElement *element)
xercesc::DOMElement * NewElement(const G4String &)
G4GLOB_DLL std::ostream G4cout
G4double GetGreen() const
const G4VisAttributes * GetVisAttributes() const
Definition of the G03ColorWriter class.
G4String GenerateName(const G4String &, const void *const)
void ColorWrite(xercesc::DOMElement *volumeElement, const G4VisAttributes *const att)
const G4Color & GetColor() const
xercesc::DOMAttr * NewAttribute(const G4String &, const G4String &)
G4bool BookAttribute(const G4VisAttributes *const att)
void AddExtension(xercesc::DOMElement *volumeElement, const G4LogicalVolume *const vol)
xercesc::DOMElement * extElement