VGM Version 5.3
|
Utility class for mapping XML element values to their names within the XML exporter precision. More...
#include <Maps.h>
Public Types | |
typedef std::map< VGM::ThreeVector, std::string, std::less< VGM::ThreeVector > > | ThreeVectorMap |
typedef std::multimap< VGM::ThreeVector, const VGM::IIsotope *, std::less< VGM::ThreeVector > > | IsotopeMap |
typedef std::multimap< VGM::ThreeVector, const VGM::IElement *, std::less< VGM::ThreeVector > > | ElementMap |
typedef std::map< std::string, const VGM::IMaterial *, std::less< std::string > > | MaterialMap |
typedef std::map< std::string, const VGM::IMedium *, std::less< std::string > > | MediumMap |
Public Member Functions | |
Maps (double numPrecision, double angleUnit, double lengthUnit) | |
virtual | ~Maps () |
std::string | AddPosition (const VGM::Transform &transform) |
std::string | AddRotation (const VGM::Transform &transform) |
std::string | AddBooleanPosition () |
std::string | AddBooleanRotation () |
const VGM::IIsotope * | AddIsotope (const VGM::IIsotope *isotope) |
const VGM::IElement * | AddElement (const VGM::IElement *element) |
const VGM::IMaterial * | AddMaterial (const VGM::IMaterial *material) |
const VGM::IMedium * | AddMedium (const VGM::IMedium *medium) |
std::string | FindPositionName (const VGM::Transform &transform) const |
std::string | FindRotationName (const VGM::Transform &transform) const |
void | WriteAllPositions (IWriter *writer) |
void | WriteAllRotations (IWriter *writer) |
void | WriteAllIsotopes (IWriter *writer) |
void | WriteAllElements (IWriter *writer) |
void | WriteAllMaterials (IWriter *writer) |
void | WriteAllMedia (IWriter *writer) |
void | WriteAllMediaFromMaterials (IWriter *writer) |
void | SetNumPrecision (double precision) |
void | ClearAllMaps () |
Protected Member Functions | |
Maps () | |
Maps (const Maps &right) | |
Maps & | operator= (const Maps &) |
Utility class for mapping XML element values to their names within the XML exporter precision.
typedef std::map<VGM::ThreeVector, std::string, std::less<VGM::ThreeVector> > XmlVGM::Maps::ThreeVectorMap |
typedef std::multimap<VGM::ThreeVector, const VGM::IIsotope*, std::less<VGM::ThreeVector> > XmlVGM::Maps::IsotopeMap |
typedef std::multimap<VGM::ThreeVector, const VGM::IElement*, std::less<VGM::ThreeVector> > XmlVGM::Maps::ElementMap |
typedef std::map<std::string, const VGM::IMaterial*, std::less<std::string> > XmlVGM::Maps::MaterialMap |
typedef std::map<std::string, const VGM::IMedium*, std::less<std::string> > XmlVGM::Maps::MediumMap |
XmlVGM::Maps::Maps | ( | double | numPrecision, |
double | angleUnit, | ||
double | lengthUnit ) |
|
protected |
|
protected |
std::string XmlVGM::Maps::AddPosition | ( | const VGM::Transform & | transform | ) |
std::string XmlVGM::Maps::AddRotation | ( | const VGM::Transform & | transform | ) |
std::string XmlVGM::Maps::AddBooleanPosition | ( | ) |
std::string XmlVGM::Maps::AddBooleanRotation | ( | ) |
const VGM::IIsotope * XmlVGM::Maps::AddIsotope | ( | const VGM::IIsotope * | isotope | ) |
const VGM::IElement * XmlVGM::Maps::AddElement | ( | const VGM::IElement * | element | ) |
const VGM::IMaterial * XmlVGM::Maps::AddMaterial | ( | const VGM::IMaterial * | material | ) |
const VGM::IMedium * XmlVGM::Maps::AddMedium | ( | const VGM::IMedium * | medium | ) |
std::string XmlVGM::Maps::FindPositionName | ( | const VGM::Transform & | transform | ) | const |
std::string XmlVGM::Maps::FindRotationName | ( | const VGM::Transform & | transform | ) | const |
void XmlVGM::Maps::WriteAllPositions | ( | IWriter * | writer | ) |
void XmlVGM::Maps::WriteAllRotations | ( | IWriter * | writer | ) |
void XmlVGM::Maps::WriteAllIsotopes | ( | IWriter * | writer | ) |
void XmlVGM::Maps::WriteAllElements | ( | IWriter * | writer | ) |
void XmlVGM::Maps::WriteAllMaterials | ( | IWriter * | writer | ) |
void XmlVGM::Maps::WriteAllMedia | ( | IWriter * | writer | ) |
void XmlVGM::Maps::WriteAllMediaFromMaterials | ( | IWriter * | writer | ) |
|
inline |
|
protected |