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

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>

Inheritance diagram for XmlVGM::AGDDWriter:

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)
 

Detailed Description

The implementation of the interface for the XML writer that writes VGM geometry objects to XML defined by AGDD.dtd (ATLAS Generic Detector Description)

Author
I. Hrivnacova, 16.01.2004

Definition at line 56 of file AGDDWriter.h.

Constructor & Destructor Documentation

◆ AGDDWriter() [1/2]

XmlVGM::AGDDWriter::AGDDWriter ( const std::string & version = "Undefined",
const std::string & author = "VGM AGGD Writer",
const std::string dtdVersion = "v7" )

Standard constructor

Parameters
versionAGDD file version
authorAGDD file author
dtdVersionAGDD DTD version

Definition at line 66 of file AGDDWriter.cxx.

◆ ~AGDDWriter()

XmlVGM::AGDDWriter::~AGDDWriter ( )
virtual

Definition at line 94 of file AGDDWriter.cxx.

◆ AGDDWriter() [2/2]

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

Protected copy constructor

Definition at line 88 of file AGDDWriter.cxx.

Member Function Documentation

◆ OpenFile()

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

Open output file.

Implements XmlVGM::IWriter.

Definition at line 853 of file AGDDWriter.cxx.

◆ OpenDocument()

void XmlVGM::AGDDWriter::OpenDocument ( )
virtual

Write XML document opening.

Implements XmlVGM::IWriter.

Definition at line 870 of file AGDDWriter.cxx.

◆ OpenSection()

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

Write the section opening (if present)

Implements XmlVGM::IWriter.

Definition at line 886 of file AGDDWriter.cxx.

◆ OpenPositions()

virtual void XmlVGM::AGDDWriter::OpenPositions ( )
inlinevirtual

Write positions definitions opening.

Implements XmlVGM::IWriter.

Definition at line 71 of file AGDDWriter.h.

◆ OpenRotations()

virtual void XmlVGM::AGDDWriter::OpenRotations ( )
inlinevirtual

Write rotations definitions opening.

Implements XmlVGM::IWriter.

Definition at line 72 of file AGDDWriter.h.

◆ OpenMaterials()

void XmlVGM::AGDDWriter::OpenMaterials ( )
virtual

Write materials definitions opening.

Implements XmlVGM::IWriter.

Definition at line 924 of file AGDDWriter.cxx.

◆ OpenMedia()

void XmlVGM::AGDDWriter::OpenMedia ( )
virtual

Write media definitions opening.

Implements XmlVGM::IWriter.

Definition at line 953 of file AGDDWriter.cxx.

◆ OpenSolids()

virtual void XmlVGM::AGDDWriter::OpenSolids ( )
inlinevirtual

Write solids definitions opening.

Implements XmlVGM::IWriter.

Definition at line 75 of file AGDDWriter.h.

◆ OpenStructure()

virtual void XmlVGM::AGDDWriter::OpenStructure ( )
inlinevirtual

Write structure definition opening (if present)

Implements XmlVGM::IWriter.

Definition at line 76 of file AGDDWriter.h.

◆ OpenComposition()

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

Write composition definition opening (if present)

Implements XmlVGM::IWriter.

Definition at line 982 of file AGDDWriter.cxx.

◆ CloseFile()

void XmlVGM::AGDDWriter::CloseFile ( )
virtual

Close output file.

Implements XmlVGM::IWriter.

Definition at line 1002 of file AGDDWriter.cxx.

◆ CloseDocument()

void XmlVGM::AGDDWriter::CloseDocument ( )
virtual

Write XML document closing.

Implements XmlVGM::IWriter.

Definition at line 1010 of file AGDDWriter.cxx.

◆ CloseSection()

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

Write the section closing (if present)

Implements XmlVGM::IWriter.

Definition at line 1022 of file AGDDWriter.cxx.

◆ ClosePositions()

virtual void XmlVGM::AGDDWriter::ClosePositions ( )
inlinevirtual

Write positions definitions closing.

Implements XmlVGM::IWriter.

Definition at line 83 of file AGDDWriter.h.

◆ CloseRotations()

virtual void XmlVGM::AGDDWriter::CloseRotations ( )
inlinevirtual

Write rotations definitions closing.

Implements XmlVGM::IWriter.

Definition at line 84 of file AGDDWriter.h.

◆ CloseMaterials()

void XmlVGM::AGDDWriter::CloseMaterials ( )
virtual

Write materials definitions closing.

Implements XmlVGM::IWriter.

Definition at line 1034 of file AGDDWriter.cxx.

◆ CloseMedia()

void XmlVGM::AGDDWriter::CloseMedia ( )
virtual

Write media definitions closing.

Implements XmlVGM::IWriter.

Definition at line 1046 of file AGDDWriter.cxx.

◆ CloseSolids()

virtual void XmlVGM::AGDDWriter::CloseSolids ( )
inlinevirtual

Write materials definitions closing.

Implements XmlVGM::IWriter.

Definition at line 87 of file AGDDWriter.h.

◆ CloseStructure()

virtual void XmlVGM::AGDDWriter::CloseStructure ( )
inlinevirtual

Write structure definition closing (if present)

Implements XmlVGM::IWriter.

Definition at line 88 of file AGDDWriter.h.

◆ CloseComposition()

void XmlVGM::AGDDWriter::CloseComposition ( )
virtual

Write composition definition closing (if present)

Implements XmlVGM::IWriter.

Definition at line 1058 of file AGDDWriter.cxx.

◆ WriteIsotope()

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

Write VGM isotope.

!! Should not be int here

Implements XmlVGM::IWriter.

Definition at line 1073 of file AGDDWriter.cxx.

◆ WriteElement()

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

Write VGM element.

Implements XmlVGM::IWriter.

Definition at line 1119 of file AGDDWriter.cxx.

◆ WriteMaterial()

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

Write VGM material.

Implements XmlVGM::IWriter.

Definition at line 1182 of file AGDDWriter.cxx.

◆ WriteMedium() [1/2]

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

Write VGM medium.

Implements XmlVGM::IWriter.

Definition at line 1227 of file AGDDWriter.cxx.

◆ WriteMedium() [2/2]

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

Write medium element from material.

Implements XmlVGM::IWriter.

Definition at line 1269 of file AGDDWriter.cxx.

◆ WriteSolid()

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

Write VGM solid.

Implements XmlVGM::IWriter.

Definition at line 1301 of file AGDDWriter.cxx.

◆ WritePosition()

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

Write position (from VGM transformation)

Implements XmlVGM::IWriter.

Definition at line 105 of file AGDDWriter.h.

◆ WriteRotation()

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

Write rotation (from VGM transformation)

Implements XmlVGM::IWriter.

Definition at line 108 of file AGDDWriter.h.

◆ WriteScale()

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

Write scale (from VGM transformation)

Implements XmlVGM::IWriter.

Definition at line 111 of file AGDDWriter.h.

◆ WritePlacement() [1/2]

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.

◆ WritePlacement() [2/2]

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

Write VGM placement.

Implements XmlVGM::IWriter.

Definition at line 1409 of file AGDDWriter.cxx.

◆ WriteEmptyLine()

void XmlVGM::AGDDWriter::WriteEmptyLine ( )
virtual

Write empty line.

Implements XmlVGM::IWriter.

Definition at line 1534 of file AGDDWriter.cxx.

◆ IncreaseIndention()

void XmlVGM::AGDDWriter::IncreaseIndention ( )
virtual

Increase indention.

Implements XmlVGM::IWriter.

Definition at line 1542 of file AGDDWriter.cxx.

◆ DecreaseIndention()

void XmlVGM::AGDDWriter::DecreaseIndention ( )
virtual

Decrease indention.

Implements XmlVGM::IWriter.

Definition at line 1550 of file AGDDWriter.cxx.

◆ LengthUnit()

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

Return the default length unit.

Implements XmlVGM::IWriter.

Definition at line 228 of file AGDDWriter.h.

◆ AngleUnit()

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

Return the default angle unit.

Implements XmlVGM::IWriter.

Definition at line 230 of file AGDDWriter.h.

◆ AtomicWeightUnit()

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

Return the default atomic weight unit.

Implements XmlVGM::IWriter.

Definition at line 232 of file AGDDWriter.h.

◆ MassDensityUnit()

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

Return the default mass density unit.

Implements XmlVGM::IWriter.

Definition at line 237 of file AGDDWriter.h.

◆ SetNumWidth()

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

Set fixed format number width.

Implements XmlVGM::IWriter.

Definition at line 242 of file AGDDWriter.h.

◆ SetNumPrecision()

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

Set fixed format number precision.

Implements XmlVGM::IWriter.

Definition at line 244 of file AGDDWriter.h.

◆ GetNumWidth()

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

Return fixed format number width.

Implements XmlVGM::IWriter.

Definition at line 249 of file AGDDWriter.h.

◆ GetNumPrecision()

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

Return fixed format number precision.

Implements XmlVGM::IWriter.

Definition at line 251 of file AGDDWriter.h.


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