Geant4
10.03
|
#include <DicomFileMgr.hh>
Static Public Member Functions | |
static DicomFileMgr * | GetInstance () |
Public Attributes | |
G4bool | bMaterialsDensity |
Static Public Attributes | |
static int | verbose = 1 |
Protected Attributes | |
G4int | fCompression |
Private Member Functions | |
DicomFileMgr () | |
Private Attributes | |
G4String | theFileOutName |
mdct | theCTFiles |
std::vector< DicomFileStructure * > | theStructFiles |
std::vector< DicomFilePlan * > | thePlanFiles |
mdpet | thePETFiles |
std::map< G4double, G4String > | theMaterials |
std::map< G4double, G4String > | theMaterialsDensity |
std::map< G4int, G4double > | theCT2Density |
DicomFileCT * | theCTFileAll |
DicomFilePET * | thePETFileAll |
G4int | theStructureNCheck |
G4int | theStructureNMaxROI |
Static Private Attributes | |
static DicomFileMgr * | theInstance = 0 |
Definition at line 46 of file DicomFileMgr.hh.
|
inline |
Definition at line 50 of file DicomFileMgr.hh.
|
private |
Definition at line 50 of file DicomFileMgr.cc.
References fCompression, theCTFileAll, theStructureNCheck, and theStructureNMaxROI.
Referenced by GetInstance().
void DicomFileMgr::AddCT2Density | ( | std::vector< G4String > | data | ) |
Definition at line 209 of file DicomFileMgr.cc.
References G4UIcommand::ConvertToDouble(), G4UIcommand::ConvertToInt(), G4cout, G4endl, and theCT2Density.
Referenced by Convert().
void DicomFileMgr::AddFile | ( | G4String | fComp | ) |
Definition at line 128 of file DicomFileMgr.cc.
References FatalErrorInArgument, FatalException, G4Exception(), DicomVFileImage::GetMaxZ(), DicomVFileImage::ReadData(), DicomFileStructure::ReadData(), DicomFilePlan::ReadData(), DicomVFile::SetFileName(), theCTFiles, thePETFiles, thePlanFiles, and theStructFiles.
Referenced by Convert().
void DicomFileMgr::AddMaterial | ( | std::vector< G4String > | data | ) |
Definition at line 183 of file DicomFileMgr.cc.
References bMaterialsDensity, G4UIcommand::ConvertToDouble(), FatalException, G4Exception(), and theMaterials.
Referenced by Convert().
void DicomFileMgr::AddMaterialDensity | ( | std::vector< G4String > | data | ) |
Definition at line 196 of file DicomFileMgr.cc.
References bMaterialsDensity, G4UIcommand::ConvertToDouble(), FatalException, G4Exception(), and theMaterialsDensity.
Referenced by Convert().
void DicomFileMgr::BuildCTMaterials | ( | ) |
Definition at line 507 of file DicomFileMgr.cc.
References G4cout, G4endl, and theCTFiles.
Referenced by ProcessFiles().
void DicomFileMgr::BuildPETActivities | ( | ) |
Definition at line 517 of file DicomFileMgr.cc.
References G4cout, G4endl, and thePETFiles.
Referenced by ProcessFiles().
void DicomFileMgr::CheckCTSlices | ( | ) |
Definition at line 344 of file DicomFileMgr.cc.
References G4cerr, G4cout, G4endl, DicomVFileImage::GetLocation(), DicomVFileImage::GetMaxZ(), DicomVFileImage::GetMinZ(), DicomVFileImage::SetMaxZ(), DicomVFileImage::SetMinZ(), and theCTFiles.
Referenced by ProcessFiles().
void DicomFileMgr::CheckNColumns | ( | std::vector< G4String > | wl, |
size_t | vsizeTh | ||
) |
Definition at line 103 of file DicomFileMgr.cc.
References FatalErrorInArgument, G4cerr, G4endl, and G4Exception().
Referenced by Convert().
void DicomFileMgr::CheckPETSlices | ( | ) |
Definition at line 425 of file DicomFileMgr.cc.
References G4cerr, G4cout, G4endl, DicomVFileImage::GetLocation(), DicomVFileImage::GetMaxZ(), DicomVFileImage::GetMinZ(), DicomVFileImage::SetMaxZ(), DicomVFileImage::SetMinZ(), and thePETFiles.
Referenced by ProcessFiles().
void DicomFileMgr::Convert | ( | G4String | fFileName | ) |
Definition at line 59 of file DicomFileMgr.cc.
References AddCT2Density(), AddFile(), AddMaterial(), AddMaterialDensity(), CheckNColumns(), FatalErrorInArgument, G4cout, G4endl, G4Exception(), G4tgrFileIn::GetInstance(), G4tgrFileIn::GetWordsInLine(), ProcessFiles(), SetCompression(), and theFileOutName.
Referenced by main().
void DicomFileMgr::DumpToTextFile | ( | ) |
Definition at line 553 of file DicomFileMgr.cc.
References bMaterialsDensity, DicomVFileImage::DumpHeaderToTextFile(), G4cout, G4endl, GetStructFiles(), theCTFileAll, theCTFiles, theFileOutName, theMaterials, theMaterialsDensity, thePETFileAll, thePETFiles, and thePlanFiles.
Referenced by ProcessFiles().
|
inline |
Definition at line 91 of file DicomFileMgr.hh.
References fCompression.
Referenced by DicomFilePET::BuildActivities(), DicomFileCT::BuildMaterials(), DicomFileCT::BuildStructureIDs(), DicomFilePET::DumpActivitiesToTextFile(), DicomFileCT::DumpDensitiesToTextFile(), DicomVFileImage::DumpHeaderToTextFile(), DicomFileCT::DumpMateIDsToTextFile(), DicomFileCT::DumpStructureIDsToTextFile(), and DicomVFileImage::Print().
|
inline |
Definition at line 94 of file DicomFileMgr.hh.
References theFileOutName.
Referenced by DicomDetectorConstruction::ReadPhantomDataNew().
|
static |
Definition at line 41 of file DicomFileMgr.cc.
References DicomFileMgr(), and theInstance.
Referenced by DicomFileCT::BuildStructureIDs(), DicomVFileImage::DicomVFileImage(), main(), and DicomDetectorConstruction::ReadPhantomDataNew().
size_t DicomFileMgr::GetMaterialIndex | ( | G4double | Hval | ) |
Definition at line 272 of file DicomFileMgr.cc.
References FatalException, G4Exception(), and theMaterials.
Referenced by DicomFileCT::BuildMaterials().
size_t DicomFileMgr::GetMaterialIndexByDensity | ( | G4double | density | ) |
Definition at line 292 of file DicomFileMgr.cc.
References FatalException, G4Exception(), and theMaterialsDensity.
Referenced by DicomFileCT::BuildMaterials().
|
inline |
Definition at line 56 of file DicomFileMgr.hh.
References theStructFiles.
Referenced by DicomFileCT::BuildStructureIDs(), DicomFileCT::DumpStructureIDsToTextFile(), and DumpToTextFile().
|
inline |
Definition at line 82 of file DicomFileMgr.hh.
References theStructureNCheck.
Referenced by DicomFileCT::BuildStructureIDs().
|
inline |
Definition at line 88 of file DicomFileMgr.hh.
References theStructureNMaxROI.
Referenced by DicomFileCT::BuildStructureIDs().
G4double DicomFileMgr::Hounsfield2density | ( | Uint32 | Hval | ) |
Definition at line 217 of file DicomFileMgr.cc.
References FatalException, G4Exception(), and theCT2Density.
Referenced by DicomFileCT::BuildMaterials().
|
inline |
Definition at line 99 of file DicomFileMgr.hh.
References bMaterialsDensity.
Referenced by DicomFileCT::BuildMaterials().
void DicomFileMgr::MergeCTFiles | ( | ) |
Definition at line 527 of file DicomFileMgr.cc.
References G4cout, G4endl, theCTFileAll, and theCTFiles.
Referenced by ProcessFiles().
void DicomFileMgr::MergePETFiles | ( | ) |
Definition at line 540 of file DicomFileMgr.cc.
References G4cout, G4endl, thePETFileAll, and thePETFiles.
Referenced by ProcessFiles().
void DicomFileMgr::ProcessFiles | ( | ) |
Definition at line 311 of file DicomFileMgr.cc.
References BuildCTMaterials(), BuildPETActivities(), CheckCTSlices(), CheckPETSlices(), DumpToTextFile(), G4cout, G4endl, G4Exception(), JustWarning, MergeCTFiles(), MergePETFiles(), theCTFiles, and thePETFiles.
Referenced by Convert().
void DicomFileMgr::SetCompression | ( | G4String | fComp | ) |
Definition at line 122 of file DicomFileMgr.cc.
References G4UIcommand::ConvertToDouble(), and fCompression.
Referenced by Convert().
void DicomFileMgr::SetControlPointMetersets | ( | ) |
|
inline |
Definition at line 79 of file DicomFileMgr.hh.
References theStructureNCheck.
|
inline |
Definition at line 85 of file DicomFileMgr.hh.
References theStructureNMaxROI.
G4bool DicomFileMgr::bMaterialsDensity |
Definition at line 126 of file DicomFileMgr.hh.
Referenced by AddMaterial(), AddMaterialDensity(), DumpToTextFile(), and IsMaterialsDensity().
|
protected |
Definition at line 104 of file DicomFileMgr.hh.
Referenced by DicomFileMgr(), GetCompression(), and SetCompression().
Definition at line 117 of file DicomFileMgr.hh.
Referenced by AddCT2Density(), and Hounsfield2density().
|
private |
Definition at line 119 of file DicomFileMgr.hh.
Referenced by DicomFileMgr(), DumpToTextFile(), and MergeCTFiles().
|
private |
Definition at line 111 of file DicomFileMgr.hh.
Referenced by AddFile(), BuildCTMaterials(), CheckCTSlices(), DumpToTextFile(), MergeCTFiles(), and ProcessFiles().
|
private |
Definition at line 109 of file DicomFileMgr.hh.
Referenced by Convert(), DumpToTextFile(), and GetFileOutName().
|
staticprivate |
Definition at line 107 of file DicomFileMgr.hh.
Referenced by GetInstance().
Definition at line 115 of file DicomFileMgr.hh.
Referenced by AddMaterial(), DumpToTextFile(), and GetMaterialIndex().
Definition at line 116 of file DicomFileMgr.hh.
Referenced by AddMaterialDensity(), DumpToTextFile(), and GetMaterialIndexByDensity().
|
private |
Definition at line 120 of file DicomFileMgr.hh.
Referenced by DumpToTextFile(), and MergePETFiles().
|
private |
Definition at line 114 of file DicomFileMgr.hh.
Referenced by AddFile(), BuildPETActivities(), CheckPETSlices(), DumpToTextFile(), MergePETFiles(), and ProcessFiles().
|
private |
Definition at line 113 of file DicomFileMgr.hh.
Referenced by AddFile(), and DumpToTextFile().
|
private |
Definition at line 112 of file DicomFileMgr.hh.
Referenced by AddFile(), and GetStructFiles().
|
private |
Definition at line 121 of file DicomFileMgr.hh.
Referenced by DicomFileMgr(), GetStructureNCheck(), and SetStructureNCheck().
|
private |
Definition at line 122 of file DicomFileMgr.hh.
Referenced by DicomFileMgr(), GetStructureNMaxROI(), and SetStructureNMaxROI().
|
static |
Definition at line 125 of file DicomFileMgr.hh.
Referenced by DicomFileCT::BuildStructureIDs(), DicomFilePET::DumpActivitiesToTextFile(), DicomFileCT::DumpDensitiesToTextFile(), DicomVFileImage::DumpHeaderToTextFile(), DicomFileCT::DumpMateIDsToTextFile(), DicomFileCT::DumpStructureIDsToTextFile(), DicomVFileImage::ReadData(), and DicomVFileImage::ReadPixelData().