Geant4  10.00.p02
G4GDMLReadDefine Class Reference

#include <G4GDMLReadDefine.hh>

+ Inheritance diagram for G4GDMLReadDefine:
+ Collaboration diagram for G4GDMLReadDefine:

Public Member Functions

G4bool IsValidID (const G4String &) const
 
G4double GetConstant (const G4String &)
 
G4double GetVariable (const G4String &)
 
G4double GetQuantity (const G4String &)
 
G4ThreeVector GetPosition (const G4String &)
 
G4ThreeVector GetRotation (const G4String &)
 
G4ThreeVector GetScale (const G4String &)
 
G4GDMLMatrix GetMatrix (const G4String &)
 
virtual void DefineRead (const xercesc::DOMElement *const)
 
- Public Member Functions inherited from G4GDMLRead
virtual void MaterialsRead (const xercesc::DOMElement *const)=0
 
virtual void SetupRead (const xercesc::DOMElement *const)=0
 
virtual void SolidsRead (const xercesc::DOMElement *const)=0
 
virtual void Paramvol_contentRead (const xercesc::DOMElement *const)=0
 
virtual void Volume_contentRead (const xercesc::DOMElement *const)=0
 
virtual void StructureRead (const xercesc::DOMElement *const)=0
 
virtual void ExtensionRead (const xercesc::DOMElement *const)
 
virtual G4LogicalVolumeGetVolume (const G4String &) const =0
 
virtual G4String GetSetup (const G4String &)=0
 
void Read (const G4String &, G4bool validation, G4bool isModule, G4bool strip=true)
 
void StripNames () const
 
void OverlapCheck (G4bool)
 

Protected Member Functions

 G4GDMLReadDefine ()
 
virtual ~G4GDMLReadDefine ()
 
G4RotationMatrix GetRotationMatrix (const G4ThreeVector &)
 
void VectorRead (const xercesc::DOMElement *const, G4ThreeVector &)
 
G4String RefRead (const xercesc::DOMElement *const)
 
void ConstantRead (const xercesc::DOMElement *const)
 
void MatrixRead (const xercesc::DOMElement *const)
 
void PositionRead (const xercesc::DOMElement *const)
 
void RotationRead (const xercesc::DOMElement *const)
 
void ScaleRead (const xercesc::DOMElement *const)
 
void VariableRead (const xercesc::DOMElement *const)
 
void QuantityRead (const xercesc::DOMElement *const)
 
void ExpressionRead (const xercesc::DOMElement *const)
 
- Protected Member Functions inherited from G4GDMLRead
 G4GDMLRead ()
 
virtual ~G4GDMLRead ()
 
G4String Transcode (const XMLCh *const)
 
G4String GenerateName (const G4String &name, G4bool strip=false)
 
G4String Strip (const G4String &) const
 
void StripName (G4String &) const
 
void GeneratePhysvolName (const G4String &, G4VPhysicalVolume *)
 
void LoopRead (const xercesc::DOMElement *const, void(G4GDMLRead::*)(const xercesc::DOMElement *const))
 

Protected Attributes

std::map< G4String, G4doublequantityMap
 
std::map< G4String, G4ThreeVectorpositionMap
 
std::map< G4String, G4ThreeVectorrotationMap
 
std::map< G4String, G4ThreeVectorscaleMap
 
std::map< G4String, G4GDMLMatrixmatrixMap
 
- Protected Attributes inherited from G4GDMLRead
G4GDMLEvaluator eval
 
G4bool validate
 
G4bool check
 

Detailed Description

Definition at line 69 of file G4GDMLReadDefine.hh.

Constructor & Destructor Documentation

G4GDMLReadDefine::G4GDMLReadDefine ( )
protected

Definition at line 123 of file G4GDMLReadDefine.cc.

G4GDMLReadDefine::~G4GDMLReadDefine ( )
protectedvirtual

Definition at line 127 of file G4GDMLReadDefine.cc.

Member Function Documentation

void G4GDMLReadDefine::ConstantRead ( const xercesc::DOMElement * const  constantElement)
protected

Definition at line 144 of file G4GDMLReadDefine.cc.

References G4GDMLEvaluator::DefineConstant(), G4GDMLRead::eval, G4GDMLEvaluator::Evaluate(), FatalException, G4Exception(), name, and G4GDMLRead::Transcode().

Referenced by DefineRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GDMLReadDefine::DefineRead ( const xercesc::DOMElement * const  defineElement)
virtual

Implements G4GDMLRead.

Definition at line 457 of file G4GDMLReadDefine.cc.

References ConstantRead(), ExpressionRead(), FatalException, G4cout, G4endl, G4Exception(), MatrixRead(), PositionRead(), QuantityRead(), RotationRead(), ScaleRead(), G4GDMLRead::Transcode(), and VariableRead().

Referenced by G4GDMLReadMaterials::MaterialsRead(), and G4GDMLReadSolids::SolidsRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GDMLReadDefine::ExpressionRead ( const xercesc::DOMElement * const  expElement)
protected

Definition at line 179 of file G4GDMLReadDefine.cc.

References G4GDMLEvaluator::DefineConstant(), G4GDMLRead::eval, G4GDMLEvaluator::Evaluate(), FatalException, G4Exception(), name, and G4GDMLRead::Transcode().

Referenced by DefineRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4GDMLReadDefine::GetConstant ( const G4String ref)

Definition at line 568 of file G4GDMLReadDefine.cc.

References G4GDMLRead::eval, and G4GDMLEvaluator::GetConstant().

+ Here is the call graph for this function:

G4GDMLMatrix G4GDMLReadDefine::GetMatrix ( const G4String ref)

Definition at line 622 of file G4GDMLReadDefine.cc.

References FatalException, G4Exception(), and matrixMap.

Referenced by G4GDMLReadMaterials::PropertyRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4ThreeVector G4GDMLReadDefine::GetPosition ( const G4String ref)

Definition at line 589 of file G4GDMLReadDefine.cc.

References FatalException, G4Exception(), and positionMap.

Referenced by G4GDMLReadSolids::BooleanRead(), G4GDMLReadParamvol::ParametersRead(), G4GDMLReadStructure::PhysvolRead(), G4GDMLReadSolids::QuadrangularRead(), G4GDMLReadStructure::ReplicaRead(), G4GDMLReadSolids::TetRead(), and G4GDMLReadSolids::TriangularRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4GDMLReadDefine::GetQuantity ( const G4String ref)

Definition at line 578 of file G4GDMLReadDefine.cc.

References FatalException, G4Exception(), and quantityMap.

Referenced by G4GDMLReadMaterials::MaterialRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4ThreeVector G4GDMLReadDefine::GetRotation ( const G4String ref)

Definition at line 600 of file G4GDMLReadDefine.cc.

References FatalException, G4Exception(), and rotationMap.

Referenced by G4GDMLReadSolids::BooleanRead(), G4GDMLReadParamvol::ParametersRead(), G4GDMLReadStructure::PhysvolRead(), and G4GDMLReadStructure::ReplicaRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4RotationMatrix G4GDMLReadDefine::GetRotationMatrix ( const G4ThreeVector angles)
protected

Definition at line 132 of file G4GDMLReadDefine.cc.

Referenced by G4GDMLReadSolids::BooleanRead(), G4GDMLReadStructure::PhysvolRead(), and G4GDMLReadSolids::ReflectedSolidRead().

+ Here is the caller graph for this function:

G4ThreeVector G4GDMLReadDefine::GetScale ( const G4String ref)

Definition at line 611 of file G4GDMLReadDefine.cc.

References FatalException, G4Exception(), and scaleMap.

Referenced by G4GDMLReadStructure::PhysvolRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4GDMLReadDefine::GetVariable ( const G4String ref)

Definition at line 573 of file G4GDMLReadDefine.cc.

References G4GDMLRead::eval, and G4GDMLEvaluator::GetVariable().

+ Here is the call graph for this function:

G4bool G4GDMLReadDefine::IsValidID ( const G4String ref) const

Definition at line 563 of file G4GDMLReadDefine.cc.

References G4GDMLRead::eval, and G4GDMLEvaluator::IsVariable().

+ Here is the call graph for this function:

void G4GDMLReadDefine::MatrixRead ( const xercesc::DOMElement * const  matrixElement)
protected

Definition at line 215 of file G4GDMLReadDefine.cc.

References G4GDMLEvaluator::DefineMatrix(), G4GDMLRead::eval, G4GDMLEvaluator::Evaluate(), G4GDMLEvaluator::EvaluateInteger(), FatalException, G4Exception(), G4GDMLRead::GenerateName(), matrixMap, name, G4GDMLMatrix::Set(), and G4GDMLRead::Transcode().

Referenced by DefineRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GDMLReadDefine::PositionRead ( const xercesc::DOMElement * const  positionElement)
protected

Definition at line 271 of file G4GDMLReadDefine.cc.

References G4GDMLRead::eval, G4GDMLEvaluator::Evaluate(), FatalException, G4Exception(), G4GDMLRead::GenerateName(), name, position, positionMap, and G4GDMLRead::Transcode().

Referenced by DefineRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GDMLReadDefine::QuantityRead ( const xercesc::DOMElement * const  element)
protected

Definition at line 419 of file G4GDMLReadDefine.cc.

References G4GDMLEvaluator::DefineConstant(), G4GDMLRead::eval, G4GDMLEvaluator::Evaluate(), FatalException, G4Exception(), name, quantityMap, and G4GDMLRead::Transcode().

Referenced by DefineRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4GDMLReadDefine::RefRead ( const xercesc::DOMElement * const  element)
protected

Definition at line 531 of file G4GDMLReadDefine.cc.

References FatalException, G4Exception(), and G4GDMLRead::Transcode().

Referenced by G4GDMLReadSolids::BooleanRead(), G4GDMLReadStructure::BorderSurfaceRead(), G4GDMLReadStructure::DivisionvolRead(), G4GDMLReadMaterials::MaterialRead(), G4GDMLReadParamvol::ParametersRead(), G4GDMLReadParamvol::ParamvolRead(), G4GDMLReadStructure::PhysvolRead(), G4GDMLReadStructure::ReplicaRead(), G4GDMLReadStructure::ReplicavolRead(), G4GDMLReadSetup::SetupRead(), G4GDMLReadStructure::SkinSurfaceRead(), G03ColorReader::VolumeRead(), and G4GDMLReadStructure::VolumeRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GDMLReadDefine::RotationRead ( const xercesc::DOMElement * const  rotationElement)
protected

Definition at line 310 of file G4GDMLReadDefine.cc.

References G4GDMLRead::eval, G4GDMLEvaluator::Evaluate(), FatalException, G4Exception(), G4GDMLRead::GenerateName(), name, rotationMap, and G4GDMLRead::Transcode().

Referenced by DefineRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GDMLReadDefine::ScaleRead ( const xercesc::DOMElement * const  scaleElement)
protected

Definition at line 348 of file G4GDMLReadDefine.cc.

References G4GDMLRead::eval, G4GDMLEvaluator::Evaluate(), FatalException, G4Exception(), G4GDMLRead::GenerateName(), name, scaleMap, and G4GDMLRead::Transcode().

Referenced by DefineRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GDMLReadDefine::VariableRead ( const xercesc::DOMElement * const  variableElement)
protected

Definition at line 385 of file G4GDMLReadDefine.cc.

References G4GDMLEvaluator::DefineVariable(), G4GDMLRead::eval, G4GDMLEvaluator::Evaluate(), FatalException, G4Exception(), name, and G4GDMLRead::Transcode().

Referenced by DefineRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GDMLReadDefine::VectorRead ( const xercesc::DOMElement * const  vectorElement,
G4ThreeVector vec 
)
protected

Definition at line 494 of file G4GDMLReadDefine.cc.

References G4GDMLRead::eval, G4GDMLEvaluator::Evaluate(), FatalException, G4Exception(), and G4GDMLRead::Transcode().

Referenced by G4GDMLReadSolids::BooleanRead(), G4GDMLReadParamvol::ParametersRead(), G4GDMLReadStructure::PhysvolRead(), and G4GDMLReadStructure::ReplicaRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::map<G4String,G4GDMLMatrix> G4GDMLReadDefine::matrixMap
protected

Definition at line 109 of file G4GDMLReadDefine.hh.

Referenced by GetMatrix(), and MatrixRead().

std::map<G4String,G4ThreeVector> G4GDMLReadDefine::positionMap
protected

Definition at line 106 of file G4GDMLReadDefine.hh.

Referenced by GetPosition(), and PositionRead().

std::map<G4String,G4double> G4GDMLReadDefine::quantityMap
protected

Definition at line 105 of file G4GDMLReadDefine.hh.

Referenced by GetQuantity(), and QuantityRead().

std::map<G4String,G4ThreeVector> G4GDMLReadDefine::rotationMap
protected

Definition at line 107 of file G4GDMLReadDefine.hh.

Referenced by GetRotation(), and RotationRead().

std::map<G4String,G4ThreeVector> G4GDMLReadDefine::scaleMap
protected

Definition at line 108 of file G4GDMLReadDefine.hh.

Referenced by GetScale(), and ScaleRead().


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