Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
|
#include <G4GDMLWrite.hh>
Public Member Functions | |
G4Transform3D | Write (const G4String &filename, const G4LogicalVolume *const topLog, const G4String &schemaPath, const G4int depth, G4bool storeReferences=true) |
void | AddModule (const G4VPhysicalVolume *const topVol) |
void | AddModule (const G4int depth) |
void | AddAuxiliary (G4GDMLAuxStructType myaux) |
void | SetOutputFileOverwrite (G4bool flag) |
virtual void | DefineWrite (xercesc::DOMElement *)=0 |
virtual void | MaterialsWrite (xercesc::DOMElement *)=0 |
virtual void | SolidsWrite (xercesc::DOMElement *)=0 |
virtual void | StructureWrite (xercesc::DOMElement *)=0 |
virtual G4Transform3D | TraverseVolumeTree (const G4LogicalVolume *const, const G4int)=0 |
virtual void | SurfacesWrite ()=0 |
virtual void | SetupWrite (xercesc::DOMElement *, const G4LogicalVolume *const)=0 |
virtual void | ExtensionWrite (xercesc::DOMElement *) |
virtual void | UserinfoWrite (xercesc::DOMElement *) |
virtual void | AddExtension (xercesc::DOMElement *, const G4LogicalVolume *const) |
G4String | GenerateName (const G4String &, const void *const) |
Static Public Member Functions | |
static void | SetAddPointerToName (G4bool) |
Protected Member Functions | |
G4GDMLWrite () | |
virtual | ~G4GDMLWrite () |
VolumeMapType & | VolumeMap () |
xercesc::DOMAttr * | NewAttribute (const G4String &, const G4String &) |
xercesc::DOMAttr * | NewAttribute (const G4String &, const G4double &) |
xercesc::DOMElement * | NewElement (const G4String &) |
G4String | Modularize (const G4VPhysicalVolume *const topvol, const G4int depth) |
void | AddAuxInfo (G4GDMLAuxListType *auxInfoList, xercesc::DOMElement *element) |
G4bool | FileExists (const G4String &) const |
PhysVolumeMapType & | PvolumeMap () |
DepthMapType & | DepthMap () |
Protected Attributes | |
G4String | SchemaLocation |
xercesc::DOMDocument * | doc = nullptr |
xercesc::DOMElement * | extElement = nullptr |
xercesc::DOMElement * | userinfoElement = nullptr |
XMLCh | tempStr [10000] |
G4GDMLAuxListType | auxList |
G4bool | overwriteOutputFile = false |
Static Protected Attributes | |
static G4bool | addPointerToName = true |
Definition at line 51 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 379 of file G4GDMLWrite.cc.
|
protected |
Definition at line 94 of file G4GDMLWrite.cc.
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 342 of file G4GDMLWrite.cc.
void G4GDMLWrite::AddModule | ( | const G4VPhysicalVolume *const | topVol | ) |
Definition at line 308 of file G4GDMLWrite.cc.
|
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 53 of file G4GDMLWrite.cc.
Referenced by Write().
Definition at line 132 of file G4GDMLWrite.cc.
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(), 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 358 of file G4GDMLWrite.cc.
Referenced by G4GDMLWriteStructure::TraverseVolumeTree().
|
protected |
Definition at line 166 of file G4GDMLWrite.cc.
|
protected |
Definition at line 155 of file G4GDMLWrite.cc.
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 181 of file G4GDMLWrite.cc.
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 391 of file G4GDMLWrite.cc.
void G4GDMLWrite::SetOutputFileOverwrite | ( | G4bool | flag | ) |
Definition at line 385 of file G4GDMLWrite.cc.
|
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.
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 188 of file G4GDMLWrite.cc.
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 135 of file G4GDMLWrite.hh.
Referenced by NewAttribute(), NewElement(), and Write().
|
protected |
Definition at line 134 of file G4GDMLWrite.hh.
Referenced by UserinfoWrite().