Geant4  10.02.p02
DicomPhantomZSliceHeader Class Reference

DicomPhantomZSliceHeader class. More...

#include <DicomPhantomZSliceHeader.hh>

+ Collaboration diagram for DicomPhantomZSliceHeader:

Public Member Functions

 DicomPhantomZSliceHeader (const G4String &)
 
 DicomPhantomZSliceHeader (const DicomPhantomZSliceHeader &rhs)
 
 DicomPhantomZSliceHeader (std::ifstream &fin)
 
 ~DicomPhantomZSliceHeader ()
 
G4int GetNoVoxelX () const
 
G4int GetNoVoxelY () const
 
G4int GetNoVoxelZ () const
 
G4int GetNoVoxels () const
 
G4double GetMinX () const
 
G4double GetMinY () const
 
G4double GetMinZ () const
 
G4double GetMaxX () const
 
G4double GetMaxY () const
 
G4double GetMaxZ () const
 
G4double GetVoxelHalfX () const
 
G4double GetVoxelHalfY () const
 
G4double GetVoxelHalfZ () const
 
const std::vector< G4String > & GetMaterialNames () const
 
void SetNoVoxelX (const G4int &val)
 
void SetNoVoxelY (const G4int &val)
 
void SetNoVoxelZ (const G4int &val)
 
void SetMinX (const G4double &val)
 
void SetMaxX (const G4double &val)
 
void SetMinY (const G4double &val)
 
void SetMaxY (const G4double &val)
 
void SetMinZ (const G4double &val)
 
void SetMaxZ (const G4double &val)
 
void SetMaterialNames (std::vector< G4String > &mn)
 
void operator+= (const DicomPhantomZSliceHeader &rhs)
 
DicomPhantomZSliceHeader operator+ (const DicomPhantomZSliceHeader &rhs)
 
void SetFilename (const G4String &val)
 
void SetSliceLocation (const G4double &val)
 
void AddMaterial (const G4String &val)
 
const G4doubleGetSliceLocation () const
 
void AddRow ()
 
void AddValue (G4double val)
 
void AddValue (const std::vector< G4double > &val)
 
void AddValue (const std::vector< std::vector< G4double > > &val)
 
void AddMateID (G4int val)
 
void AddMateID (const std::vector< G4int > &val)
 
void AddMateID (const std::vector< std::vector< G4int > > &val)
 
const std::vector< std::vector
< G4double > > & 
GetValues () const
 
const std::vector< std::vector
< G4int > > & 
GetMateIDs () const
 
void DumpToFile ()
 
void ReadDataFromFile ()
 
void DumpExcessMemory ()
 
void FlipData ()
 

Private Member Functions

G4bool IsInteger (const G4String &)
 
template<typename T >
void Print (std::ostream &, const std::vector< T > &, const G4String &, G4int breakLine=-1)
 
template<typename T >
G4s2n (const G4String &)
 
template<typename T >
bool CheckConsistency (const T &, const T &, G4String)
 
G4bool CheckMaterialExists (const G4String &mateName)
 

Private Attributes

G4int fNoVoxelX
 
G4int fNoVoxelY
 
G4int fNoVoxelZ
 
G4double fMinX
 
G4double fMinY
 
G4double fMinZ
 
G4double fMaxX
 
G4double fMaxY
 
G4double fMaxZ
 
std::vector< G4StringfMaterialNames
 
G4String fFilename
 
std::vector< std::vector
< G4double > > 
fValues
 
std::vector< std::vector< G4int > > fMateIDs
 
G4double fSliceLocation
 

Detailed Description

DicomPhantomZSliceHeader class.

Contains the meta data information corresponding to one or several Z slices (number of voxels, dimension)

History: 30.11.07 First version

Author
P. Arce

Definition at line 50 of file DicomPhantomZSliceHeader.hh.

Constructor & Destructor Documentation

DicomPhantomZSliceHeader::DicomPhantomZSliceHeader ( const G4String fname)

Definition at line 41 of file DicomPhantomZSliceHeader.cc.

DicomPhantomZSliceHeader::DicomPhantomZSliceHeader ( const DicomPhantomZSliceHeader rhs)

Definition at line 57 of file DicomPhantomZSliceHeader.cc.

References fFilename, fMateIDs, fMaterialNames, fMaxX, fMaxY, fMaxZ, fMinX, fMinY, fMinZ, fNoVoxelX, fNoVoxelY, fNoVoxelZ, fSliceLocation, fValues, GetMaterialNames(), GetMaxX(), GetMaxY(), GetMaxZ(), GetMinX(), GetMinY(), GetMinZ(), GetNoVoxelX(), GetNoVoxelY(), and GetNoVoxelZ().

+ Here is the call graph for this function:

DicomPhantomZSliceHeader::DicomPhantomZSliceHeader ( std::ifstream &  fin)

Definition at line 77 of file DicomPhantomZSliceHeader.cc.

References CheckMaterialExists(), FatalErrorInArgument, fMaterialNames, fMaxX, fMaxY, fMaxZ, fMinX, fMinY, fMinZ, fNoVoxelX, fNoVoxelY, fNoVoxelZ, fSliceLocation, G4cout, G4endl, and G4Exception().

+ Here is the call graph for this function:

DicomPhantomZSliceHeader::~DicomPhantomZSliceHeader ( )

Definition at line 51 of file DicomPhantomZSliceHeader.cc.

Member Function Documentation

void DicomPhantomZSliceHeader::AddMateID ( G4int  val)
inline

Definition at line 130 of file DicomPhantomZSliceHeader.hh.

References fMateIDs.

Referenced by DicomHandler::StoreData().

+ Here is the caller graph for this function:

void DicomPhantomZSliceHeader::AddMateID ( const std::vector< G4int > &  val)
inline

Definition at line 133 of file DicomPhantomZSliceHeader.hh.

References fMateIDs.

void DicomPhantomZSliceHeader::AddMateID ( const std::vector< std::vector< G4int > > &  val)
inline

Definition at line 134 of file DicomPhantomZSliceHeader.hh.

References fMateIDs.

void DicomPhantomZSliceHeader::AddMaterial ( const G4String val)
inline

Definition at line 115 of file DicomPhantomZSliceHeader.hh.

References fMaterialNames.

Referenced by DicomHandler::ReadFile().

+ Here is the caller graph for this function:

void DicomPhantomZSliceHeader::AddRow ( )
inline

Definition at line 119 of file DicomPhantomZSliceHeader.hh.

References fMateIDs, and fValues.

Referenced by DicomHandler::StoreData().

+ Here is the caller graph for this function:

void DicomPhantomZSliceHeader::AddValue ( G4double  val)
inline

Definition at line 122 of file DicomPhantomZSliceHeader.hh.

References fValues.

Referenced by DicomHandler::StoreData().

+ Here is the caller graph for this function:

void DicomPhantomZSliceHeader::AddValue ( const std::vector< G4double > &  val)
inline

Definition at line 125 of file DicomPhantomZSliceHeader.hh.

References fValues.

void DicomPhantomZSliceHeader::AddValue ( const std::vector< std::vector< G4double > > &  val)
inline

Definition at line 126 of file DicomPhantomZSliceHeader.hh.

References fValues.

template<typename T >
bool DicomPhantomZSliceHeader::CheckConsistency ( const T &  val1,
const T &  val2,
G4String  category 
)
inlineprivate

Definition at line 203 of file DicomPhantomZSliceHeader.hh.

References G4Exception(), and JustWarning.

Referenced by ReadDataFromFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool DicomPhantomZSliceHeader::CheckMaterialExists ( const G4String mateName)
private

Definition at line 126 of file DicomPhantomZSliceHeader.cc.

References G4Material::GetMaterialTable().

Referenced by DicomPhantomZSliceHeader().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DicomPhantomZSliceHeader::DumpExcessMemory ( )
inline

Definition at line 144 of file DicomPhantomZSliceHeader.hh.

References fFilename, fMateIDs, and fValues.

void DicomPhantomZSliceHeader::DumpToFile ( )

Definition at line 220 of file DicomPhantomZSliceHeader.cc.

References FatalException, fFilename, fMateIDs, fMaterialNames, fMaxX, fMaxY, fMaxZ, fMinX, fMinY, fMinZ, fNoVoxelX, fNoVoxelY, fNoVoxelZ, fValues, G4cout, G4endl, G4Exception(), Print(), and ReadDataFromFile().

+ Here is the call graph for this function:

void DicomPhantomZSliceHeader::FlipData ( )
inline

Definition at line 181 of file DicomPhantomZSliceHeader.hh.

References fMateIDs, fValues, and reverse.

Referenced by DicomHandler::StoreData().

+ Here is the caller graph for this function:

template<typename T >
T DicomPhantomZSliceHeader::G4s2n ( const G4String str)
inlineprivate

Definition at line 193 of file DicomPhantomZSliceHeader.hh.

const std::vector<std::vector<G4int> >& DicomPhantomZSliceHeader::GetMateIDs ( ) const
inline

Definition at line 139 of file DicomPhantomZSliceHeader.hh.

References fMateIDs.

const std::vector<G4String>& DicomPhantomZSliceHeader::GetMaterialNames ( ) const
inline

Definition at line 80 of file DicomPhantomZSliceHeader.hh.

References fMaterialNames.

Referenced by DicomPhantomZSliceHeader(), and operator+().

+ Here is the caller graph for this function:

G4double DicomPhantomZSliceHeader::GetMaxX ( ) const
inline

Definition at line 72 of file DicomPhantomZSliceHeader.hh.

References fMaxX.

Referenced by DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().

+ Here is the caller graph for this function:

G4double DicomPhantomZSliceHeader::GetMaxY ( ) const
inline

Definition at line 73 of file DicomPhantomZSliceHeader.hh.

References fMaxY.

Referenced by DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().

+ Here is the caller graph for this function:

G4double DicomPhantomZSliceHeader::GetMaxZ ( ) const
inline

Definition at line 74 of file DicomPhantomZSliceHeader.hh.

References fMaxZ.

Referenced by DicomPhantomZSliceMerged::CheckSlices(), DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().

+ Here is the caller graph for this function:

G4double DicomPhantomZSliceHeader::GetMinX ( ) const
inline

Definition at line 69 of file DicomPhantomZSliceHeader.hh.

References fMinX.

Referenced by DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().

+ Here is the caller graph for this function:

G4double DicomPhantomZSliceHeader::GetMinY ( ) const
inline

Definition at line 70 of file DicomPhantomZSliceHeader.hh.

References fMinY.

Referenced by DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().

+ Here is the caller graph for this function:

G4double DicomPhantomZSliceHeader::GetMinZ ( ) const
inline

Definition at line 71 of file DicomPhantomZSliceHeader.hh.

References fMinZ.

Referenced by DicomPhantomZSliceMerged::CheckSlices(), DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().

+ Here is the caller graph for this function:

G4int DicomPhantomZSliceHeader::GetNoVoxels ( ) const
inline

Definition at line 67 of file DicomPhantomZSliceHeader.hh.

References fNoVoxelX, fNoVoxelY, and fNoVoxelZ.

Referenced by DicomDetectorConstruction::ReadPhantomDataFile().

+ Here is the caller graph for this function:

G4int DicomPhantomZSliceHeader::GetNoVoxelX ( ) const
inline

Definition at line 64 of file DicomPhantomZSliceHeader.hh.

References fNoVoxelX.

Referenced by DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().

+ Here is the caller graph for this function:

G4int DicomPhantomZSliceHeader::GetNoVoxelY ( ) const
inline

Definition at line 65 of file DicomPhantomZSliceHeader.hh.

References fNoVoxelY.

Referenced by DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().

+ Here is the caller graph for this function:

G4int DicomPhantomZSliceHeader::GetNoVoxelZ ( ) const
inline

Definition at line 66 of file DicomPhantomZSliceHeader.hh.

References fNoVoxelZ.

Referenced by DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().

+ Here is the caller graph for this function:

const G4double& DicomPhantomZSliceHeader::GetSliceLocation ( ) const
inline

Definition at line 117 of file DicomPhantomZSliceHeader.hh.

References fSliceLocation.

Referenced by DicomPhantomZSliceMerged::AddZSlice(), and DicomPhantomZSliceMerged::CheckSlices().

+ Here is the caller graph for this function:

const std::vector<std::vector<G4double> >& DicomPhantomZSliceHeader::GetValues ( ) const
inline

Definition at line 138 of file DicomPhantomZSliceHeader.hh.

References fValues.

G4double DicomPhantomZSliceHeader::GetVoxelHalfX ( ) const
inline

Definition at line 76 of file DicomPhantomZSliceHeader.hh.

References fMaxX, fMinX, and fNoVoxelX.

Referenced by DicomDetectorConstruction::ConstructPhantomContainer().

+ Here is the caller graph for this function:

G4double DicomPhantomZSliceHeader::GetVoxelHalfY ( ) const
inline

Definition at line 77 of file DicomPhantomZSliceHeader.hh.

References fMaxY, fMinY, and fNoVoxelY.

Referenced by DicomDetectorConstruction::ConstructPhantomContainer().

+ Here is the caller graph for this function:

G4double DicomPhantomZSliceHeader::GetVoxelHalfZ ( ) const
inline

Definition at line 78 of file DicomPhantomZSliceHeader.hh.

References fMaxZ, fMinZ, and fNoVoxelZ.

Referenced by DicomDetectorConstruction::ConstructPhantomContainer().

+ Here is the caller graph for this function:

G4bool DicomPhantomZSliceHeader::IsInteger ( const G4String str)
inlineprivate

Definition at line 187 of file DicomPhantomZSliceHeader.hh.

Referenced by ReadDataFromFile().

+ Here is the caller graph for this function:

DicomPhantomZSliceHeader DicomPhantomZSliceHeader::operator+ ( const DicomPhantomZSliceHeader rhs)
void DicomPhantomZSliceHeader::operator+= ( const DicomPhantomZSliceHeader rhs)

Definition at line 139 of file DicomPhantomZSliceHeader.cc.

template<typename T >
void DicomPhantomZSliceHeader::Print ( std::ostream &  out,
const std::vector< T > &  val,
const G4String delim,
G4int  breakLine = -1 
)
inlineprivate

Definition at line 215 of file DicomPhantomZSliceHeader.hh.

References G4endl.

Referenced by DumpToFile().

+ Here is the caller graph for this function:

void DicomPhantomZSliceHeader::ReadDataFromFile ( )

Definition at line 259 of file DicomPhantomZSliceHeader.cc.

References CheckConsistency(), FatalException, fFilename, fMateIDs, fMaterialNames, fMaxX, fMaxY, fMaxZ, fMinX, fMinY, fMinZ, fNoVoxelX, fNoVoxelY, fNoVoxelZ, fValues, G4Exception(), and IsInteger().

Referenced by DumpToFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DicomPhantomZSliceHeader::SetFilename ( const G4String val)
inline

Definition at line 113 of file DicomPhantomZSliceHeader.hh.

References fFilename.

void DicomPhantomZSliceHeader::SetMaterialNames ( std::vector< G4String > &  mn)
inline

Definition at line 93 of file DicomPhantomZSliceHeader.hh.

References fMaterialNames.

void DicomPhantomZSliceHeader::SetMaxX ( const G4double val)
inline

Definition at line 87 of file DicomPhantomZSliceHeader.hh.

References fMaxX.

Referenced by DicomHandler::ReadFile().

+ Here is the caller graph for this function:

void DicomPhantomZSliceHeader::SetMaxY ( const G4double val)
inline

Definition at line 89 of file DicomPhantomZSliceHeader.hh.

References fMaxY.

Referenced by DicomHandler::ReadFile().

+ Here is the caller graph for this function:

void DicomPhantomZSliceHeader::SetMaxZ ( const G4double val)
inline

Definition at line 91 of file DicomPhantomZSliceHeader.hh.

References fMaxZ.

Referenced by DicomPhantomZSliceMerged::CheckSlices(), operator+(), and DicomHandler::ReadFile().

+ Here is the caller graph for this function:

void DicomPhantomZSliceHeader::SetMinX ( const G4double val)
inline

Definition at line 86 of file DicomPhantomZSliceHeader.hh.

References fMinX.

Referenced by DicomHandler::ReadFile().

+ Here is the caller graph for this function:

void DicomPhantomZSliceHeader::SetMinY ( const G4double val)
inline

Definition at line 88 of file DicomPhantomZSliceHeader.hh.

References fMinY.

Referenced by DicomHandler::ReadFile().

+ Here is the caller graph for this function:

void DicomPhantomZSliceHeader::SetMinZ ( const G4double val)
inline

Definition at line 90 of file DicomPhantomZSliceHeader.hh.

References fMinZ.

Referenced by DicomPhantomZSliceMerged::CheckSlices(), operator+(), and DicomHandler::ReadFile().

+ Here is the caller graph for this function:

void DicomPhantomZSliceHeader::SetNoVoxelX ( const G4int val)
inline

Definition at line 82 of file DicomPhantomZSliceHeader.hh.

References fNoVoxelX.

Referenced by DicomHandler::ReadFile().

+ Here is the caller graph for this function:

void DicomPhantomZSliceHeader::SetNoVoxelY ( const G4int val)
inline

Definition at line 83 of file DicomPhantomZSliceHeader.hh.

References fNoVoxelY.

Referenced by DicomHandler::ReadFile().

+ Here is the caller graph for this function:

void DicomPhantomZSliceHeader::SetNoVoxelZ ( const G4int val)
inline

Definition at line 84 of file DicomPhantomZSliceHeader.hh.

References fNoVoxelZ.

Referenced by operator+(), and DicomHandler::ReadFile().

+ Here is the caller graph for this function:

void DicomPhantomZSliceHeader::SetSliceLocation ( const G4double val)
inline

Definition at line 114 of file DicomPhantomZSliceHeader.hh.

References fSliceLocation.

Referenced by DicomHandler::StoreData().

+ Here is the caller graph for this function:

Member Data Documentation

G4String DicomPhantomZSliceHeader::fFilename
private
std::vector<std::vector<G4int> > DicomPhantomZSliceHeader::fMateIDs
private
std::vector<G4String> DicomPhantomZSliceHeader::fMaterialNames
private
G4double DicomPhantomZSliceHeader::fMaxX
private
G4double DicomPhantomZSliceHeader::fMaxY
private
G4double DicomPhantomZSliceHeader::fMaxZ
private
G4double DicomPhantomZSliceHeader::fMinX
private
G4double DicomPhantomZSliceHeader::fMinY
private
G4double DicomPhantomZSliceHeader::fMinZ
private
G4int DicomPhantomZSliceHeader::fNoVoxelX
private
G4int DicomPhantomZSliceHeader::fNoVoxelY
private
G4int DicomPhantomZSliceHeader::fNoVoxelZ
private
G4double DicomPhantomZSliceHeader::fSliceLocation
private
std::vector<std::vector<G4double> > DicomPhantomZSliceHeader::fValues
private

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