Geant4 9.6.0
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=true)
 
void ReadModule (const G4String &filename, G4bool Validate=true)
 
void Write (const G4String &filename, const G4VPhysicalVolume *pvol=0, G4bool storeReferences=true, const G4String &SchemaLocation=G4GDML_DEFAULT_SCHEMALOCATION)
 
void Write (const G4String &filename, const G4LogicalVolume *lvol, G4bool storeReferences=true, const G4String &SchemaLocation=G4GDML_DEFAULT_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
 
G4VPhysicalVolumeGetWorldVolume (const G4String &setupName="Default") const
 
G4GDMLAuxListType GetVolumeAuxiliaryInformation (G4LogicalVolume *logvol) const
 
const G4GDMLAuxMapTypeGetAuxMap () const
 
void StripNamePointers () const
 
void SetStripFlag (G4bool)
 
void SetOverlapCheck (G4bool)
 
void Clear ()
 
void AddModule (const G4VPhysicalVolume *const physvol)
 
void AddModule (const G4int depth)
 
void SetAddPointerToName (G4bool set)
 

Detailed Description

Definition at line 54 of file G4GDMLParser.hh.

Constructor & Destructor Documentation

◆ G4GDMLParser() [1/3]

G4GDMLParser::G4GDMLParser ( )

Definition at line 36 of file G4GDMLParser.cc.

37 : urcode(false), uwcode(false), strip(true)
38{
39 reader = new G4GDMLReadStructure;
40 writer = new G4GDMLWriteStructure;
41 messenger = new G4GDMLMessenger(this);
42
43 xercesc::XMLPlatformUtils::Initialize();
44}

◆ G4GDMLParser() [2/3]

G4GDMLParser::G4GDMLParser ( G4GDMLReadStructure extr)

Definition at line 46 of file G4GDMLParser.cc.

47 : urcode(true), uwcode(false)
48{
49 reader = extr;
50 writer = new G4GDMLWriteStructure;
51 messenger = new G4GDMLMessenger(this);
52
53 xercesc::XMLPlatformUtils::Initialize();
54}

◆ G4GDMLParser() [3/3]

G4GDMLParser::G4GDMLParser ( G4GDMLReadStructure extr,
G4GDMLWriteStructure extw 
)

Definition at line 56 of file G4GDMLParser.cc.

58 : urcode(true), uwcode(true)
59{
60 reader = extr;
61 writer = extw;
62 messenger = new G4GDMLMessenger(this);
63
64 xercesc::XMLPlatformUtils::Initialize();
65}

◆ ~G4GDMLParser()

G4GDMLParser::~G4GDMLParser ( )

Definition at line 67 of file G4GDMLParser.cc.

68{
69 xercesc::XMLPlatformUtils::Terminate();
70 if (!urcode) { delete reader; }
71 if (!uwcode) { delete writer; }
72 delete messenger;
73}

Member Function Documentation

◆ AddModule() [1/2]

void G4GDMLParser::AddModule ( const G4int  depth)
inline

◆ AddModule() [2/2]

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

◆ Clear()

void G4GDMLParser::Clear ( )
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

◆ 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 logvol) 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 = true 
)
inline

◆ ReadModule()

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

◆ SetAddPointerToName()

void G4GDMLParser::SetAddPointerToName ( G4bool  set)
inline

◆ SetOverlapCheck()

void G4GDMLParser::SetOverlapCheck ( 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_SCHEMALOCATION 
)
inline

◆ Write() [2/2]

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

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