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 =
111 if (pos !=
fAttribs.end()) { booking =
false; }
const G4Color & GetColor() const
std::vector< ExP01TrackerHit * > a
static const G4double pos
G4String GenerateName(const G4String &, const void *const)
void AddExtension(xercesc::DOMElement *volumeElement, const G4LogicalVolume *const vol)
xercesc::DOMElement * NewElement(const G4String &)
xercesc::DOMElement * extElement
static constexpr double g
Definition of the G03ColorWriter class.
void ColorWrite(xercesc::DOMElement *volumeElement, const G4VisAttributes *const att)
const G4VisAttributes * GetVisAttributes() const
std::vector< const G4VisAttributes * > fAttribs
void ExtensionWrite(xercesc::DOMElement *element)
G4double GetAlpha() const
G4GLOB_DLL std::ostream G4cout
xercesc::DOMAttr * NewAttribute(const G4String &, const G4String &)
G4double GetGreen() const
G4bool BookAttribute(const G4VisAttributes *const att)