Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4GDMLParser Class Reference

#include <G4GDMLParser.hh>

Public Member Functions

 G4GDMLParser ()
 
 G4GDMLParser (G4GDMLReadStructure *)
 
 G4GDMLParser (G4GDMLReadStructure *, G4GDMLWriteStructure *)
 
 ~G4GDMLParser ()
 
void Read (const G4String &filename, G4bool Validate=false)
 
void ReadModule (const G4String &filename, G4bool Validate=false)
 
void Write (const G4String &filename, const G4VPhysicalVolume *pvol=0, G4bool storeReferences=true, const G4String &SchemaLocation=G4GDML_DEFAULT_WRITE_SCHEMALOCATION)
 
void Write (const G4String &filename, const G4LogicalVolume *lvol, G4bool storeReferences=true, const G4String &SchemaLocation=G4GDML_DEFAULT_WRITE_SCHEMALOCATION)
 
G4LogicalVolumeParseST (const G4String &name, G4Material *medium, G4Material *solid)
 
G4bool IsValid (const G4String &name) const
 
G4double GetConstant (const G4String &name) const
 
G4double GetVariable (const G4String &name) const
 
G4double GetQuantity (const G4String &name) const
 
G4ThreeVector GetPosition (const G4String &name) const
 
G4ThreeVector GetRotation (const G4String &name) const
 
G4ThreeVector GetScale (const G4String &name) const
 
G4GDMLMatrix GetMatrix (const G4String &name) const
 
G4LogicalVolumeGetVolume (const G4String &name) const
 
G4VPhysicalVolumeGetPhysVolume (const G4String &name) const
 
G4VPhysicalVolumeGetWorldVolume (const G4String &setupName="Default") const
 
G4GDMLAuxListType GetVolumeAuxiliaryInformation (G4LogicalVolume *lvol) const
 
const G4GDMLAuxMapTypeGetAuxMap () const
 
const G4GDMLAuxListTypeGetAuxList () const
 
void AddAuxiliary (G4GDMLAuxStructType myaux)
 
void StripNamePointers () const
 
void SetStripFlag (G4bool)
 
void SetOverlapCheck (G4bool)
 
void SetRegionExport (G4bool)
 
void SetEnergyCutsExport (G4bool)
 
void SetSDExport (G4bool)
 
void SetReverseSearch (G4bool)
 
void SetImportSchema (const G4String &path_and_filename)
 
G4int GetMaxExportLevel () const
 
void SetMaxExportLevel (G4int)
 
void Clear ()
 
void AddModule (const G4VPhysicalVolume *const physvol)
 
void AddModule (const G4int depth)
 
void SetAddPointerToName (G4bool set)
 
void AddVolumeAuxiliary (G4GDMLAuxStructType myaux, const G4LogicalVolume *const lvol)
 
void SetOutputFileOverwrite (G4bool flag)
 

Detailed Description

Definition at line 57 of file G4GDMLParser.hh.

Constructor & Destructor Documentation

◆ G4GDMLParser() [1/3]

G4GDMLParser::G4GDMLParser ( )

Definition at line 42 of file G4GDMLParser.cc.

43 : strip(true)
44{
45 reader = new G4GDMLReadStructure;
46 writer = new G4GDMLWriteStructure;
47 messenger = new G4GDMLMessenger(this);
48
49 xercesc::XMLPlatformUtils::Initialize();
50}

◆ G4GDMLParser() [2/3]

G4GDMLParser::G4GDMLParser ( G4GDMLReadStructure * extr)

Definition at line 53 of file G4GDMLParser.cc.

54 : urcode(true), strip(true)
55{
56 reader = extr;
57 writer = new G4GDMLWriteStructure;
58 messenger = new G4GDMLMessenger(this);
59
60 xercesc::XMLPlatformUtils::Initialize();
61}

◆ G4GDMLParser() [3/3]

G4GDMLParser::G4GDMLParser ( G4GDMLReadStructure * extr,
G4GDMLWriteStructure * extw )

Definition at line 64 of file G4GDMLParser.cc.

66 : urcode(true), uwcode(true), strip(true)
67{
68 reader = extr;
69 writer = extw;
70 messenger = new G4GDMLMessenger(this);
71
72 xercesc::XMLPlatformUtils::Initialize();
73}

◆ ~G4GDMLParser()

G4GDMLParser::~G4GDMLParser ( )

Definition at line 76 of file G4GDMLParser.cc.

77{
78 xercesc::XMLPlatformUtils::Terminate();
79 if(!urcode)
80 {
81 delete reader;
82 }
83 if(!uwcode)
84 {
85 delete writer;
86 }
87 delete ullist;
88 delete rlist;
89
90 delete messenger;
91}

Member Function Documentation

◆ AddAuxiliary()

void G4GDMLParser::AddAuxiliary ( G4GDMLAuxStructType myaux)
inline

◆ AddModule() [1/2]

void G4GDMLParser::AddModule ( const G4int depth)
inline

◆ AddModule() [2/2]

void G4GDMLParser::AddModule ( const G4VPhysicalVolume *const physvol)
inline

◆ AddVolumeAuxiliary()

void G4GDMLParser::AddVolumeAuxiliary ( G4GDMLAuxStructType myaux,
const G4LogicalVolume *const lvol )
inline

◆ Clear()

void G4GDMLParser::Clear ( )
inline

◆ GetAuxList()

const G4GDMLAuxListType * G4GDMLParser::GetAuxList ( ) const
inline

◆ GetAuxMap()

const G4GDMLAuxMapType * G4GDMLParser::GetAuxMap ( ) const
inline

◆ GetConstant()

G4double G4GDMLParser::GetConstant ( const G4String & name) const
inline

◆ GetMatrix()

G4GDMLMatrix G4GDMLParser::GetMatrix ( const G4String & name) const
inline

◆ GetMaxExportLevel()

G4int G4GDMLParser::GetMaxExportLevel ( ) const
inline

◆ GetPhysVolume()

G4VPhysicalVolume * G4GDMLParser::GetPhysVolume ( const G4String & name) const
inline

◆ GetPosition()

G4ThreeVector G4GDMLParser::GetPosition ( const G4String & name) const
inline

◆ GetQuantity()

G4double G4GDMLParser::GetQuantity ( const G4String & name) const
inline

◆ GetRotation()

G4ThreeVector G4GDMLParser::GetRotation ( const G4String & name) const
inline

◆ GetScale()

G4ThreeVector G4GDMLParser::GetScale ( const G4String & name) const
inline

◆ GetVariable()

G4double G4GDMLParser::GetVariable ( const G4String & name) const
inline

◆ GetVolume()

G4LogicalVolume * G4GDMLParser::GetVolume ( const G4String & name) const
inline

◆ GetVolumeAuxiliaryInformation()

G4GDMLAuxListType G4GDMLParser::GetVolumeAuxiliaryInformation ( G4LogicalVolume * lvol) const
inline

◆ GetWorldVolume()

G4VPhysicalVolume * G4GDMLParser::GetWorldVolume ( const G4String & setupName = "Default") const
inline

◆ IsValid()

G4bool G4GDMLParser::IsValid ( const G4String & name) const
inline

◆ ParseST()

G4LogicalVolume * G4GDMLParser::ParseST ( const G4String & name,
G4Material * medium,
G4Material * solid )
inline

◆ Read()

void G4GDMLParser::Read ( const G4String & filename,
G4bool Validate = false )
inline

◆ ReadModule()

void G4GDMLParser::ReadModule ( const G4String & filename,
G4bool Validate = false )
inline

◆ SetAddPointerToName()

void G4GDMLParser::SetAddPointerToName ( G4bool set)
inline

◆ SetEnergyCutsExport()

void G4GDMLParser::SetEnergyCutsExport ( G4bool )
inline

◆ SetImportSchema()

void G4GDMLParser::SetImportSchema ( const G4String & path_and_filename)
inline

◆ SetMaxExportLevel()

void G4GDMLParser::SetMaxExportLevel ( G4int )
inline

◆ SetOutputFileOverwrite()

void G4GDMLParser::SetOutputFileOverwrite ( G4bool flag)
inline

◆ SetOverlapCheck()

void G4GDMLParser::SetOverlapCheck ( G4bool )
inline

◆ SetRegionExport()

void G4GDMLParser::SetRegionExport ( G4bool )
inline

◆ SetReverseSearch()

void G4GDMLParser::SetReverseSearch ( G4bool )
inline

◆ SetSDExport()

void G4GDMLParser::SetSDExport ( G4bool )
inline

◆ SetStripFlag()

void G4GDMLParser::SetStripFlag ( G4bool )
inline

◆ StripNamePointers()

void G4GDMLParser::StripNamePointers ( ) const
inline

◆ Write() [1/2]

void G4GDMLParser::Write ( const G4String & filename,
const G4LogicalVolume * lvol,
G4bool storeReferences = true,
const G4String & SchemaLocation = G4GDML_DEFAULT_WRITE_SCHEMALOCATION )
inline

◆ Write() [2/2]

void G4GDMLParser::Write ( const G4String & filename,
const G4VPhysicalVolume * pvol = 0,
G4bool storeReferences = true,
const G4String & SchemaLocation = G4GDML_DEFAULT_WRITE_SCHEMALOCATION )
inline

The documentation for this class was generated from the following files: