VGM Version 5.3
Loading...
Searching...
No Matches
XmlVGM::GDMLWriter Class Reference

The implementation of the interface for the XML writer that writes VGM geometry objects to XML defined by GDML scheme. More...

#include <GDMLWriter.h>

Inheritance diagram for XmlVGM::GDMLWriter:

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)
 

Detailed Description

The implementation of the interface for the XML writer that writes VGM geometry objects to XML defined by GDML scheme.

Author
I. Hrivnacova, 31.03.2004

Definition at line 63 of file GDMLWriter.h.

Constructor & Destructor Documentation

◆ GDMLWriter() [1/2]

XmlVGM::GDMLWriter::GDMLWriter ( const std::string & unitName = "unit1",
const std::string & version = "1.0" )

Standard constructor

Parameters
unitNameGDML unit name
versionGDML file version

Definition at line 72 of file GDMLWriter.cxx.

◆ ~GDMLWriter()

XmlVGM::GDMLWriter::~GDMLWriter ( )
virtual

Definition at line 101 of file GDMLWriter.cxx.

◆ GDMLWriter() [2/2]

XmlVGM::GDMLWriter::GDMLWriter ( const GDMLWriter & rhs)
protected

Protected copy constructor

Definition at line 95 of file GDMLWriter.cxx.

Member Function Documentation

◆ OpenFile()

void XmlVGM::GDMLWriter::OpenFile ( std::string filePath)
virtual

Open output file.

Implements XmlVGM::IWriter.

Definition at line 1328 of file GDMLWriter.cxx.

◆ OpenDocument()

void XmlVGM::GDMLWriter::OpenDocument ( )
virtual

Write XML document opening.

Implements XmlVGM::IWriter.

Definition at line 1345 of file GDMLWriter.cxx.

◆ OpenSection()

void XmlVGM::GDMLWriter::OpenSection ( const std::string & topVolume)
virtual

Write the section opening (if present)

Implements XmlVGM::IWriter.

Definition at line 1361 of file GDMLWriter.cxx.

◆ OpenPositions()

void XmlVGM::GDMLWriter::OpenPositions ( )
virtual

Write positions definitions opening.

Implements XmlVGM::IWriter.

Definition at line 1369 of file GDMLWriter.cxx.

◆ OpenRotations()

void XmlVGM::GDMLWriter::OpenRotations ( )
virtual

Write rotations definitions opening.

Implements XmlVGM::IWriter.

Definition at line 1384 of file GDMLWriter.cxx.

◆ OpenMaterials()

void XmlVGM::GDMLWriter::OpenMaterials ( )
virtual

Write materials definitions opening.

Implements XmlVGM::IWriter.

Definition at line 1391 of file GDMLWriter.cxx.

◆ OpenMedia()

virtual void XmlVGM::GDMLWriter::OpenMedia ( )
inlinevirtual

Write media definitions opening.

Implements XmlVGM::IWriter.

Definition at line 80 of file GDMLWriter.h.

◆ OpenSolids()

void XmlVGM::GDMLWriter::OpenSolids ( )
virtual

Write solids definitions opening.

Implements XmlVGM::IWriter.

Definition at line 1405 of file GDMLWriter.cxx.

◆ OpenStructure()

void XmlVGM::GDMLWriter::OpenStructure ( )
virtual

Write structure definition opening (if present)

Implements XmlVGM::IWriter.

Definition at line 1419 of file GDMLWriter.cxx.

◆ OpenComposition()

void XmlVGM::GDMLWriter::OpenComposition ( const std::string & name,
const std::string & materialName )
virtual

Write composition definition opening (if present)

Implements XmlVGM::IWriter.

Definition at line 1433 of file GDMLWriter.cxx.

◆ CloseFile()

void XmlVGM::GDMLWriter::CloseFile ( )
virtual

Close output file.

Implements XmlVGM::IWriter.

Definition at line 1470 of file GDMLWriter.cxx.

◆ CloseDocument()

void XmlVGM::GDMLWriter::CloseDocument ( )
virtual

Write XML document closing.

Implements XmlVGM::IWriter.

Definition at line 1478 of file GDMLWriter.cxx.

◆ CloseSection()

void XmlVGM::GDMLWriter::CloseSection ( const std::string & topVolume)
virtual

Write the section closing (if present)

Implements XmlVGM::IWriter.

Definition at line 1486 of file GDMLWriter.cxx.

◆ ClosePositions()

void XmlVGM::GDMLWriter::ClosePositions ( )
virtual

Write positions definitions closing.

Implements XmlVGM::IWriter.

Definition at line 1518 of file GDMLWriter.cxx.

◆ CloseRotations()

void XmlVGM::GDMLWriter::CloseRotations ( )
virtual

Write rotations definitions closing.

Implements XmlVGM::IWriter.

Definition at line 1525 of file GDMLWriter.cxx.

◆ CloseMaterials()

void XmlVGM::GDMLWriter::CloseMaterials ( )
virtual

Write materials definitions closing.

Implements XmlVGM::IWriter.

Definition at line 1540 of file GDMLWriter.cxx.

◆ CloseMedia()

virtual void XmlVGM::GDMLWriter::CloseMedia ( )
inlinevirtual

Write media definitions closing.

Implements XmlVGM::IWriter.

Definition at line 92 of file GDMLWriter.h.

◆ CloseSolids()

void XmlVGM::GDMLWriter::CloseSolids ( )
virtual

Write materials definitions closing.

Implements XmlVGM::IWriter.

Definition at line 1555 of file GDMLWriter.cxx.

◆ CloseStructure()

void XmlVGM::GDMLWriter::CloseStructure ( )
virtual

Write structure definition closing (if present)

Implements XmlVGM::IWriter.

Definition at line 1569 of file GDMLWriter.cxx.

◆ CloseComposition()

void XmlVGM::GDMLWriter::CloseComposition ( )
virtual

Write composition definition closing (if present)

Implements XmlVGM::IWriter.

Definition at line 1583 of file GDMLWriter.cxx.

◆ WriteIsotope()

void XmlVGM::GDMLWriter::WriteIsotope ( const VGM::IIsotope * isotope)
virtual

Write VGM isotope.

Implements XmlVGM::IWriter.

Definition at line 1598 of file GDMLWriter.cxx.

◆ WriteElement()

void XmlVGM::GDMLWriter::WriteElement ( const VGM::IElement * element)
virtual

Write VGM element.

Implements XmlVGM::IWriter.

Definition at line 1646 of file GDMLWriter.cxx.

◆ WriteMaterial()

void XmlVGM::GDMLWriter::WriteMaterial ( const VGM::IMaterial * material)
virtual

Write VGM material.

Implements XmlVGM::IWriter.

Definition at line 1712 of file GDMLWriter.cxx.

◆ WriteMedium() [1/2]

virtual void XmlVGM::GDMLWriter::WriteMedium ( const VGM::IMedium * medium)
inlinevirtual

Write VGM medium.

Implements XmlVGM::IWriter.

Definition at line 105 of file GDMLWriter.h.

◆ WriteMedium() [2/2]

virtual void XmlVGM::GDMLWriter::WriteMedium ( const VGM::IMaterial * material)
inlinevirtual

Write medium element from material.

Implements XmlVGM::IWriter.

Definition at line 106 of file GDMLWriter.h.

◆ WriteSolid()

void XmlVGM::GDMLWriter::WriteSolid ( std::string lvName,
const VGM::ISolid * solid,
std::string mediumName )
virtual

Write VGM solid.

Implements XmlVGM::IWriter.

Definition at line 1793 of file GDMLWriter.cxx.

◆ WritePosition()

void XmlVGM::GDMLWriter::WritePosition ( const std::string & name,
const VGM::Transform & position )
virtual

Write position (from VGM transformation)

Implements XmlVGM::IWriter.

Definition at line 1917 of file GDMLWriter.cxx.

◆ WriteRotation()

void XmlVGM::GDMLWriter::WriteRotation ( const std::string & name,
const VGM::Transform & rotation )
virtual

Write rotation (from VGM transformation)

Implements XmlVGM::IWriter.

Definition at line 1949 of file GDMLWriter.cxx.

◆ WriteScale()

void XmlVGM::GDMLWriter::WriteScale ( const std::string & name)
virtual

Write scale (from VGM transformation)

Implements XmlVGM::IWriter.

Definition at line 1983 of file GDMLWriter.cxx.

◆ WritePlacement()

void XmlVGM::GDMLWriter::WritePlacement ( const VGM::IPlacement & placement)
virtual

Write VGM placement.

Implements XmlVGM::IWriter.

Definition at line 2014 of file GDMLWriter.cxx.

◆ WriteEmptyLine()

void XmlVGM::GDMLWriter::WriteEmptyLine ( )
virtual

Write empty line.

Implements XmlVGM::IWriter.

Definition at line 2106 of file GDMLWriter.cxx.

◆ IncreaseIndention()

void XmlVGM::GDMLWriter::IncreaseIndention ( )
virtual

Increase indention.

Implements XmlVGM::IWriter.

Definition at line 2114 of file GDMLWriter.cxx.

◆ DecreaseIndention()

void XmlVGM::GDMLWriter::DecreaseIndention ( )
virtual

Decrease indention.

Implements XmlVGM::IWriter.

Definition at line 2122 of file GDMLWriter.cxx.

◆ LengthUnit()

double XmlVGM::GDMLWriter::LengthUnit ( ) const
inlinevirtual

Return the default length unit.

Implements XmlVGM::IWriter.

Definition at line 228 of file GDMLWriter.h.

◆ AngleUnit()

double XmlVGM::GDMLWriter::AngleUnit ( ) const
inlinevirtual

Return the default angle unit.

Implements XmlVGM::IWriter.

Definition at line 230 of file GDMLWriter.h.

◆ AtomicWeightUnit()

double XmlVGM::GDMLWriter::AtomicWeightUnit ( ) const
inlinevirtual

Return the default atomic weight unit.

Implements XmlVGM::IWriter.

Definition at line 232 of file GDMLWriter.h.

◆ MassDensityUnit()

double XmlVGM::GDMLWriter::MassDensityUnit ( ) const
inlinevirtual

Return the default mass density unit.

Implements XmlVGM::IWriter.

Definition at line 237 of file GDMLWriter.h.

◆ TemperatureUnit()

double XmlVGM::GDMLWriter::TemperatureUnit ( ) const
inlinevirtual

Definition at line 242 of file GDMLWriter.h.

◆ PressureUnit()

double XmlVGM::GDMLWriter::PressureUnit ( ) const
inlinevirtual

Definition at line 247 of file GDMLWriter.h.

◆ SetMaps()

void XmlVGM::GDMLWriter::SetMaps ( Maps * maps)
inlinevirtual

Set the name maps

Definition at line 252 of file GDMLWriter.h.

◆ SetNumWidth()

void XmlVGM::GDMLWriter::SetNumWidth ( int width)
inlinevirtual

Set fixed format number width.

Implements XmlVGM::IWriter.

Definition at line 257 of file GDMLWriter.h.

◆ SetNumPrecision()

void XmlVGM::GDMLWriter::SetNumPrecision ( int precision)
inlinevirtual

Set fixed format number precision.

Implements XmlVGM::IWriter.

Definition at line 259 of file GDMLWriter.h.

◆ GetNumWidth()

double XmlVGM::GDMLWriter::GetNumWidth ( ) const
inlinevirtual

Return fixed format number width.

Implements XmlVGM::IWriter.

Definition at line 264 of file GDMLWriter.h.

◆ GetNumPrecision()

double XmlVGM::GDMLWriter::GetNumPrecision ( ) const
inlinevirtual

Return fixed format number precision.

Implements XmlVGM::IWriter.

Definition at line 266 of file GDMLWriter.h.


The documentation for this class was generated from the following files: