62 if (
this == &right)
return *
this;
100 fileName = volume->
Name();
101 fileName = fileName +
".agdd";
124 std::cout <<
"File " << fileName <<
" has been generated." << std::endl;
156 if (nofDaughters == 0)
return;
163 for (i = 0; i < nofDaughters; i++) {
166 std::cout <<
"processing " << i <<
"th daughter of " << volume->
Name()
181 for (i = 0; i < nofDaughters; i++) {
183 std::string dVolumeName = dVolume->
Name();
The VGM interface to geometry factory providing functions for geometry construction and conversions.
virtual IVolume * Volume() const =0
Return the associated volume.
The VGM interface to volumes.
virtual std::string MaterialName() const =0
Return the name of the associated material.
virtual std::string Name() const =0
Return the name of this volume.
virtual IPlacement * Daughter(int i) const =0
Return the i-th daughter.
virtual int NofDaughters() const =0
Return the number of volume daughters.
Class for generation of geometry data files in XML, in the AGDD XML format.
virtual void GenerateSection(VGM::IVolume *volume)
AGDDExporter(const VGM::IFactory *factory)
virtual void GenerateGeometry(VGM::IVolume *volume)
Generate XML geometry file for the geometry tree starting from the specified VGM volume.
AGDDExporter & operator=(const AGDDExporter &right)
virtual void ProcessVolume(VGM::IVolume *volume)
The implementation of the interface for the XML writer that writes VGM geometry objects to XML define...
void GenerateMedia(VGM::IVolume *volume)
VExporter(const VGM::IFactory *factory, IWriter *writer)
void GenerateMaterials(VGM::IVolume *volume)
VExporter & operator=(const VExporter &)
void GenerateSolids(VGM::IVolume *volume)
static const std::string fgkUndefinedFileName
std::vector< double > ThreeVector