CustusX  2023.01.05-dev+develop.0da12
An IGT application
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cx::PNGImageReader Class Reference

Reader for portable network graphics .png files. More...

#include <cxPNGImageReader.h>

Inheritance diagram for cx::PNGImageReader:
cx::FileReaderWriterImplService cx::FileReaderWriterService

Public Member Functions

 PNGImageReader (PatientModelServicePtr patientModelService)
 
virtual ~PNGImageReader ()
 
bool isNull ()
 
virtual bool canRead (const QString &type, const QString &filename)
 
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 ()
 

Additional Inherited Members

- Static Public Member Functions inherited from cx::FileReaderWriterService
static FileReaderWriterServicePtr getNullObject ()
 
- 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
 

Detailed Description

Reader for portable network graphics .png files.

Definition at line 23 of file cxPNGImageReader.h.

Constructor & Destructor Documentation

cx::PNGImageReader::PNGImageReader ( PatientModelServicePtr  patientModelService)

Definition at line 25 of file cxPNGImageReader.cpp.

virtual cx::PNGImageReader::~PNGImageReader ( )
inlinevirtual

Definition at line 29 of file cxPNGImageReader.h.

Member Function Documentation

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

Implements cx::FileReaderWriterService.

Definition at line 31 of file cxPNGImageReader.cpp.

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

Implements cx::FileReaderWriterService.

Definition at line 53 of file cxPNGImageReader.cpp.

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

Implements cx::FileReaderWriterService.

Definition at line 96 of file cxPNGImageReader.cpp.

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

Implements cx::FileReaderWriterService.

Definition at line 91 of file cxPNGImageReader.cpp.

bool cx::PNGImageReader::isNull ( )
inlinevirtual

Implements cx::FileReaderWriterService.

Definition at line 31 of file cxPNGImageReader.h.

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

Reimplemented from cx::FileReaderWriterImplService.

Definition at line 80 of file cxPNGImageReader.cpp.

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

Implements cx::FileReaderWriterService.

Definition at line 58 of file cxPNGImageReader.cpp.

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

Implements cx::FileReaderWriterService.

Definition at line 65 of file cxPNGImageReader.cpp.

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

Implements cx::FileReaderWriterService.

Definition at line 37 of file cxPNGImageReader.cpp.

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

Definition at line 42 of file cxPNGImageReader.cpp.

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

Implements cx::FileReaderWriterService.

Definition at line 40 of file cxPNGImageReader.h.


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