Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 *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 Clear ()
 
void AddModule (const G4VPhysicalVolume *const physvol)
 
void AddModule (const G4int depth)
 
void SetAddPointerToName (G4bool set)
 
void AddVolumeAuxiliary (G4GDMLAuxStructType myaux, const G4LogicalVolume *const lvol)
 

Detailed Description

Definition at line 55 of file G4GDMLParser.hh.

Constructor & Destructor Documentation

G4GDMLParser::G4GDMLParser ( )

Definition at line 44 of file G4GDMLParser.cc.

45  : rlist(0), ullist(0), urcode(false), uwcode(false), strip(true), rexp(false)
46 {
47  reader = new G4GDMLReadStructure;
48  writer = new G4GDMLWriteStructure;
49  messenger = new G4GDMLMessenger(this);
50 
51  xercesc::XMLPlatformUtils::Initialize();
52 }
G4GDMLParser::G4GDMLParser ( G4GDMLReadStructure extr)

Definition at line 54 of file G4GDMLParser.cc.

55  : rlist(0), ullist(0), urcode(true), uwcode(false), strip(true), rexp(false)
56 {
57  reader = extr;
58  writer = new G4GDMLWriteStructure;
59  messenger = new G4GDMLMessenger(this);
60 
61  xercesc::XMLPlatformUtils::Initialize();
62 }
G4GDMLParser::G4GDMLParser ( G4GDMLReadStructure extr,
G4GDMLWriteStructure extw 
)

Definition at line 64 of file G4GDMLParser.cc.

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

Definition at line 75 of file G4GDMLParser.cc.

76 {
77  xercesc::XMLPlatformUtils::Terminate();
78  if (!urcode) { delete reader; }
79  if (!uwcode) { delete writer; delete ullist; delete rlist; }
80 
81  delete messenger;
82 }

Member Function Documentation

void G4GDMLParser::AddAuxiliary ( G4GDMLAuxStructType  myaux)
inline
void G4GDMLParser::AddModule ( const G4VPhysicalVolume *const  physvol)
inline
void G4GDMLParser::AddModule ( const G4int  depth)
inline
void G4GDMLParser::AddVolumeAuxiliary ( G4GDMLAuxStructType  myaux,
const G4LogicalVolume *const  lvol 
)
inline
void G4GDMLParser::Clear ( )
inline

Here is the caller graph for this function:

const G4GDMLAuxListType* G4GDMLParser::GetAuxList ( ) const
inline
const G4GDMLAuxMapType* G4GDMLParser::GetAuxMap ( ) const
inline
G4double G4GDMLParser::GetConstant ( const G4String name) const
inline
G4GDMLMatrix G4GDMLParser::GetMatrix ( const G4String name) const
inline
G4ThreeVector G4GDMLParser::GetPosition ( const G4String name) const
inline
G4double G4GDMLParser::GetQuantity ( const G4String name) const
inline
G4ThreeVector G4GDMLParser::GetRotation ( const G4String name) const
inline
G4ThreeVector G4GDMLParser::GetScale ( const G4String name) const
inline
G4double G4GDMLParser::GetVariable ( const G4String name) const
inline
G4LogicalVolume* G4GDMLParser::GetVolume ( const G4String name) const
inline
G4GDMLAuxListType G4GDMLParser::GetVolumeAuxiliaryInformation ( G4LogicalVolume lvol) const
inline
G4VPhysicalVolume* G4GDMLParser::GetWorldVolume ( const G4String setupName = "Default") const
inline

Here is the caller graph for this function:

G4bool G4GDMLParser::IsValid ( const G4String name) const
inline
G4LogicalVolume* G4GDMLParser::ParseST ( const G4String name,
G4Material medium,
G4Material solid 
)
inline
void G4GDMLParser::Read ( const G4String filename,
G4bool  Validate = true 
)
inline

Here is the caller graph for this function:

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

Here is the caller graph for this function:

void G4GDMLParser::SetOverlapCheck ( G4bool  )
inline
void G4GDMLParser::SetRegionExport ( G4bool  )
inline

Here is the caller graph for this function:

void G4GDMLParser::SetSDExport ( G4bool  )
inline

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

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