ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DicomFileCT Class Reference

#include <geant4/tree/geant4-10.6-release/examples/extended/medical/DICOM/dicomReader/include/DicomFileCT.hh>

+ Inheritance diagram for DicomFileCT:
+ Collaboration diagram for DicomFileCT:

Public Member Functions

 DicomFileCT ()
 
 DicomFileCT (DcmDataset *dset)
 
 ~DicomFileCT ()
 
void BuildMaterials ()
 
void DumpMateIDsToTextFile (std::ofstream &fout)
 
void DumpDensitiesToTextFile (std::ofstream &fout)
 
void BuildStructureIDs ()
 
void DumpStructureIDsToTextFile (std::ofstream &fout)
 
- Public Member Functions inherited from DicomVFileImage
 DicomVFileImage ()
 
 DicomVFileImage (DcmDataset *dset)
 
 ~DicomVFileImage ()
 
virtual void ReadData ()
 
void operator+= (const DicomVFileImage &rhs)
 
DicomVFileImage operator+ (const DicomVFileImage &rhs)
 
void DumpHeaderToTextFile (std::ofstream &fout)
 
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
 
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)
 
const G4doubleGetLocation () const
 
void SetLocation (const G4double &val)
 
G4ThreeVector GetOrientationRows () const
 
G4ThreeVector GetOrientationColumns () const
 
- Public Member Functions inherited from DicomVFile
 DicomVFile ()
 
 DicomVFile (DcmDataset *dset)
 
 ~DicomVFile ()
 
void SetFileName (G4String fName)
 

Private Attributes

std::vector< size_t > fMateIDs
 
std::vector< G4doublefDensities
 
std::vector< G4intfStructure
 

Additional Inherited Members

- Protected Member Functions inherited from DicomVFile
virtual std::vector< G4doubleRead1Data (DcmDataset *dset, DcmTagKey tagKey, G4int nData)
 
virtual OFString Read1DataStr (DcmDataset *dset, DcmTagKey tagKey)
 
- Protected Attributes inherited from DicomVFileImage
G4double fLocation
 
G4double fBitAllocated
 
G4double fRescaleSlope
 
G4double fRescaleIntercept
 
G4int fNoVoxelX
 
G4int fNoVoxelY
 
G4int fNoVoxelZ
 
G4double fMinX
 
G4double fMinY
 
G4double fMinZ
 
G4double fMaxX
 
G4double fMaxY
 
G4double fMaxZ
 
G4double fVoxelDimX
 
G4double fVoxelDimY
 
G4double fVoxelDimZ
 
G4ThreeVector fOrientationRows
 
G4ThreeVector fOrientationColumns
 
std::vector< intfHounsfieldV
 
DicomFileMgrtheFileMgr
 

Detailed Description

Definition at line 31 of file DicomFileCT.hh.

View newest version in sPHENIX GitHub at line 31 of file DicomFileCT.hh

Constructor & Destructor Documentation

DicomFileCT::DicomFileCT ( )

Definition at line 42 of file DicomFileCT.cc.

View newest version in sPHENIX GitHub at line 42 of file DicomFileCT.cc

DicomFileCT::DicomFileCT ( DcmDataset *  dset)

Definition at line 47 of file DicomFileCT.cc.

View newest version in sPHENIX GitHub at line 47 of file DicomFileCT.cc

DicomFileCT::~DicomFileCT ( )
inline

Definition at line 36 of file DicomFileCT.hh.

View newest version in sPHENIX GitHub at line 36 of file DicomFileCT.hh

Member Function Documentation

void DicomFileCT::BuildMaterials ( )

Definition at line 52 of file DicomFileCT.cc.

View newest version in sPHENIX GitHub at line 52 of file DicomFileCT.cc

References FatalException, fDensities, DicomVFileImage::fHounsfieldV, fMateIDs, DicomVFileImage::fNoVoxelX, DicomVFileImage::fNoVoxelY, G4Exception(), DicomFileMgr::GetCompression(), DicomFileMgr::GetMaterialIndex(), DicomFileMgr::GetMaterialIndexByDensity(), DicomFileMgr::Hounsfield2density(), DicomFileMgr::IsMaterialsDensity(), min, DicomVFileImage::theFileMgr, and nlohmann::to_string().

+ Here is the call graph for this function:

void DicomFileCT::DumpDensitiesToTextFile ( std::ofstream &  fout)

Definition at line 110 of file DicomFileCT.cc.

View newest version in sPHENIX GitHub at line 110 of file DicomFileCT.cc

References fDensities, DicomVFile::fFileName, DicomVFileImage::fLocation, DicomVFileImage::fNoVoxelX, DicomVFileImage::fNoVoxelY, G4cout, G4endl, DicomFileMgr::GetCompression(), DicomVFileImage::theFileMgr, DicomFileMgr::verbose, and warningVerb.

+ Here is the call graph for this function:

void DicomFileCT::DumpMateIDsToTextFile ( std::ofstream &  fout)

Definition at line 95 of file DicomFileCT.cc.

View newest version in sPHENIX GitHub at line 95 of file DicomFileCT.cc

References DicomVFile::fFileName, DicomVFileImage::fLocation, fMateIDs, DicomVFileImage::fNoVoxelX, DicomVFileImage::fNoVoxelY, G4cout, G4endl, DicomFileMgr::GetCompression(), DicomVFileImage::theFileMgr, DicomFileMgr::verbose, and warningVerb.

+ Here is the call graph for this function:

void DicomFileCT::DumpStructureIDsToTextFile ( std::ofstream &  fout)

Definition at line 377 of file DicomFileCT.cc.

View newest version in sPHENIX GitHub at line 377 of file DicomFileCT.cc

References DicomVFile::fFileName, DicomVFileImage::fLocation, DicomVFileImage::fNoVoxelX, DicomVFileImage::fNoVoxelY, fStructure, G4cout, G4endl, DicomFileMgr::GetCompression(), DicomFileMgr::GetStructFiles(), DicomVFileImage::theFileMgr, and DicomFileMgr::verbose.

+ Here is the call graph for this function:

Member Data Documentation

std::vector<G4double> DicomFileCT::fDensities
private

Definition at line 47 of file DicomFileCT.hh.

View newest version in sPHENIX GitHub at line 47 of file DicomFileCT.hh

Referenced by BuildMaterials(), and DumpDensitiesToTextFile().

std::vector<size_t> DicomFileCT::fMateIDs
private

Definition at line 46 of file DicomFileCT.hh.

View newest version in sPHENIX GitHub at line 46 of file DicomFileCT.hh

Referenced by BuildMaterials(), and DumpMateIDsToTextFile().

std::vector<G4int> DicomFileCT::fStructure
private

Definition at line 48 of file DicomFileCT.hh.

View newest version in sPHENIX GitHub at line 48 of file DicomFileCT.hh

Referenced by BuildStructureIDs(), and DumpStructureIDsToTextFile().


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