VGM Version 5.3
|
Class for generation of geometry data files in XML, the XML format is independent from the geometry object model. More...
#include <VExporter.h>
Public Types | |
typedef std::set< std::string, std::less< std::string > > | StringSet |
Public Member Functions | |
VExporter (const VGM::IFactory *factory, IWriter *writer) | |
virtual | ~VExporter () |
void | GenerateXMLGeometry () |
void | GenerateXMLGeometry (const std::string &volumeName) |
void | SetFileName (const std::string &fileName) |
void | SetDebug (int debug) |
void | SetNumWidth (int width) |
void | SetNumPrecision (int precision) |
std::string | FileName () const |
int | Debug () const |
Protected Member Functions | |
VExporter () | |
VExporter (const VExporter &right) | |
VExporter & | operator= (const VExporter &) |
virtual void | GenerateGeometry (VGM::IVolume *volume)=0 |
Generate XML geometry file for the geometry tree starting from the specified VGM volume. | |
void | GeneratePositions (VGM::IVolume *volume) |
void | GenerateRotations (VGM::IVolume *volume) |
void | GenerateScale () |
void | GenerateMaterials (VGM::IVolume *volume) |
void | GenerateMedia (VGM::IVolume *volume) |
void | GenerateSolids (VGM::IVolume *volume) |
void | ClearVolumeNames () |
Protected Attributes | |
const VGM::IFactory * | fFactory |
IWriter * | fWriter |
std::string | fFileName |
StringSet | fVolumeNames |
int | fDebug |
Maps | fMaps |
Static Protected Attributes | |
static const std::string | fgkUndefinedFileName = "Undefined" |
Class for generation of geometry data files in XML, the XML format is independent from the geometry object model.
It has one abstract method for processing the volume tree that has to be provided by derived classes.
Definition at line 47 of file VExporter.h.
typedef std::set<std::string, std::less<std::string> > XmlVGM::VExporter::StringSet |
Definition at line 50 of file VExporter.h.
XmlVGM::VExporter::VExporter | ( | const VGM::IFactory * | factory, |
IWriter * | writer ) |
Standard constructor
factory | the VGM factory which geometry will be exported in XML |
writer | the XML writer |
Definition at line 44 of file VExporter.cxx.
|
virtual |
Definition at line 91 of file VExporter.cxx.
|
protected |
Protected default constructor
Definition at line 58 of file VExporter.cxx.
|
protected |
Protected copy constructor
Definition at line 75 of file VExporter.cxx.
void XmlVGM::VExporter::GenerateXMLGeometry | ( | ) |
Generate XML geometry file from the top (world) volume.
Definition at line 646 of file VExporter.cxx.
void XmlVGM::VExporter::GenerateXMLGeometry | ( | const std::string & | volumeName | ) |
Generate XML geometry file from the VGM volume specified by name.
Definition at line 654 of file VExporter.cxx.
|
inline |
Set the XML file name
Definition at line 130 of file VExporter.h.
|
inline |
Set the debug level
Definition at line 135 of file VExporter.h.
void XmlVGM::VExporter::SetNumWidth | ( | int | width | ) |
Set fixed format number width
Definition at line 682 of file VExporter.cxx.
void XmlVGM::VExporter::SetNumPrecision | ( | int | precision | ) |
Set fixed format number precision
Definition at line 690 of file VExporter.cxx.
|
inline |
Return the XML file name
Definition at line 140 of file VExporter.h.
|
inline |
Return the debug level
Definition at line 145 of file VExporter.h.
|
protected |
Protected assignement operator
Definition at line 102 of file VExporter.cxx.
|
protectedpure virtual |
Generate XML geometry file for the geometry tree starting from the specified VGM volume.
Implemented in XmlVGM::AGDDExporter, and XmlVGM::GDMLExporter.
|
protected |
Generate the XML elements containing all positions present in the given VGM volume daughters tree
Definition at line 507 of file VExporter.cxx.
|
protected |
Generate the XML elements containing all rotations present in the given VGM volume daughters tree
Definition at line 529 of file VExporter.cxx.
|
protected |
|
protected |
Generate the XML elements containing all materials present in the given VGM volume tree
Definition at line 556 of file VExporter.cxx.
|
protected |
Generate the XML elements containing all materials present in the given VGM volume tree
Definition at line 591 of file VExporter.cxx.
|
protected |
Generate the XML elements containing all solids present in given VGM volume tree
Definition at line 621 of file VExporter.cxx.
|
protected |
Clear the set of volume names.
Definition at line 634 of file VExporter.cxx.
|
staticprotected |
Definition at line 99 of file VExporter.h.
|
protected |
Definition at line 103 of file VExporter.h.
|
protected |
Definition at line 104 of file VExporter.h.
|
protected |
Definition at line 105 of file VExporter.h.
|
protected |
Definition at line 106 of file VExporter.h.
|
protected |
Definition at line 107 of file VExporter.h.
|
protected |
Definition at line 108 of file VExporter.h.