Geant4
10.02.p02
|
DicomPhantomZSliceHeader class. More...
#include <DicomPhantomZSliceHeader.hh>
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 G4double & | GetSliceLocation () 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 > | |
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< G4String > | fMaterialNames |
G4String | fFilename |
std::vector< std::vector < G4double > > | fValues |
std::vector< std::vector< G4int > > | fMateIDs |
G4double | fSliceLocation |
DicomPhantomZSliceHeader class.
Contains the meta data information corresponding to one or several Z slices (number of voxels, dimension)
History: 30.11.07 First version
Definition at line 50 of file DicomPhantomZSliceHeader.hh.
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().
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().
DicomPhantomZSliceHeader::~DicomPhantomZSliceHeader | ( | ) |
Definition at line 51 of file DicomPhantomZSliceHeader.cc.
|
inline |
Definition at line 130 of file DicomPhantomZSliceHeader.hh.
References fMateIDs.
Referenced by DicomHandler::StoreData().
|
inline |
Definition at line 133 of file DicomPhantomZSliceHeader.hh.
References fMateIDs.
|
inline |
Definition at line 134 of file DicomPhantomZSliceHeader.hh.
References fMateIDs.
|
inline |
Definition at line 115 of file DicomPhantomZSliceHeader.hh.
References fMaterialNames.
Referenced by DicomHandler::ReadFile().
|
inline |
Definition at line 119 of file DicomPhantomZSliceHeader.hh.
References fMateIDs, and fValues.
Referenced by DicomHandler::StoreData().
|
inline |
Definition at line 122 of file DicomPhantomZSliceHeader.hh.
References fValues.
Referenced by DicomHandler::StoreData().
|
inline |
Definition at line 125 of file DicomPhantomZSliceHeader.hh.
References fValues.
|
inline |
Definition at line 126 of file DicomPhantomZSliceHeader.hh.
References fValues.
|
inlineprivate |
Definition at line 203 of file DicomPhantomZSliceHeader.hh.
References G4Exception(), and JustWarning.
Referenced by ReadDataFromFile().
Definition at line 126 of file DicomPhantomZSliceHeader.cc.
References G4Material::GetMaterialTable().
Referenced by DicomPhantomZSliceHeader().
|
inline |
Definition at line 144 of file DicomPhantomZSliceHeader.hh.
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().
|
inline |
Definition at line 181 of file DicomPhantomZSliceHeader.hh.
References fMateIDs, fValues, and reverse.
Referenced by DicomHandler::StoreData().
|
inlineprivate |
Definition at line 193 of file DicomPhantomZSliceHeader.hh.
|
inline |
Definition at line 139 of file DicomPhantomZSliceHeader.hh.
References fMateIDs.
|
inline |
Definition at line 80 of file DicomPhantomZSliceHeader.hh.
References fMaterialNames.
Referenced by DicomPhantomZSliceHeader(), and operator+().
|
inline |
Definition at line 72 of file DicomPhantomZSliceHeader.hh.
References fMaxX.
Referenced by DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().
|
inline |
Definition at line 73 of file DicomPhantomZSliceHeader.hh.
References fMaxY.
Referenced by DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().
|
inline |
Definition at line 74 of file DicomPhantomZSliceHeader.hh.
References fMaxZ.
Referenced by DicomPhantomZSliceMerged::CheckSlices(), DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().
|
inline |
Definition at line 69 of file DicomPhantomZSliceHeader.hh.
References fMinX.
Referenced by DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().
|
inline |
Definition at line 70 of file DicomPhantomZSliceHeader.hh.
References fMinY.
Referenced by DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().
|
inline |
Definition at line 71 of file DicomPhantomZSliceHeader.hh.
References fMinZ.
Referenced by DicomPhantomZSliceMerged::CheckSlices(), DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().
|
inline |
Definition at line 67 of file DicomPhantomZSliceHeader.hh.
References fNoVoxelX, fNoVoxelY, and fNoVoxelZ.
Referenced by DicomDetectorConstruction::ReadPhantomDataFile().
|
inline |
Definition at line 64 of file DicomPhantomZSliceHeader.hh.
References fNoVoxelX.
Referenced by DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().
|
inline |
Definition at line 65 of file DicomPhantomZSliceHeader.hh.
References fNoVoxelY.
Referenced by DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().
|
inline |
Definition at line 66 of file DicomPhantomZSliceHeader.hh.
References fNoVoxelZ.
Referenced by DicomDetectorConstruction::ConstructPhantomContainer(), DicomPhantomZSliceHeader(), and operator+().
|
inline |
Definition at line 117 of file DicomPhantomZSliceHeader.hh.
References fSliceLocation.
Referenced by DicomPhantomZSliceMerged::AddZSlice(), and DicomPhantomZSliceMerged::CheckSlices().
|
inline |
Definition at line 138 of file DicomPhantomZSliceHeader.hh.
References fValues.
|
inline |
Definition at line 76 of file DicomPhantomZSliceHeader.hh.
References fMaxX, fMinX, and fNoVoxelX.
Referenced by DicomDetectorConstruction::ConstructPhantomContainer().
|
inline |
Definition at line 77 of file DicomPhantomZSliceHeader.hh.
References fMaxY, fMinY, and fNoVoxelY.
Referenced by DicomDetectorConstruction::ConstructPhantomContainer().
|
inline |
Definition at line 78 of file DicomPhantomZSliceHeader.hh.
References fMaxZ, fMinZ, and fNoVoxelZ.
Referenced by DicomDetectorConstruction::ConstructPhantomContainer().
Definition at line 187 of file DicomPhantomZSliceHeader.hh.
Referenced by ReadDataFromFile().
DicomPhantomZSliceHeader DicomPhantomZSliceHeader::operator+ | ( | const DicomPhantomZSliceHeader & | rhs | ) |
Definition at line 145 of file DicomPhantomZSliceHeader.cc.
References FatalErrorInArgument, fMaterialNames, fMaxX, fMaxY, fMaxZ, fMinX, fMinY, fMinZ, fNoVoxelX, fNoVoxelY, fNoVoxelZ, G4cerr, G4endl, G4Exception(), G4GeometryTolerance::GetInstance(), GetMaterialNames(), GetMaxX(), GetMaxY(), GetMaxZ(), GetMinX(), GetMinY(), GetMinZ(), GetNoVoxelX(), GetNoVoxelY(), GetNoVoxelZ(), G4GeometryTolerance::GetRadialTolerance(), G4INCL::Math::max(), G4INCL::Math::min(), SetMaxZ(), SetMinZ(), and SetNoVoxelZ().
void DicomPhantomZSliceHeader::operator+= | ( | const DicomPhantomZSliceHeader & | rhs | ) |
Definition at line 139 of file DicomPhantomZSliceHeader.cc.
|
inlineprivate |
Definition at line 215 of file DicomPhantomZSliceHeader.hh.
References G4endl.
Referenced by DumpToFile().
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().
|
inline |
Definition at line 113 of file DicomPhantomZSliceHeader.hh.
References fFilename.
|
inline |
Definition at line 93 of file DicomPhantomZSliceHeader.hh.
References fMaterialNames.
|
inline |
Definition at line 87 of file DicomPhantomZSliceHeader.hh.
References fMaxX.
Referenced by DicomHandler::ReadFile().
|
inline |
Definition at line 89 of file DicomPhantomZSliceHeader.hh.
References fMaxY.
Referenced by DicomHandler::ReadFile().
|
inline |
Definition at line 91 of file DicomPhantomZSliceHeader.hh.
References fMaxZ.
Referenced by DicomPhantomZSliceMerged::CheckSlices(), operator+(), and DicomHandler::ReadFile().
|
inline |
Definition at line 86 of file DicomPhantomZSliceHeader.hh.
References fMinX.
Referenced by DicomHandler::ReadFile().
|
inline |
Definition at line 88 of file DicomPhantomZSliceHeader.hh.
References fMinY.
Referenced by DicomHandler::ReadFile().
|
inline |
Definition at line 90 of file DicomPhantomZSliceHeader.hh.
References fMinZ.
Referenced by DicomPhantomZSliceMerged::CheckSlices(), operator+(), and DicomHandler::ReadFile().
|
inline |
Definition at line 82 of file DicomPhantomZSliceHeader.hh.
References fNoVoxelX.
Referenced by DicomHandler::ReadFile().
|
inline |
Definition at line 83 of file DicomPhantomZSliceHeader.hh.
References fNoVoxelY.
Referenced by DicomHandler::ReadFile().
|
inline |
Definition at line 84 of file DicomPhantomZSliceHeader.hh.
References fNoVoxelZ.
Referenced by operator+(), and DicomHandler::ReadFile().
|
inline |
Definition at line 114 of file DicomPhantomZSliceHeader.hh.
References fSliceLocation.
Referenced by DicomHandler::StoreData().
|
private |
Definition at line 171 of file DicomPhantomZSliceHeader.hh.
Referenced by DicomPhantomZSliceHeader(), DumpExcessMemory(), DumpToFile(), ReadDataFromFile(), and SetFilename().
|
private |
Definition at line 173 of file DicomPhantomZSliceHeader.hh.
Referenced by AddMateID(), AddRow(), DicomPhantomZSliceHeader(), DumpExcessMemory(), DumpToFile(), FlipData(), GetMateIDs(), and ReadDataFromFile().
|
private |
Definition at line 169 of file DicomPhantomZSliceHeader.hh.
Referenced by AddMaterial(), DicomPhantomZSliceHeader(), DumpToFile(), GetMaterialNames(), operator+(), ReadDataFromFile(), and SetMaterialNames().
|
private |
Definition at line 167 of file DicomPhantomZSliceHeader.hh.
Referenced by DicomPhantomZSliceHeader(), DumpToFile(), GetMaxX(), GetVoxelHalfX(), operator+(), ReadDataFromFile(), and SetMaxX().
|
private |
Definition at line 167 of file DicomPhantomZSliceHeader.hh.
Referenced by DicomPhantomZSliceHeader(), DumpToFile(), GetMaxY(), GetVoxelHalfY(), operator+(), ReadDataFromFile(), and SetMaxY().
|
private |
Definition at line 167 of file DicomPhantomZSliceHeader.hh.
Referenced by DicomPhantomZSliceHeader(), DumpToFile(), GetMaxZ(), GetVoxelHalfZ(), operator+(), ReadDataFromFile(), and SetMaxZ().
|
private |
Definition at line 166 of file DicomPhantomZSliceHeader.hh.
Referenced by DicomPhantomZSliceHeader(), DumpToFile(), GetMinX(), GetVoxelHalfX(), operator+(), ReadDataFromFile(), and SetMinX().
|
private |
Definition at line 166 of file DicomPhantomZSliceHeader.hh.
Referenced by DicomPhantomZSliceHeader(), DumpToFile(), GetMinY(), GetVoxelHalfY(), operator+(), ReadDataFromFile(), and SetMinY().
|
private |
Definition at line 166 of file DicomPhantomZSliceHeader.hh.
Referenced by DicomPhantomZSliceHeader(), DumpToFile(), GetMinZ(), GetVoxelHalfZ(), operator+(), ReadDataFromFile(), and SetMinZ().
|
private |
Definition at line 165 of file DicomPhantomZSliceHeader.hh.
Referenced by DicomPhantomZSliceHeader(), DumpToFile(), GetNoVoxels(), GetNoVoxelX(), GetVoxelHalfX(), operator+(), ReadDataFromFile(), and SetNoVoxelX().
|
private |
Definition at line 165 of file DicomPhantomZSliceHeader.hh.
Referenced by DicomPhantomZSliceHeader(), DumpToFile(), GetNoVoxels(), GetNoVoxelY(), GetVoxelHalfY(), operator+(), ReadDataFromFile(), and SetNoVoxelY().
|
private |
Definition at line 165 of file DicomPhantomZSliceHeader.hh.
Referenced by DicomPhantomZSliceHeader(), DumpToFile(), GetNoVoxels(), GetNoVoxelZ(), GetVoxelHalfZ(), operator+(), ReadDataFromFile(), and SetNoVoxelZ().
|
private |
Definition at line 174 of file DicomPhantomZSliceHeader.hh.
Referenced by DicomPhantomZSliceHeader(), GetSliceLocation(), and SetSliceLocation().
|
private |
Definition at line 172 of file DicomPhantomZSliceHeader.hh.
Referenced by AddRow(), AddValue(), DicomPhantomZSliceHeader(), DumpExcessMemory(), DumpToFile(), FlipData(), GetValues(), and ReadDataFromFile().