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

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

+ Inheritance diagram for DicomVFileImage:
+ Collaboration diagram for DicomVFileImage:

Public Member Functions

 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)
 

Protected Attributes

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
 
- Protected Attributes inherited from DicomVFile
DcmDataset * theDataset
 
G4String fFileName
 

Private Member Functions

template<typename T >
bool CheckConsistency (const T &, const T &, G4String)
 
void ReadPixelData ()
 
void Print (std::ostream &out)
 

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)
 

Detailed Description

Definition at line 33 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 33 of file DicomVFileImage.hh

Constructor & Destructor Documentation

DicomVFileImage::DicomVFileImage ( )

Definition at line 42 of file DicomVFileImage.cc.

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

References DicomFileMgr::GetInstance(), and theFileMgr.

+ Here is the call graph for this function:

DicomVFileImage::DicomVFileImage ( DcmDataset *  dset)

Definition at line 48 of file DicomVFileImage.cc.

View newest version in sPHENIX GitHub at line 48 of file DicomVFileImage.cc

References DicomFileMgr::GetInstance(), and theFileMgr.

+ Here is the call graph for this function:

DicomVFileImage::~DicomVFileImage ( )
inline

Definition at line 38 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 38 of file DicomVFileImage.hh

Member Function Documentation

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

Definition at line 107 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 107 of file DicomVFileImage.hh

References G4Exception(), and JustWarning.

+ Here is the call graph for this function:

void DicomVFileImage::DumpHeaderToTextFile ( std::ofstream &  fout)

Definition at line 306 of file DicomVFileImage.cc.

View newest version in sPHENIX GitHub at line 306 of file DicomVFileImage.cc

References DicomVFile::fFileName, fHounsfieldV, fLocation, fMaxX, fMaxY, fMaxZ, fMinX, fMinY, fMinZ, fName, fNoVoxelX, fNoVoxelY, fNoVoxelZ, G4cout, G4endl, DicomFileMgr::GetCompression(), theFileMgr, DicomFileMgr::verbose, and warningVerb.

Referenced by DicomFileMgr::DumpToTextFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const G4double& DicomVFileImage::GetLocation ( ) const
inline

Definition at line 73 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 73 of file DicomVFileImage.hh

References fLocation.

Referenced by DicomFileMgr::CheckCTSlices(), and DicomFileMgr::CheckPETSlices().

+ Here is the caller graph for this function:

G4double DicomVFileImage::GetMaxX ( ) const
inline

Definition at line 58 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 58 of file DicomVFileImage.hh

References fMaxX.

Referenced by operator+().

+ Here is the caller graph for this function:

G4double DicomVFileImage::GetMaxY ( ) const
inline

Definition at line 59 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 59 of file DicomVFileImage.hh

References fMaxY.

Referenced by operator+().

+ Here is the caller graph for this function:

G4double DicomVFileImage::GetMaxZ ( ) const
inline

Definition at line 60 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 60 of file DicomVFileImage.hh

References fMaxZ.

Referenced by DicomFileMgr::AddFile(), DicomFileMgr::CheckCTSlices(), DicomFileMgr::CheckPETSlices(), and operator+().

+ Here is the caller graph for this function:

G4double DicomVFileImage::GetMinX ( ) const
inline

Definition at line 55 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 55 of file DicomVFileImage.hh

References fMinX.

Referenced by operator+().

+ Here is the caller graph for this function:

G4double DicomVFileImage::GetMinY ( ) const
inline

Definition at line 56 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 56 of file DicomVFileImage.hh

References fMinY.

Referenced by operator+().

+ Here is the caller graph for this function:

G4double DicomVFileImage::GetMinZ ( ) const
inline

Definition at line 57 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 57 of file DicomVFileImage.hh

References fMinZ.

Referenced by DicomFileMgr::CheckCTSlices(), DicomFileMgr::CheckPETSlices(), and operator+().

+ Here is the caller graph for this function:

G4int DicomVFileImage::GetNoVoxels ( ) const
inline

Definition at line 53 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 53 of file DicomVFileImage.hh

References fNoVoxelX, fNoVoxelY, and fNoVoxelZ.

G4int DicomVFileImage::GetNoVoxelX ( ) const
inline

Definition at line 50 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 50 of file DicomVFileImage.hh

References fNoVoxelX.

Referenced by operator+().

+ Here is the caller graph for this function:

G4int DicomVFileImage::GetNoVoxelY ( ) const
inline

Definition at line 51 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 51 of file DicomVFileImage.hh

References fNoVoxelY.

Referenced by operator+().

+ Here is the caller graph for this function:

G4int DicomVFileImage::GetNoVoxelZ ( ) const
inline

Definition at line 52 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 52 of file DicomVFileImage.hh

References fNoVoxelZ.

Referenced by operator+().

+ Here is the caller graph for this function:

G4ThreeVector DicomVFileImage::GetOrientationColumns ( ) const
inline

Definition at line 78 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 78 of file DicomVFileImage.hh

References fOrientationColumns.

Referenced by operator+().

+ Here is the caller graph for this function:

G4ThreeVector DicomVFileImage::GetOrientationRows ( ) const
inline

Definition at line 77 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 77 of file DicomVFileImage.hh

References fOrientationRows.

Referenced by operator+().

+ Here is the caller graph for this function:

DicomVFileImage DicomVFileImage::operator+ ( const DicomVFileImage rhs)

Definition at line 240 of file DicomVFileImage.cc.

View newest version in sPHENIX GitHub at line 240 of file DicomVFileImage.cc

References FatalErrorInArgument, fMaxX, fMaxY, fMaxZ, fMinX, fMinY, fMinZ, fNoVoxelX, fNoVoxelY, fNoVoxelZ, fOrientationColumns, fOrientationRows, G4cerr, G4endl, G4Exception(), G4GeometryTolerance::GetInstance(), GetMaxX(), GetMaxY(), GetMaxZ(), GetMinX(), GetMinY(), GetMinZ(), GetNoVoxelX(), GetNoVoxelY(), GetNoVoxelZ(), GetOrientationColumns(), GetOrientationRows(), G4GeometryTolerance::GetRadialTolerance(), JustWarning, max, min, SetMaxZ(), SetMinZ(), and SetNoVoxelZ().

+ Here is the call graph for this function:

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

Definition at line 234 of file DicomVFileImage.cc.

View newest version in sPHENIX GitHub at line 234 of file DicomVFileImage.cc

void DicomVFileImage::Print ( std::ostream &  out)
private

Definition at line 326 of file DicomVFileImage.cc.

View newest version in sPHENIX GitHub at line 326 of file DicomVFileImage.cc

References fLocation, fMaxX, fMaxY, fMaxZ, fMinX, fMinY, fMinZ, fNoVoxelX, fNoVoxelY, fNoVoxelZ, G4endl, DicomFileMgr::GetCompression(), and theFileMgr.

+ Here is the call graph for this function:

void DicomVFileImage::ReadData ( )
virtual

Implements DicomVFile.

Definition at line 55 of file DicomVFileImage.cc.

View newest version in sPHENIX GitHub at line 55 of file DicomVFileImage.cc

References debugVerb, fBitAllocated, fLocation, fMaxX, fMaxY, fMaxZ, fMinX, fMinY, fMinZ, fNoVoxelX, fNoVoxelY, fNoVoxelZ, fOrientationColumns, fOrientationRows, fRescaleIntercept, fRescaleSlope, fVoxelDimX, fVoxelDimY, fVoxelDimZ, G4cerr, G4cout, G4endl, G4Exception(), JustWarning, DicomVFile::Read1Data(), ReadPixelData(), DicomVFile::theDataset, and DicomFileMgr::verbose.

Referenced by DicomFileMgr::AddFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DicomVFileImage::ReadPixelData ( )
private

Definition at line 126 of file DicomVFileImage.cc.

View newest version in sPHENIX GitHub at line 126 of file DicomVFileImage.cc

References debugVerb, FatalException, fBitAllocated, fHounsfieldV, fNoVoxelX, fNoVoxelY, fRescaleIntercept, fRescaleSlope, G4cout, G4endl, G4Exception(), BTOF::length, DicomVFile::theDataset, and DicomFileMgr::verbose.

Referenced by ReadData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DicomVFileImage::SetLocation ( const G4double val)
inline

Definition at line 75 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 75 of file DicomVFileImage.hh

References fLocation.

void DicomVFileImage::SetMaxX ( const G4double val)
inline

Definition at line 67 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 67 of file DicomVFileImage.hh

References fMaxX.

void DicomVFileImage::SetMaxY ( const G4double val)
inline

Definition at line 69 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 69 of file DicomVFileImage.hh

References fMaxY.

void DicomVFileImage::SetMaxZ ( const G4double val)
inline

Definition at line 71 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 71 of file DicomVFileImage.hh

References fMaxZ.

Referenced by DicomFileMgr::CheckCTSlices(), DicomFileMgr::CheckPETSlices(), and operator+().

+ Here is the caller graph for this function:

void DicomVFileImage::SetMinX ( const G4double val)
inline

Definition at line 66 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 66 of file DicomVFileImage.hh

References fMinX.

void DicomVFileImage::SetMinY ( const G4double val)
inline

Definition at line 68 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 68 of file DicomVFileImage.hh

References fMinY.

void DicomVFileImage::SetMinZ ( const G4double val)
inline

Definition at line 70 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 70 of file DicomVFileImage.hh

References fMinZ.

Referenced by DicomFileMgr::CheckCTSlices(), DicomFileMgr::CheckPETSlices(), and operator+().

+ Here is the caller graph for this function:

void DicomVFileImage::SetNoVoxelX ( const G4int val)
inline

Definition at line 62 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 62 of file DicomVFileImage.hh

References fNoVoxelX.

void DicomVFileImage::SetNoVoxelY ( const G4int val)
inline

Definition at line 63 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 63 of file DicomVFileImage.hh

References fNoVoxelY.

void DicomVFileImage::SetNoVoxelZ ( const G4int val)
inline

Definition at line 64 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 64 of file DicomVFileImage.hh

References fNoVoxelZ.

Referenced by operator+().

+ Here is the caller graph for this function:

Member Data Documentation

G4double DicomVFileImage::fBitAllocated
protected

Definition at line 88 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 88 of file DicomVFileImage.hh

Referenced by ReadData(), and ReadPixelData().

std::vector<int> DicomVFileImage::fHounsfieldV
protected

Definition at line 100 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 100 of file DicomVFileImage.hh

Referenced by DicomFilePET::BuildActivities(), DicomFileCT::BuildMaterials(), DumpHeaderToTextFile(), and ReadPixelData().

G4double DicomVFileImage::fMaxX
protected

Definition at line 94 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 94 of file DicomVFileImage.hh

Referenced by DicomFileCT::BuildStructureIDs(), DumpHeaderToTextFile(), GetMaxX(), operator+(), Print(), ReadData(), and SetMaxX().

G4double DicomVFileImage::fMaxY
protected

Definition at line 94 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 94 of file DicomVFileImage.hh

Referenced by DicomFileCT::BuildStructureIDs(), DumpHeaderToTextFile(), GetMaxY(), operator+(), Print(), ReadData(), and SetMaxY().

G4double DicomVFileImage::fMaxZ
protected

Definition at line 94 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 94 of file DicomVFileImage.hh

Referenced by DicomFileCT::BuildStructureIDs(), DumpHeaderToTextFile(), GetMaxZ(), operator+(), Print(), ReadData(), and SetMaxZ().

G4double DicomVFileImage::fMinX
protected

Definition at line 93 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 93 of file DicomVFileImage.hh

Referenced by DicomFileCT::BuildStructureIDs(), DumpHeaderToTextFile(), GetMinX(), operator+(), Print(), ReadData(), and SetMinX().

G4double DicomVFileImage::fMinY
protected

Definition at line 93 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 93 of file DicomVFileImage.hh

Referenced by DicomFileCT::BuildStructureIDs(), DumpHeaderToTextFile(), GetMinY(), operator+(), Print(), ReadData(), and SetMinY().

G4double DicomVFileImage::fMinZ
protected

Definition at line 93 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 93 of file DicomVFileImage.hh

Referenced by DicomFileCT::BuildStructureIDs(), DumpHeaderToTextFile(), GetMinZ(), operator+(), Print(), ReadData(), and SetMinZ().

G4int DicomVFileImage::fNoVoxelZ
protected

Definition at line 92 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 92 of file DicomVFileImage.hh

Referenced by DumpHeaderToTextFile(), GetNoVoxels(), GetNoVoxelZ(), operator+(), Print(), ReadData(), and SetNoVoxelZ().

G4ThreeVector DicomVFileImage::fOrientationColumns
protected

Definition at line 98 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 98 of file DicomVFileImage.hh

Referenced by GetOrientationColumns(), operator+(), and ReadData().

G4ThreeVector DicomVFileImage::fOrientationRows
protected

Definition at line 97 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 97 of file DicomVFileImage.hh

Referenced by GetOrientationRows(), operator+(), and ReadData().

G4double DicomVFileImage::fRescaleIntercept
protected

Definition at line 90 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 90 of file DicomVFileImage.hh

Referenced by ReadData(), and ReadPixelData().

G4double DicomVFileImage::fRescaleSlope
protected

Definition at line 89 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 89 of file DicomVFileImage.hh

Referenced by ReadData(), and ReadPixelData().

G4double DicomVFileImage::fVoxelDimX
protected

Definition at line 95 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 95 of file DicomVFileImage.hh

Referenced by DicomFileCT::BuildStructureIDs(), and ReadData().

G4double DicomVFileImage::fVoxelDimY
protected

Definition at line 95 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 95 of file DicomVFileImage.hh

Referenced by DicomFileCT::BuildStructureIDs(), and ReadData().

G4double DicomVFileImage::fVoxelDimZ
protected

Definition at line 95 of file DicomVFileImage.hh.

View newest version in sPHENIX GitHub at line 95 of file DicomVFileImage.hh

Referenced by ReadData().


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