Fraxinus  22.04
An IGT application
cx::DICOMReader Class Reference

#include <cxDICOMReader.h>

Inheritance diagram for cx::DICOMReader:
cx::FileReaderWriterImplService cx::FileReaderWriterService

Public Member Functions

 DICOMReader (PatientModelServicePtr patientModelService)
 
virtual ~DICOMReader ()
 
bool isNull ()
 
virtual bool canRead (const QString &type, const QString &filename)
 Simple check if file is a DICOM file. DICOM files can have several different endings (. .dcm .dicom .ima), so we instead look at the characters at position 0x80. These characters should spell DICM, as specified by DICOM standard PS3.10 "Media Storage and File Format for Media Interchange". More...
 
virtual bool readInto (DataPtr data, QString path)
 
bool readInto (ImagePtr image, QString filename)
 
virtual QString canReadDataType () const
 
virtual DataPtr read (const QString &uid, const QString &filename)
 
std::vector< DataPtrread (const QString &filename)
 
void write (DataPtr data, const QString &filename)
 
QString canWriteDataType () const
 
bool canWrite (const QString &type, const QString &filename) const
 
virtual vtkImageDataPtr loadVtkImageData (QString filename)
 
- Public Member Functions inherited from cx::FileReaderWriterImplService
 FileReaderWriterImplService (QString name, QString canReadDataType, QString canWriteDataType, QString fileSuffix, PatientModelServicePtr patientModelService)
 
virtual QString getName () const
 
virtual QString getFileSuffix () const
 
virtual vtkPolyDataPtr loadVtkPolyData (QString filename)
 
- Public Member Functions inherited from cx::FileReaderWriterService
virtual ~FileReaderWriterService ()
 

Protected Member Functions

ImagePtr importSeries (QString fileName)
 
QString getBestDICOMSeries (ctkDICOMDatabasePtr database)
 
- Protected Member Functions inherited from cx::FileReaderWriterImplService
bool canReadInternal (const QString &type, const QString &filename) const
 
bool canWriteInternal (const QString &type, const QString &filename) const
 
DataPtr createData (QString type, QString filename, QString name="") const
 

Additional Inherited Members

- Static Public Member Functions inherited from cx::FileReaderWriterService
static FileReaderWriterServicePtr getNullObject ()
 

Detailed Description

Definition at line 22 of file cxDICOMReader.h.

Constructor & Destructor Documentation

cx::DICOMReader::DICOMReader ( PatientModelServicePtr  patientModelService)

Definition at line 26 of file cxDICOMReader.cpp.

virtual cx::DICOMReader::~DICOMReader ( )
inlinevirtual

Definition at line 27 of file cxDICOMReader.h.

Member Function Documentation

bool cx::DICOMReader::canRead ( const QString &  type,
const QString &  filename 
)
virtual

Simple check if file is a DICOM file. DICOM files can have several different endings (. .dcm .dicom .ima), so we instead look at the characters at position 0x80. These characters should spell DICM, as specified by DICOM standard PS3.10 "Media Storage and File Format for Media Interchange".

Parameters
type
filename
Returns

Implements cx::FileReaderWriterService.

Definition at line 34 of file cxDICOMReader.cpp.

QString cx::DICOMReader::canReadDataType ( ) const
virtual

Implements cx::FileReaderWriterService.

Definition at line 64 of file cxDICOMReader.cpp.

bool cx::DICOMReader::canWrite ( const QString &  type,
const QString &  filename 
) const
virtual

Implements cx::FileReaderWriterService.

Definition at line 117 of file cxDICOMReader.cpp.

QString cx::DICOMReader::canWriteDataType ( ) const
virtual

Implements cx::FileReaderWriterService.

Definition at line 112 of file cxDICOMReader.cpp.

QString cx::DICOMReader::getBestDICOMSeries ( ctkDICOMDatabasePtr  database)
protected

Definition at line 150 of file cxDICOMReader.cpp.

ImagePtr cx::DICOMReader::importSeries ( QString  fileName)
protected

Definition at line 124 of file cxDICOMReader.cpp.

bool cx::DICOMReader::isNull ( )
inlinevirtual

Implements cx::FileReaderWriterService.

Definition at line 29 of file cxDICOMReader.h.

vtkImageDataPtr cx::DICOMReader::loadVtkImageData ( QString  filename)
virtual

Reimplemented from cx::FileReaderWriterImplService.

Definition at line 105 of file cxDICOMReader.cpp.

DataPtr cx::DICOMReader::read ( const QString &  uid,
const QString &  filename 
)
virtual

Implements cx::FileReaderWriterService.

Definition at line 85 of file cxDICOMReader.cpp.

std::vector< DataPtr > cx::DICOMReader::read ( const QString &  filename)
virtual

Implements cx::FileReaderWriterService.

Definition at line 94 of file cxDICOMReader.cpp.

bool cx::DICOMReader::readInto ( DataPtr  data,
QString  path 
)
virtual

Implements cx::FileReaderWriterService.

Definition at line 69 of file cxDICOMReader.cpp.

bool cx::DICOMReader::readInto ( ImagePtr  image,
QString  filename 
)

Definition at line 74 of file cxDICOMReader.cpp.

void cx::DICOMReader::write ( DataPtr  data,
const QString &  filename 
)
inlinevirtual

Implements cx::FileReaderWriterService.

Definition at line 48 of file cxDICOMReader.h.


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