Geant4-11
|
#include <G4GDMLWrite.hh>
Public Member Functions | |
void | AddAuxiliary (G4GDMLAuxStructType myaux) |
virtual void | AddExtension (xercesc::DOMElement *, const G4LogicalVolume *const) |
void | AddModule (const G4int depth) |
void | AddModule (const G4VPhysicalVolume *const topVol) |
virtual void | DefineWrite (xercesc::DOMElement *)=0 |
virtual void | ExtensionWrite (xercesc::DOMElement *) |
G4String | GenerateName (const G4String &, const void *const) |
virtual void | MaterialsWrite (xercesc::DOMElement *)=0 |
void | SetOutputFileOverwrite (G4bool flag) |
virtual void | SetupWrite (xercesc::DOMElement *, const G4LogicalVolume *const)=0 |
virtual void | SolidsWrite (xercesc::DOMElement *)=0 |
virtual void | StructureWrite (xercesc::DOMElement *)=0 |
virtual void | SurfacesWrite ()=0 |
virtual G4Transform3D | TraverseVolumeTree (const G4LogicalVolume *const, const G4int)=0 |
virtual void | UserinfoWrite (xercesc::DOMElement *) |
G4Transform3D | Write (const G4String &filename, const G4LogicalVolume *const topLog, const G4String &schemaPath, const G4int depth, G4bool storeReferences=true) |
Static Public Member Functions | |
static void | SetAddPointerToName (G4bool) |
Protected Member Functions | |
void | AddAuxInfo (G4GDMLAuxListType *auxInfoList, xercesc::DOMElement *element) |
DepthMapType & | DepthMap () |
G4bool | FileExists (const G4String &) const |
G4GDMLWrite () | |
G4String | Modularize (const G4VPhysicalVolume *const topvol, const G4int depth) |
xercesc::DOMAttr * | NewAttribute (const G4String &, const G4double &) |
xercesc::DOMAttr * | NewAttribute (const G4String &, const G4String &) |
xercesc::DOMElement * | NewElement (const G4String &) |
PhysVolumeMapType & | PvolumeMap () |
VolumeMapType & | VolumeMap () |
virtual | ~G4GDMLWrite () |
Protected Attributes | |
G4GDMLAuxListType | auxList |
xercesc::DOMDocument * | doc = nullptr |
xercesc::DOMElement * | extElement = nullptr |
G4bool | overwriteOutputFile = false |
G4String | SchemaLocation |
xercesc::DOMElement * | userinfoElement = nullptr |
Static Protected Attributes | |
static G4bool | addPointerToName = true |
Private Types | |
using | DepthMapType = std::map< G4int, G4int > |
using | PhysVolumeMapType = std::map< const G4VPhysicalVolume *, G4String > |
using | VolumeMapType = std::map< const G4LogicalVolume *, G4Transform3D > |
Definition at line 51 of file G4GDMLWrite.hh.
|
private |
Definition at line 55 of file G4GDMLWrite.hh.
|
private |
Definition at line 54 of file G4GDMLWrite.hh.
|
private |
Definition at line 53 of file G4GDMLWrite.hh.
|
protected |
Definition at line 43 of file G4GDMLWrite.cc.
|
protectedvirtual |
Definition at line 48 of file G4GDMLWrite.cc.
void G4GDMLWrite::AddAuxiliary | ( | G4GDMLAuxStructType | myaux | ) |
Definition at line 398 of file G4GDMLWrite.cc.
References auxList.
|
protected |
Definition at line 94 of file G4GDMLWrite.cc.
References AddAuxInfo(), NewAttribute(), and NewElement().
Referenced by AddAuxInfo(), G4GDMLWriteStructure::TraverseVolumeTree(), and UserinfoWrite().
|
virtual |
Definition at line 80 of file G4GDMLWrite.cc.
Referenced by G4GDMLWriteStructure::TraverseVolumeTree().
void G4GDMLWrite::AddModule | ( | const G4int | depth | ) |
Definition at line 361 of file G4GDMLWrite.cc.
References DepthMap(), FatalException, and G4Exception().
void G4GDMLWrite::AddModule | ( | const G4VPhysicalVolume *const | topVol | ) |
Definition at line 327 of file G4GDMLWrite.cc.
References FatalException, test::fname, G4cout, G4endl, G4Exception(), GenerateName(), G4VPhysicalVolume::GetName(), G4VPhysicalVolume::IsParameterised(), G4VPhysicalVolume::IsReplicated(), and PvolumeMap().
|
pure virtual |
Implemented in G4GDMLWriteDefine.
Referenced by Write().
|
protected |
Definition at line 73 of file G4GDMLWrite.cc.
Referenced by AddModule(), and Modularize().
|
virtual |
Definition at line 88 of file G4GDMLWrite.cc.
Referenced by Write().
Definition at line 132 of file G4GDMLWrite.cc.
References addPointerToName, G4StrUtil::contains(), and G4InuclParticleNames::name().
Referenced by AddModule(), G4GDMLWriteStructure::AssemblyWrite(), G4GDMLWriteSolids::BooleanWrite(), G4GDMLWriteStructure::BorderSurfaceCache(), G4GDMLWriteSolids::BoxWrite(), G4GDMLWriteSolids::ConeWrite(), G4GDMLWriteSolids::CutTubeWrite(), G4GDMLWriteStructure::DivisionvolWrite(), G4GDMLWriteSolids::ElconeWrite(), G4GDMLWriteMaterials::ElementWrite(), G4GDMLWriteSolids::EllipsoidWrite(), G4GDMLWriteSolids::EltubeWrite(), G4GDMLParser::ExportRegions(), G4GDMLWriteSolids::GenericPolyconeWrite(), G4GDMLWriteSolids::GenTrapWrite(), G4GDMLWriteSolids::HypeWrite(), G4GDMLWriteMaterials::IsotopeWrite(), G4GDMLWriteMaterials::MaterialWrite(), G4GDMLWriteSolids::MultiUnionWrite(), G4GDMLWriteSolids::OpticalSurfaceWrite(), G4GDMLWriteSolids::OrbWrite(), G4GDMLWriteSolids::ParaboloidWrite(), G4GDMLWriteParamvol::ParametersWrite(), G4GDMLWriteParamvol::ParamvolAlgorithmWrite(), G4GDMLWriteParamvol::ParamvolWrite(), G4GDMLWriteSolids::ParaWrite(), G4GDMLWriteStructure::PhysvolWrite(), G4GDMLWriteSolids::PolyconeWrite(), G4GDMLWriteSolids::PolyhedraWrite(), G4GDMLWriteMaterials::PropertyConstWrite(), G4GDMLWriteMaterials::PropertyVectorWrite(), G4GDMLWriteMaterials::PropertyWrite(), G4GDMLWriteSolids::PropertyWrite(), G4GDMLWriteStructure::ReplicavolWrite(), G4GDMLWriteSolids::ScaledWrite(), G4GDMLWriteSetup::SetupWrite(), G4GDMLWriteStructure::SkinSurfaceCache(), G4GDMLWriteSolids::SphereWrite(), G4GDMLWriteSolids::TessellatedWrite(), G4GDMLWriteSolids::TetWrite(), G4GDMLWriteSolids::TorusWrite(), G4GDMLWriteSolids::TrapWrite(), G4GDMLWriteStructure::TraverseVolumeTree(), G4GDMLWriteSolids::TrdWrite(), G4GDMLWriteSolids::TubeWrite(), G4GDMLWriteSolids::TwistedboxWrite(), G4GDMLWriteSolids::TwistedtrapWrite(), G4GDMLWriteSolids::TwistedtrdWrite(), G4GDMLWriteSolids::TwistedtubsWrite(), and G4GDMLWriteSolids::XtruWrite().
|
pure virtual |
Implemented in G4GDMLWriteMaterials.
Referenced by Write().
|
protected |
Definition at line 377 of file G4GDMLWrite.cc.
References DepthMap(), and PvolumeMap().
Referenced by G4GDMLWriteStructure::TraverseVolumeTree().
|
protected |
Definition at line 171 of file G4GDMLWrite.cc.
References doc, and G4InuclParticleNames::name().
|
protected |
Definition at line 155 of file G4GDMLWrite.cc.
References doc, and G4InuclParticleNames::name().
Referenced by AddAuxInfo(), G4GDMLWriteStructure::AssemblyWrite(), G4GDMLWriteMaterials::AtomWrite(), G4GDMLWriteSolids::BooleanWrite(), G4GDMLWriteStructure::BorderSurfaceCache(), G4GDMLWriteParamvol::Box_dimensionsWrite(), G4GDMLWriteSolids::BoxWrite(), G4GDMLWriteParamvol::Cone_dimensionsWrite(), G4GDMLWriteSolids::ConeWrite(), G4GDMLWriteSolids::CutTubeWrite(), G4GDMLWriteStructure::DivisionvolWrite(), G4GDMLWriteMaterials::DWrite(), G4GDMLWriteSolids::ElconeWrite(), G4GDMLWriteMaterials::ElementWrite(), G4GDMLWriteParamvol::Ellipsoid_dimensionsWrite(), G4GDMLWriteSolids::EllipsoidWrite(), G4GDMLWriteSolids::EltubeWrite(), G4GDMLWriteSolids::GenericPolyconeWrite(), G4GDMLWriteSolids::GenTrapWrite(), G4GDMLWriteParamvol::Hype_dimensionsWrite(), G4GDMLWriteSolids::HypeWrite(), G4GDMLWriteMaterials::IsotopeWrite(), G4GDMLWriteMaterials::MaterialWrite(), G4GDMLWriteMaterials::MEEWrite(), G4GDMLWriteSolids::MultiUnionWrite(), G4GDMLWriteSolids::OpticalSurfaceWrite(), G4GDMLWriteParamvol::Orb_dimensionsWrite(), G4GDMLWriteSolids::OrbWrite(), G4GDMLWriteParamvol::Para_dimensionsWrite(), G4GDMLWriteSolids::ParaboloidWrite(), G4GDMLWriteParamvol::ParametersWrite(), G4GDMLWriteParamvol::ParamvolWrite(), G4GDMLWriteSolids::ParaWrite(), G4GDMLWriteStructure::PhysvolWrite(), G4GDMLWriteParamvol::Polycone_dimensionsWrite(), G4GDMLWriteSolids::PolyconeWrite(), G4GDMLWriteParamvol::Polyhedra_dimensionsWrite(), G4GDMLWriteSolids::PolyhedraWrite(), G4GDMLWriteDefine::Position_vectorWrite(), G4GDMLWriteMaterials::PropertyConstWrite(), G4GDMLWriteMaterials::PropertyVectorWrite(), G4GDMLWriteMaterials::PropertyWrite(), G4GDMLWriteSolids::PropertyWrite(), G4GDMLWriteMaterials::PWrite(), G4GDMLWriteStructure::ReplicavolWrite(), G4GDMLWriteDefine::Rotation_vectorWrite(), G4GDMLWriteSolids::RZPointWrite(), G4GDMLWriteDefine::Scale_vectorWrite(), G4GDMLWriteSolids::ScaledWrite(), G4GDMLWriteSetup::SetupWrite(), G4GDMLWriteStructure::SkinSurfaceCache(), G4GDMLWriteParamvol::Sphere_dimensionsWrite(), G4GDMLWriteSolids::SphereWrite(), G4GDMLWriteSolids::TessellatedWrite(), G4GDMLWriteSolids::TetWrite(), G4GDMLWriteParamvol::Torus_dimensionsWrite(), G4GDMLWriteSolids::TorusWrite(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), G4GDMLWriteSolids::TrapWrite(), G4GDMLWriteStructure::TraverseVolumeTree(), G4GDMLWriteParamvol::Trd_dimensionsWrite(), G4GDMLWriteSolids::TrdWrite(), G4GDMLWriteParamvol::Tube_dimensionsWrite(), G4GDMLWriteSolids::TubeWrite(), G4GDMLWriteSolids::TwistedboxWrite(), G4GDMLWriteSolids::TwistedtrapWrite(), G4GDMLWriteSolids::TwistedtrdWrite(), G4GDMLWriteSolids::TwistedtubsWrite(), G4GDMLWriteMaterials::TWrite(), Write(), G4GDMLWriteSolids::XtruWrite(), and G4GDMLWriteSolids::ZplaneWrite().
|
protected |
Definition at line 192 of file G4GDMLWrite.cc.
References doc, elem, and G4InuclParticleNames::name().
Referenced by AddAuxInfo(), G4GDMLWriteStructure::AssemblyWrite(), G4GDMLWriteMaterials::AtomWrite(), G4GDMLWriteSolids::BooleanWrite(), G4GDMLWriteStructure::BorderSurfaceCache(), G4GDMLWriteParamvol::Box_dimensionsWrite(), G4GDMLWriteSolids::BoxWrite(), G4GDMLWriteParamvol::Cone_dimensionsWrite(), G4GDMLWriteSolids::ConeWrite(), G4GDMLWriteSolids::CutTubeWrite(), G4GDMLWriteDefine::DefineWrite(), G4GDMLWriteStructure::DivisionvolWrite(), G4GDMLWriteMaterials::DWrite(), G4GDMLWriteSolids::ElconeWrite(), G4GDMLWriteMaterials::ElementWrite(), G4GDMLWriteParamvol::Ellipsoid_dimensionsWrite(), G4GDMLWriteSolids::EllipsoidWrite(), G4GDMLWriteSolids::EltubeWrite(), G4GDMLWriteSolids::GenericPolyconeWrite(), G4GDMLWriteSolids::GenTrapWrite(), G4GDMLWriteParamvol::Hype_dimensionsWrite(), G4GDMLWriteSolids::HypeWrite(), G4GDMLWriteMaterials::IsotopeWrite(), G4GDMLWriteMaterials::MaterialsWrite(), G4GDMLWriteMaterials::MaterialWrite(), G4GDMLWriteMaterials::MEEWrite(), G4GDMLWriteSolids::MultiUnionWrite(), G4GDMLWriteSolids::OpticalSurfaceWrite(), G4GDMLWriteParamvol::Orb_dimensionsWrite(), G4GDMLWriteSolids::OrbWrite(), G4GDMLWriteParamvol::Para_dimensionsWrite(), G4GDMLWriteSolids::ParaboloidWrite(), G4GDMLWriteParamvol::ParametersWrite(), G4GDMLWriteParamvol::ParamvolWrite(), G4GDMLWriteSolids::ParaWrite(), G4GDMLWriteStructure::PhysvolWrite(), G4GDMLWriteParamvol::Polycone_dimensionsWrite(), G4GDMLWriteSolids::PolyconeWrite(), G4GDMLWriteParamvol::Polyhedra_dimensionsWrite(), G4GDMLWriteSolids::PolyhedraWrite(), G4GDMLWriteDefine::Position_vectorWrite(), G4GDMLWriteMaterials::PropertyConstWrite(), G4GDMLWriteMaterials::PropertyVectorWrite(), G4GDMLWriteMaterials::PropertyWrite(), G4GDMLWriteSolids::PropertyWrite(), G4GDMLWriteMaterials::PWrite(), G4GDMLWriteStructure::ReplicavolWrite(), G4GDMLWriteDefine::Rotation_vectorWrite(), G4GDMLWriteSolids::RZPointWrite(), G4GDMLWriteDefine::Scale_vectorWrite(), G4GDMLWriteSolids::ScaledWrite(), G4GDMLWriteSetup::SetupWrite(), G4GDMLWriteStructure::SkinSurfaceCache(), G4GDMLWriteSolids::SolidsWrite(), G4GDMLWriteParamvol::Sphere_dimensionsWrite(), G4GDMLWriteSolids::SphereWrite(), G4GDMLWriteStructure::StructureWrite(), G4GDMLWriteSolids::TessellatedWrite(), G4GDMLWriteSolids::TetWrite(), G4GDMLWriteParamvol::Torus_dimensionsWrite(), G4GDMLWriteSolids::TorusWrite(), G4GDMLWriteParamvol::Trap_dimensionsWrite(), G4GDMLWriteSolids::TrapWrite(), G4GDMLWriteStructure::TraverseVolumeTree(), G4GDMLWriteParamvol::Trd_dimensionsWrite(), G4GDMLWriteSolids::TrdWrite(), G4GDMLWriteParamvol::Tube_dimensionsWrite(), G4GDMLWriteSolids::TubeWrite(), G4GDMLWriteSolids::TwistedboxWrite(), G4GDMLWriteSolids::TwistedtrapWrite(), G4GDMLWriteSolids::TwistedtrdWrite(), G4GDMLWriteSolids::TwistedtubsWrite(), G4GDMLWriteMaterials::TWrite(), UserinfoWrite(), G4GDMLWriteSolids::XtruWrite(), and G4GDMLWriteSolids::ZplaneWrite().
|
protected |
Definition at line 66 of file G4GDMLWrite.cc.
Referenced by AddModule(), and Modularize().
|
static |
Definition at line 410 of file G4GDMLWrite.cc.
References addPointerToName.
void G4GDMLWrite::SetOutputFileOverwrite | ( | G4bool | flag | ) |
Definition at line 404 of file G4GDMLWrite.cc.
References overwriteOutputFile.
|
pure virtual |
Implemented in G4GDMLWriteSetup.
Referenced by Write().
|
pure virtual |
Implemented in G4GDMLWriteSolids.
Referenced by Write().
|
pure virtual |
Implemented in G4GDMLWriteStructure.
Referenced by Write().
|
pure virtual |
Implemented in G4GDMLWriteStructure.
Referenced by Write().
|
pure virtual |
Implemented in G4GDMLWriteStructure.
Referenced by Write().
|
virtual |
Definition at line 118 of file G4GDMLWrite.cc.
References AddAuxInfo(), auxList, G4cout, G4endl, NewElement(), and userinfoElement.
Referenced by Write().
|
protected |
Definition at line 60 of file G4GDMLWrite.cc.
Referenced by G4GDMLWriteStructure::TraverseVolumeTree(), and Write().
G4Transform3D G4GDMLWrite::Write | ( | const G4String & | filename, |
const G4LogicalVolume *const | topLog, | ||
const G4String & | schemaPath, | ||
const G4int | depth, | ||
G4bool | storeReferences = true |
||
) |
Definition at line 203 of file G4GDMLWrite.cc.
References addPointerToName, DefineWrite(), doc, ExtensionWrite(), FatalException, FileExists(), test::fname, G4cout, G4endl, G4Exception(), HepGeom::Transform3D::Identity, MaterialsWrite(), NewAttribute(), overwriteOutputFile, SchemaLocation, SetupWrite(), SolidsWrite(), StructureWrite(), SurfacesWrite(), TraverseVolumeTree(), UserinfoWrite(), and VolumeMap().
Referenced by G4GDMLWriteStructure::TraverseVolumeTree().
|
staticprotected |
Definition at line 131 of file G4GDMLWrite.hh.
Referenced by GenerateName(), SetAddPointerToName(), and Write().
|
protected |
Definition at line 136 of file G4GDMLWrite.hh.
Referenced by AddAuxiliary(), and UserinfoWrite().
|
protected |
Definition at line 132 of file G4GDMLWrite.hh.
Referenced by NewAttribute(), NewElement(), and Write().
|
protected |
Definition at line 133 of file G4GDMLWrite.hh.
|
protected |
Definition at line 137 of file G4GDMLWrite.hh.
Referenced by SetOutputFileOverwrite(), and Write().
|
protected |
Definition at line 130 of file G4GDMLWrite.hh.
Referenced by G4GDMLWriteStructure::TraverseVolumeTree(), and Write().
|
protected |
Definition at line 134 of file G4GDMLWrite.hh.
Referenced by UserinfoWrite().