Geant4
10.00.p01
|
#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) |
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 | AddExtension (xercesc::DOMElement *, const G4LogicalVolume *const) |
Static Public Member Functions | |
static void | SetAddPointerToName (G4bool) |
Protected Member Functions | |
G4GDMLWrite () | |
virtual | ~G4GDMLWrite () |
VolumeMapType & | VolumeMap () |
G4String | GenerateName (const G4String &, const void *const) |
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) |
G4bool | FileExists (const G4String &) const |
PhysVolumeMapType & | PvolumeMap () |
DepthMapType & | DepthMap () |
Protected Attributes | |
G4String | SchemaLocation |
xercesc::DOMDocument * | doc |
xercesc::DOMElement * | extElement |
XMLCh | tempStr [10000] |
Static Protected Attributes | |
static G4bool | addPointerToName = true |
Private Types | |
typedef std::map< const G4LogicalVolume *, G4Transform3D > | VolumeMapType |
typedef std::map< const G4VPhysicalVolume *, G4String > | PhysVolumeMapType |
typedef std::map< G4int, G4int > | DepthMapType |
Definition at line 55 of file G4GDMLWrite.hh.
|
private |
Definition at line 59 of file G4GDMLWrite.hh.
|
private |
Definition at line 58 of file G4GDMLWrite.hh.
|
private |
Definition at line 57 of file G4GDMLWrite.hh.
|
protected |
Definition at line 46 of file G4GDMLWrite.cc.
|
protectedvirtual |
Definition at line 50 of file G4GDMLWrite.cc.
|
virtual |
Reimplemented in G03ColorWriter.
Definition at line 78 of file G4GDMLWrite.cc.
Referenced by G4GDMLWriteStructure::TraverseVolumeTree().
void G4GDMLWrite::AddModule | ( | const G4VPhysicalVolume *const | topVol | ) |
Definition at line 247 of file G4GDMLWrite.cc.
References FatalException, G4cout, G4endl, G4Exception(), GenerateName(), G4VPhysicalVolume::GetName(), G4VPhysicalVolume::IsParameterised(), G4VPhysicalVolume::IsReplicated(), and PvolumeMap().
void G4GDMLWrite::AddModule | ( | const G4int | depth | ) |
Definition at line 280 of file G4GDMLWrite.cc.
References DepthMap(), FatalException, and G4Exception().
|
pure virtual |
Implemented in G4GDMLWriteDefine.
Referenced by Write().
|
protected |
Definition at line 72 of file G4GDMLWrite.cc.
References instance.
Referenced by AddModule(), and Modularize().
|
virtual |
Reimplemented in G03ColorWriter.
Definition at line 85 of file G4GDMLWrite.cc.
Referenced by Write().
Definition at line 54 of file G4GDMLWrite.cc.
Referenced by Write().
Definition at line 90 of file G4GDMLWrite.cc.
References addPointerToName, G4String::contains(), and name.
Referenced by AddModule(), G4GDMLWriteSolids::BooleanWrite(), G4GDMLWriteStructure::BorderSurfaceCache(), G4GDMLWriteSolids::BoxWrite(), G03ColorWriter::ColorWrite(), 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::OrbWrite(), G4GDMLWriteSolids::ParaboloidWrite(), G4GDMLWriteParamvol::ParametersWrite(), G4GDMLWriteParamvol::ParamvolAlgorithmWrite(), G4GDMLWriteParamvol::ParamvolWrite(), G4GDMLWriteSolids::ParaWrite(), G4GDMLWriteStructure::PhysvolWrite(), G4GDMLWriteSolids::PolyconeWrite(), G4GDMLWriteSolids::PolyhedraWrite(), G4GDMLWriteMaterials::PropertyVectorWrite(), G4GDMLWriteMaterials::PropertyWrite(), G4GDMLWriteStructure::ReplicavolWrite(), 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 295 of file G4GDMLWrite.cc.
References DepthMap(), and PvolumeMap().
Referenced by G4GDMLWriteStructure::TraverseVolumeTree().
|
protected |
Definition at line 103 of file G4GDMLWrite.cc.
Referenced by G4GDMLWriteMaterials::AtomWrite(), G4GDMLWriteSolids::BooleanWrite(), G4GDMLWriteStructure::BorderSurfaceCache(), G4GDMLWriteParamvol::Box_dimensionsWrite(), G4GDMLWriteSolids::BoxWrite(), G03ColorWriter::ColorWrite(), 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::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::PropertyVectorWrite(), G4GDMLWriteMaterials::PropertyWrite(), G4GDMLWriteMaterials::PWrite(), G4GDMLWriteStructure::ReplicavolWrite(), G4GDMLWriteDefine::Rotation_vectorWrite(), G4GDMLWriteSolids::RZPointWrite(), G4GDMLWriteDefine::Scale_vectorWrite(), 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 113 of file G4GDMLWrite.cc.
|
protected |
Definition at line 127 of file G4GDMLWrite.cc.
Referenced by G4GDMLWriteMaterials::AtomWrite(), G4GDMLWriteSolids::BooleanWrite(), G4GDMLWriteStructure::BorderSurfaceCache(), G4GDMLWriteParamvol::Box_dimensionsWrite(), G4GDMLWriteSolids::BoxWrite(), G03ColorWriter::ColorWrite(), G4GDMLWriteParamvol::Cone_dimensionsWrite(), G4GDMLWriteSolids::ConeWrite(), G4GDMLWriteSolids::CutTubeWrite(), G4GDMLWriteDefine::DefineWrite(), G4GDMLWriteStructure::DivisionvolWrite(), G4GDMLWriteMaterials::DWrite(), G4GDMLWriteSolids::ElconeWrite(), G4GDMLWriteMaterials::ElementWrite(), G4GDMLWriteParamvol::Ellipsoid_dimensionsWrite(), G4GDMLWriteSolids::EllipsoidWrite(), G4GDMLWriteSolids::EltubeWrite(), G03ColorWriter::ExtensionWrite(), G4GDMLWriteSolids::GenericPolyconeWrite(), G4GDMLWriteSolids::GenTrapWrite(), G4GDMLWriteParamvol::Hype_dimensionsWrite(), G4GDMLWriteSolids::HypeWrite(), G4GDMLWriteMaterials::IsotopeWrite(), G4GDMLWriteMaterials::MaterialsWrite(), G4GDMLWriteMaterials::MaterialWrite(), G4GDMLWriteMaterials::MEEWrite(), 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::PropertyVectorWrite(), G4GDMLWriteMaterials::PropertyWrite(), G4GDMLWriteMaterials::PWrite(), G4GDMLWriteStructure::ReplicavolWrite(), G4GDMLWriteDefine::Rotation_vectorWrite(), G4GDMLWriteSolids::RZPointWrite(), G4GDMLWriteDefine::Scale_vectorWrite(), 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(), G4GDMLWriteSolids::XtruWrite(), and G4GDMLWriteSolids::ZplaneWrite().
|
protected |
Definition at line 66 of file G4GDMLWrite.cc.
References instance.
Referenced by AddModule(), and Modularize().
|
static |
Definition at line 315 of file G4GDMLWrite.cc.
References addPointerToName.
|
pure virtual |
|
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().
|
protected |
Definition at line 60 of file G4GDMLWrite.cc.
References instance.
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 133 of file G4GDMLWrite.cc.
References addPointerToName, DefineWrite(), doc, ExtensionWrite(), FatalException, FileExists(), G4cout, G4endl, G4Exception(), MaterialsWrite(), NewAttribute(), release(), SchemaLocation, SetupWrite(), SolidsWrite(), StructureWrite(), SurfacesWrite(), tempStr, TraverseVolumeTree(), and VolumeMap().
Referenced by G4GDMLWriteStructure::TraverseVolumeTree().
|
staticprotected |
Definition at line 122 of file G4GDMLWrite.hh.
Referenced by GenerateName(), SetAddPointerToName(), and Write().
|
protected |
Definition at line 123 of file G4GDMLWrite.hh.
Referenced by NewAttribute(), NewElement(), and Write().
|
protected |
Definition at line 124 of file G4GDMLWrite.hh.
Referenced by G03ColorWriter::ColorWrite(), and G03ColorWriter::ExtensionWrite().
|
protected |
Definition at line 121 of file G4GDMLWrite.hh.
Referenced by G4GDMLWriteStructure::TraverseVolumeTree(), and Write().
|
protected |
Definition at line 125 of file G4GDMLWrite.hh.
Referenced by NewAttribute(), NewElement(), and Write().