VGM Version 5.3
|
The implementation of the interface for the XML writer that writes VGM geometry objects to XML defined by GDML scheme. More...
#include <GDMLWriter.h>
Public Member Functions | |
GDMLWriter (const std::string &unitName="unit1", const std::string &version="1.0") | |
virtual | ~GDMLWriter () |
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 &materialName) |
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 &topVolume) |
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 *) |
Write VGM medium. | |
virtual void | WriteMedium (const VGM::IMaterial *) |
Write medium element from material. | |
virtual void | WriteSolid (std::string lvName, const VGM::ISolid *solid, std::string) |
Write VGM solid. | |
virtual void | WritePosition (const std::string &name, const VGM::Transform &transform) |
Write position (from VGM transformation) | |
virtual void | WriteRotation (const std::string &name, const VGM::Transform &transform) |
Write rotation (from VGM transformation) | |
virtual void | WriteScale (const std::string &name) |
Write scale (from VGM transformation) | |
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 double | TemperatureUnit () const |
virtual double | PressureUnit () const |
virtual void | SetMaps (Maps *maps) |
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 | |
GDMLWriter (const GDMLWriter &rhs) | |
The implementation of the interface for the XML writer that writes VGM geometry objects to XML defined by GDML scheme.
Definition at line 63 of file GDMLWriter.h.
XmlVGM::GDMLWriter::GDMLWriter | ( | const std::string & | unitName = "unit1", |
const std::string & | version = "1.0" ) |
Standard constructor
unitName | GDML unit name |
version | GDML file version |
Definition at line 72 of file GDMLWriter.cxx.
|
virtual |
Definition at line 101 of file GDMLWriter.cxx.
|
protected |
Protected copy constructor
Definition at line 95 of file GDMLWriter.cxx.
|
virtual |
|
virtual |
Write XML document opening.
Implements XmlVGM::IWriter.
Definition at line 1345 of file GDMLWriter.cxx.
|
virtual |
Write the section opening (if present)
Implements XmlVGM::IWriter.
Definition at line 1361 of file GDMLWriter.cxx.
|
virtual |
Write positions definitions opening.
Implements XmlVGM::IWriter.
Definition at line 1369 of file GDMLWriter.cxx.
|
virtual |
Write rotations definitions opening.
Implements XmlVGM::IWriter.
Definition at line 1384 of file GDMLWriter.cxx.
|
virtual |
Write materials definitions opening.
Implements XmlVGM::IWriter.
Definition at line 1391 of file GDMLWriter.cxx.
|
inlinevirtual |
Write media definitions opening.
Implements XmlVGM::IWriter.
Definition at line 80 of file GDMLWriter.h.
|
virtual |
Write solids definitions opening.
Implements XmlVGM::IWriter.
Definition at line 1405 of file GDMLWriter.cxx.
|
virtual |
Write structure definition opening (if present)
Implements XmlVGM::IWriter.
Definition at line 1419 of file GDMLWriter.cxx.
|
virtual |
Write composition definition opening (if present)
Implements XmlVGM::IWriter.
Definition at line 1433 of file GDMLWriter.cxx.
|
virtual |
|
virtual |
Write XML document closing.
Implements XmlVGM::IWriter.
Definition at line 1478 of file GDMLWriter.cxx.
|
virtual |
Write the section closing (if present)
Implements XmlVGM::IWriter.
Definition at line 1486 of file GDMLWriter.cxx.
|
virtual |
Write positions definitions closing.
Implements XmlVGM::IWriter.
Definition at line 1518 of file GDMLWriter.cxx.
|
virtual |
Write rotations definitions closing.
Implements XmlVGM::IWriter.
Definition at line 1525 of file GDMLWriter.cxx.
|
virtual |
Write materials definitions closing.
Implements XmlVGM::IWriter.
Definition at line 1540 of file GDMLWriter.cxx.
|
inlinevirtual |
Write media definitions closing.
Implements XmlVGM::IWriter.
Definition at line 92 of file GDMLWriter.h.
|
virtual |
Write materials definitions closing.
Implements XmlVGM::IWriter.
Definition at line 1555 of file GDMLWriter.cxx.
|
virtual |
Write structure definition closing (if present)
Implements XmlVGM::IWriter.
Definition at line 1569 of file GDMLWriter.cxx.
|
virtual |
Write composition definition closing (if present)
Implements XmlVGM::IWriter.
Definition at line 1583 of file GDMLWriter.cxx.
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
Write medium element from material.
Implements XmlVGM::IWriter.
Definition at line 106 of file GDMLWriter.h.
|
virtual |
|
virtual |
Write position (from VGM transformation)
Implements XmlVGM::IWriter.
Definition at line 1917 of file GDMLWriter.cxx.
|
virtual |
Write rotation (from VGM transformation)
Implements XmlVGM::IWriter.
Definition at line 1949 of file GDMLWriter.cxx.
|
virtual |
Write scale (from VGM transformation)
Implements XmlVGM::IWriter.
Definition at line 1983 of file GDMLWriter.cxx.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
Return the default length unit.
Implements XmlVGM::IWriter.
Definition at line 228 of file GDMLWriter.h.
|
inlinevirtual |
Return the default angle unit.
Implements XmlVGM::IWriter.
Definition at line 230 of file GDMLWriter.h.
|
inlinevirtual |
Return the default atomic weight unit.
Implements XmlVGM::IWriter.
Definition at line 232 of file GDMLWriter.h.
|
inlinevirtual |
Return the default mass density unit.
Implements XmlVGM::IWriter.
Definition at line 237 of file GDMLWriter.h.
|
inlinevirtual |
Definition at line 242 of file GDMLWriter.h.
|
inlinevirtual |
Definition at line 247 of file GDMLWriter.h.
|
inlinevirtual |
Set the name maps
Definition at line 252 of file GDMLWriter.h.
|
inlinevirtual |
Set fixed format number width.
Implements XmlVGM::IWriter.
Definition at line 257 of file GDMLWriter.h.
|
inlinevirtual |
Set fixed format number precision.
Implements XmlVGM::IWriter.
Definition at line 259 of file GDMLWriter.h.
|
inlinevirtual |
Return fixed format number width.
Implements XmlVGM::IWriter.
Definition at line 264 of file GDMLWriter.h.
|
inlinevirtual |
Return fixed format number precision.
Implements XmlVGM::IWriter.
Definition at line 266 of file GDMLWriter.h.