Geant4
10.03
|
#include <DicomHandler.hh>
Public Member Functions | |
DicomHandler () | |
~DicomHandler () | |
G4int | ReadFile (FILE *, char *) |
G4int | ReadData (FILE *, char *) |
void | CheckFileFormat () |
Static Public Member Functions | |
static DicomHandler * | Instance () |
Private Member Functions | |
template<class Type > | |
void | GetValue (char *, Type &) |
void | ReadCalibration () |
void | GetInformation (G4int &, char *) |
G4float | Pixel2density (G4int pixel) |
void | ReadMaterialIndices (std::ifstream &finData) |
unsigned int | GetMaterialIndex (G4float density) |
void | StoreData (std::ofstream &foutG4DCM) |
void | StoreData (DicomPhantomZSliceHeader *dcmPZSH) |
G4int | read_defined_nested (FILE *, G4int) |
void | read_undefined_nested (FILE *) |
void | read_undefined_item (FILE *) |
Private Attributes | |
const int | DATABUFFSIZE |
const int | LINEBUFFSIZE |
const int | FILENAMESIZE |
short | fCompression |
G4int | fNFiles |
short | fRows |
short | fColumns |
short | fBitAllocated |
G4int | fMaxPixelValue |
G4int | fMinPixelValue |
G4double | fPixelSpacingX |
G4double | fPixelSpacingY |
G4double | fSliceThickness |
G4double | fSliceLocation |
G4int | fRescaleIntercept |
G4int | fRescaleSlope |
G4bool | fLittleEndian |
G4bool | fImplicitEndian |
short | fPixelRepresentation |
G4int ** | fTab |
std::map< G4float, G4String > | fMaterialIndices |
G4int | fNbrequali |
G4double * | fValueDensity |
G4double * | fValueCT |
bool | fReadCalibration |
DicomPhantomZSliceMerged * | fMergedSlices |
G4String | fDriverFile |
G4String | fCt2DensityFile |
Static Private Attributes | |
static DicomHandler * | fInstance = 0 |
DicomHandler.cc : More... | |
Definition at line 71 of file DicomHandler.hh.
DicomHandler::DicomHandler | ( | ) |
Definition at line 79 of file DicomHandler.cc.
References fMergedSlices.
DicomHandler::~DicomHandler | ( | ) |
Definition at line 96 of file DicomHandler.cc.
void DicomHandler::CheckFileFormat | ( | ) |
Definition at line 863 of file DicomHandler.cc.
References DicomPhantomZSliceMerged::CheckSlices(), G4String::data(), FatalException, fCompression, fDriverFile, FILENAMESIZE, fMergedSlices, fNFiles, fValueCT, fValueDensity, G4cout, G4endl, G4Exception(), LINEBUFFSIZE, G4InuclParticleNames::name(), ReadFile(), and ReadMaterialIndices().
Referenced by main().
|
private |
Definition at line 293 of file DicomHandler.cc.
References fBitAllocated, fColumns, fImplicitEndian, fLittleEndian, fMaxPixelValue, fMinPixelValue, fPixelRepresentation, fPixelSpacingX, fPixelSpacingY, fRescaleIntercept, fRescaleSlope, fRows, fSliceLocation, fSliceThickness, and GetValue().
Referenced by ReadFile().
|
private |
Definition at line 592 of file DicomHandler.cc.
References fMaterialIndices.
Referenced by ReadData(), and StoreData().
|
private |
Definition at line 1075 of file DicomHandler.cc.
References fLittleEndian.
Referenced by GetInformation(), read_defined_nested(), read_undefined_item(), read_undefined_nested(), ReadData(), and ReadFile().
|
static |
Definition at line 72 of file DicomHandler.cc.
References fInstance.
Definition at line 831 of file DicomHandler.cc.
References fNbrequali, fReadCalibration, fValueCT, fValueDensity, and ReadCalibration().
Referenced by ReadData(), and StoreData().
Definition at line 969 of file DicomHandler.cc.
References buffer, GetValue(), and LINEBUFFSIZE.
Referenced by ReadFile().
|
private |
Definition at line 1041 of file DicomHandler.cc.
References buffer, GetValue(), and LINEBUFFSIZE.
Referenced by read_undefined_nested().
|
private |
Definition at line 1006 of file DicomHandler.cc.
References buffer, GetValue(), LINEBUFFSIZE, and read_undefined_item().
Referenced by ReadFile().
|
private |
Definition at line 800 of file DicomHandler.cc.
References FatalException, fCt2DensityFile, fNbrequali, fReadCalibration, fValueCT, fValueDensity, and G4Exception().
Referenced by Pixel2density().
G4int DicomHandler::ReadData | ( | FILE * | dicom, |
char * | filename2 | ||
) |
Definition at line 613 of file DicomHandler.cc.
References fBitAllocated, fColumns, fCompression, FILENAMESIZE, fMaterialIndices, fPixelSpacingX, fPixelSpacingY, fRescaleIntercept, fRescaleSlope, fRows, fSliceLocation, fSliceThickness, fTab, GetMaterialIndex(), GetValue(), and Pixel2density().
Referenced by ReadFile().
G4int DicomHandler::ReadFile | ( | FILE * | dicom, |
char * | filename2 | ||
) |
Definition at line 103 of file DicomHandler.cc.
References DicomPhantomZSliceHeader::AddMaterial(), DicomPhantomZSliceMerged::AddZSlice(), buffer, DATABUFFSIZE, FatalException, fColumns, fCompression, fImplicitEndian, fLittleEndian, fMaterialIndices, fMergedSlices, fPixelSpacingX, fPixelSpacingY, fRows, fSliceLocation, fSliceThickness, G4cout, G4endl, G4Exception(), GetInformation(), GetValue(), LINEBUFFSIZE, read_defined_nested(), read_undefined_nested(), ReadData(), DicomPhantomZSliceHeader::SetMaxX(), DicomPhantomZSliceHeader::SetMaxY(), DicomPhantomZSliceHeader::SetMaxZ(), DicomPhantomZSliceHeader::SetMinX(), DicomPhantomZSliceHeader::SetMinY(), DicomPhantomZSliceHeader::SetMinZ(), DicomPhantomZSliceHeader::SetNoVoxelX(), DicomPhantomZSliceHeader::SetNoVoxelY(), DicomPhantomZSliceHeader::SetNoVoxelZ(), and StoreData().
Referenced by CheckFileFormat().
|
private |
Definition at line 572 of file DicomHandler.cc.
References fMaterialIndices, G4cout, and G4endl.
Referenced by CheckFileFormat().
|
private |
Definition at line 488 of file DicomHandler.cc.
References fColumns, fCompression, fRows, fTab, G4endl, GetMaterialIndex(), and Pixel2density().
Referenced by ReadFile().
|
private |
Definition at line 434 of file DicomHandler.cc.
References DicomPhantomZSliceHeader::AddMateID(), DicomPhantomZSliceHeader::AddRow(), DicomPhantomZSliceHeader::AddValue(), fColumns, fCompression, DicomPhantomZSliceHeader::FlipData(), fRows, fSliceLocation, fTab, GetMaterialIndex(), Pixel2density(), and DicomPhantomZSliceHeader::SetSliceLocation().
|
private |
Definition at line 97 of file DicomHandler.hh.
Referenced by ReadFile().
|
private |
Definition at line 116 of file DicomHandler.hh.
Referenced by GetInformation(), and ReadData().
|
private |
Definition at line 115 of file DicomHandler.hh.
Referenced by GetInformation(), ReadData(), ReadFile(), and StoreData().
|
private |
Definition at line 112 of file DicomHandler.hh.
Referenced by CheckFileFormat(), ReadData(), ReadFile(), and StoreData().
|
private |
Definition at line 138 of file DicomHandler.hh.
Referenced by ReadCalibration().
|
private |
Definition at line 137 of file DicomHandler.hh.
Referenced by CheckFileFormat().
|
private |
Definition at line 99 of file DicomHandler.hh.
Referenced by CheckFileFormat(), and ReadData().
|
private |
Definition at line 125 of file DicomHandler.hh.
Referenced by GetInformation(), and ReadFile().
|
staticprivate |
Definition at line 95 of file DicomHandler.hh.
Referenced by Instance().
|
private |
Definition at line 125 of file DicomHandler.hh.
Referenced by GetInformation(), GetValue(), and ReadFile().
Definition at line 129 of file DicomHandler.hh.
Referenced by GetMaterialIndex(), ReadData(), ReadFile(), and ReadMaterialIndices().
|
private |
Definition at line 117 of file DicomHandler.hh.
Referenced by GetInformation().
|
private |
Definition at line 135 of file DicomHandler.hh.
Referenced by CheckFileFormat(), DicomHandler(), and ReadFile().
|
private |
Definition at line 117 of file DicomHandler.hh.
Referenced by GetInformation().
|
private |
Definition at line 131 of file DicomHandler.hh.
Referenced by Pixel2density(), and ReadCalibration().
|
private |
Definition at line 113 of file DicomHandler.hh.
Referenced by CheckFileFormat().
|
private |
Definition at line 126 of file DicomHandler.hh.
Referenced by GetInformation().
|
private |
Definition at line 119 of file DicomHandler.hh.
Referenced by GetInformation(), ReadData(), and ReadFile().
|
private |
Definition at line 119 of file DicomHandler.hh.
Referenced by GetInformation(), ReadData(), and ReadFile().
|
private |
Definition at line 134 of file DicomHandler.hh.
Referenced by Pixel2density(), and ReadCalibration().
|
private |
Definition at line 123 of file DicomHandler.hh.
Referenced by GetInformation(), and ReadData().
|
private |
Definition at line 123 of file DicomHandler.hh.
Referenced by GetInformation(), and ReadData().
|
private |
Definition at line 114 of file DicomHandler.hh.
Referenced by GetInformation(), ReadData(), ReadFile(), and StoreData().
|
private |
Definition at line 121 of file DicomHandler.hh.
Referenced by GetInformation(), ReadData(), ReadFile(), and StoreData().
|
private |
Definition at line 120 of file DicomHandler.hh.
Referenced by GetInformation(), ReadData(), and ReadFile().
|
private |
Definition at line 128 of file DicomHandler.hh.
Referenced by ReadData(), and StoreData().
|
private |
Definition at line 133 of file DicomHandler.hh.
Referenced by CheckFileFormat(), Pixel2density(), and ReadCalibration().
|
private |
Definition at line 132 of file DicomHandler.hh.
Referenced by CheckFileFormat(), Pixel2density(), and ReadCalibration().
|
private |
Definition at line 98 of file DicomHandler.hh.
Referenced by CheckFileFormat(), read_defined_nested(), read_undefined_item(), read_undefined_nested(), and ReadFile().