VGM Version 5.3
|
The implementation of the interface for the XML writer that writes VGM geometry objects to XML defined by AGDD.dtd (ATLAS Generic Detector Description) More...
#include <AGDDWriter.h>
Public Member Functions | |
AGDDWriter (const std::string &version="Undefined", const std::string &author="VGM AGGD Writer", const std::string dtdVersion="v7") | |
virtual | ~AGDDWriter () |
virtual void | OpenFile (std::string filePath) |
Open output file. | |
virtual void | OpenDocument () |
Write XML document opening. | |
virtual void | OpenSection (const std::string &topVolume) |
Write the section opening (if present) | |
virtual void | OpenPositions () |
Write positions definitions opening. | |
virtual void | OpenRotations () |
Write rotations definitions opening. | |
virtual void | OpenMaterials () |
Write materials definitions opening. | |
virtual void | OpenMedia () |
Write media definitions opening. | |
virtual void | OpenSolids () |
Write solids definitions opening. | |
virtual void | OpenStructure () |
Write structure definition opening (if present) | |
virtual void | OpenComposition (const std::string &name, const std::string &) |
Write composition definition opening (if present) | |
virtual void | CloseFile () |
Close output file. | |
virtual void | CloseDocument () |
Write XML document closing. | |
virtual void | CloseSection (const std::string &) |
Write the section closing (if present) | |
virtual void | ClosePositions () |
Write positions definitions closing. | |
virtual void | CloseRotations () |
Write rotations definitions closing. | |
virtual void | CloseMaterials () |
Write materials definitions closing. | |
virtual void | CloseMedia () |
Write media definitions closing. | |
virtual void | CloseSolids () |
Write materials definitions closing. | |
virtual void | CloseStructure () |
Write structure definition closing (if present) | |
virtual void | CloseComposition () |
Write composition definition closing (if present) | |
virtual void | WriteIsotope (const VGM::IIsotope *isotope) |
Write VGM isotope. | |
virtual void | WriteElement (const VGM::IElement *element) |
Write VGM element. | |
virtual void | WriteMaterial (const VGM::IMaterial *material) |
Write VGM material. | |
virtual void | WriteMedium (const VGM::IMedium *medium) |
Write VGM medium. | |
virtual void | WriteMedium (const VGM::IMaterial *material) |
Write medium element from material. | |
virtual void | WriteSolid (std::string lvName, const VGM::ISolid *solid, std::string mediumName) |
Write VGM solid. | |
virtual void | WritePosition (const std::string &, const VGM::Transform &) |
Write position (from VGM transformation) | |
virtual void | WriteRotation (const std::string &, const VGM::Transform &) |
Write rotation (from VGM transformation) | |
virtual void | WriteScale (const std::string &) |
Write scale (from VGM transformation) | |
void | WritePlacement (const std::string &lvName, const VGM::ThreeVector &position) |
virtual void | WritePlacement (const VGM::IPlacement &placement) |
Write VGM placement. | |
virtual void | WriteEmptyLine () |
Write empty line. | |
virtual void | IncreaseIndention () |
Increase indention. | |
virtual void | DecreaseIndention () |
Decrease indention. | |
virtual double | LengthUnit () const |
Return the default length unit. | |
virtual double | AngleUnit () const |
Return the default angle unit. | |
virtual double | AtomicWeightUnit () const |
Return the default atomic weight unit. | |
virtual double | MassDensityUnit () const |
Return the default mass density unit. | |
virtual void | SetNumWidth (int width) |
Set fixed format number width. | |
virtual void | SetNumPrecision (int precision) |
Set fixed format number precision. | |
virtual double | GetNumWidth () const |
Return fixed format number width. | |
virtual double | GetNumPrecision () const |
Return fixed format number precision. | |
Public Member Functions inherited from XmlVGM::IWriter | |
virtual | ~IWriter () |
Protected Member Functions | |
AGDDWriter (const AGDDWriter &rhs) | |
The implementation of the interface for the XML writer that writes VGM geometry objects to XML defined by AGDD.dtd (ATLAS Generic Detector Description)
Definition at line 56 of file AGDDWriter.h.
XmlVGM::AGDDWriter::AGDDWriter | ( | const std::string & | version = "Undefined", |
const std::string & | author = "VGM AGGD Writer", | ||
const std::string | dtdVersion = "v7" ) |
Standard constructor
version | AGDD file version |
author | AGDD file author |
dtdVersion | AGDD DTD version |
Definition at line 66 of file AGDDWriter.cxx.
|
virtual |
Definition at line 94 of file AGDDWriter.cxx.
|
protected |
Protected copy constructor
Definition at line 88 of file AGDDWriter.cxx.
|
virtual |
|
virtual |
Write XML document opening.
Implements XmlVGM::IWriter.
Definition at line 870 of file AGDDWriter.cxx.
|
virtual |
Write the section opening (if present)
Implements XmlVGM::IWriter.
Definition at line 886 of file AGDDWriter.cxx.
|
inlinevirtual |
Write positions definitions opening.
Implements XmlVGM::IWriter.
Definition at line 71 of file AGDDWriter.h.
|
inlinevirtual |
Write rotations definitions opening.
Implements XmlVGM::IWriter.
Definition at line 72 of file AGDDWriter.h.
|
virtual |
Write materials definitions opening.
Implements XmlVGM::IWriter.
Definition at line 924 of file AGDDWriter.cxx.
|
virtual |
Write media definitions opening.
Implements XmlVGM::IWriter.
Definition at line 953 of file AGDDWriter.cxx.
|
inlinevirtual |
Write solids definitions opening.
Implements XmlVGM::IWriter.
Definition at line 75 of file AGDDWriter.h.
|
inlinevirtual |
Write structure definition opening (if present)
Implements XmlVGM::IWriter.
Definition at line 76 of file AGDDWriter.h.
|
virtual |
Write composition definition opening (if present)
Implements XmlVGM::IWriter.
Definition at line 982 of file AGDDWriter.cxx.
|
virtual |
|
virtual |
Write XML document closing.
Implements XmlVGM::IWriter.
Definition at line 1010 of file AGDDWriter.cxx.
|
virtual |
Write the section closing (if present)
Implements XmlVGM::IWriter.
Definition at line 1022 of file AGDDWriter.cxx.
|
inlinevirtual |
Write positions definitions closing.
Implements XmlVGM::IWriter.
Definition at line 83 of file AGDDWriter.h.
|
inlinevirtual |
Write rotations definitions closing.
Implements XmlVGM::IWriter.
Definition at line 84 of file AGDDWriter.h.
|
virtual |
Write materials definitions closing.
Implements XmlVGM::IWriter.
Definition at line 1034 of file AGDDWriter.cxx.
|
virtual |
Write media definitions closing.
Implements XmlVGM::IWriter.
Definition at line 1046 of file AGDDWriter.cxx.
|
inlinevirtual |
Write materials definitions closing.
Implements XmlVGM::IWriter.
Definition at line 87 of file AGDDWriter.h.
|
inlinevirtual |
Write structure definition closing (if present)
Implements XmlVGM::IWriter.
Definition at line 88 of file AGDDWriter.h.
|
virtual |
Write composition definition closing (if present)
Implements XmlVGM::IWriter.
Definition at line 1058 of file AGDDWriter.cxx.
|
virtual |
Write VGM isotope.
!! Should not be int here
Implements XmlVGM::IWriter.
Definition at line 1073 of file AGDDWriter.cxx.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Write medium element from material.
Implements XmlVGM::IWriter.
Definition at line 1269 of file AGDDWriter.cxx.
|
virtual |
|
inlinevirtual |
Write position (from VGM transformation)
Implements XmlVGM::IWriter.
Definition at line 105 of file AGDDWriter.h.
|
inlinevirtual |
Write rotation (from VGM transformation)
Implements XmlVGM::IWriter.
Definition at line 108 of file AGDDWriter.h.
|
inlinevirtual |
Write scale (from VGM transformation)
Implements XmlVGM::IWriter.
Definition at line 111 of file AGDDWriter.h.
void XmlVGM::AGDDWriter::WritePlacement | ( | const std::string & | lvName, |
const VGM::ThreeVector & | position ) |
Write position without rotation with a given volume name
Definition at line 1381 of file AGDDWriter.cxx.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
Return the default length unit.
Implements XmlVGM::IWriter.
Definition at line 228 of file AGDDWriter.h.
|
inlinevirtual |
Return the default angle unit.
Implements XmlVGM::IWriter.
Definition at line 230 of file AGDDWriter.h.
|
inlinevirtual |
Return the default atomic weight unit.
Implements XmlVGM::IWriter.
Definition at line 232 of file AGDDWriter.h.
|
inlinevirtual |
Return the default mass density unit.
Implements XmlVGM::IWriter.
Definition at line 237 of file AGDDWriter.h.
|
inlinevirtual |
Set fixed format number width.
Implements XmlVGM::IWriter.
Definition at line 242 of file AGDDWriter.h.
|
inlinevirtual |
Set fixed format number precision.
Implements XmlVGM::IWriter.
Definition at line 244 of file AGDDWriter.h.
|
inlinevirtual |
Return fixed format number width.
Implements XmlVGM::IWriter.
Definition at line 249 of file AGDDWriter.h.
|
inlinevirtual |
Return fixed format number precision.
Implements XmlVGM::IWriter.
Definition at line 251 of file AGDDWriter.h.