Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cx::CgeoReaderWriter Class Reference

Write triangular mesh to .cgeo format for Ceetron. More...

#include <cxCgeoReaderWriter.h>

Inheritance diagram for cx::CgeoReaderWriter:
cx::FileReaderWriterImplService cx::FileReaderWriterService

Public Member Functions

 CgeoReaderWriter (PatientModelServicePtr patientModelService)
 
bool isNull ()
 
bool canRead (const QString &type, const QString &filename)
 
std::vector< DataPtrread (const QString &filename)
 
DataPtr read (const QString &uid, const QString &filename)
 
QString canReadDataType () const
 
bool readInto (DataPtr data, QString path)
 
QString canWriteDataType () const
 
bool canWrite (const QString &type, const QString &filename) const
 
void write (DataPtr data, const QString &filename)
 
QByteArray convertToQByteArray (DataPtr data)
 
- 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 vtkImageDataPtr loadVtkImageData (QString filename)
 
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

Write triangular mesh to .cgeo format for Ceetron.

Date
May 19, 2017
Author
Erlend F Hofstad

Definition at line 27 of file cxCgeoReaderWriter.h.

Constructor & Destructor Documentation

cx::CgeoReaderWriter::CgeoReaderWriter ( PatientModelServicePtr  patientModelService)

Definition at line 24 of file cxCgeoReaderWriter.cpp.

Member Function Documentation

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

Implements cx::FileReaderWriterService.

Definition at line 34 of file cxCgeoReaderWriter.cpp.

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

Implements cx::FileReaderWriterService.

Definition at line 49 of file cxCgeoReaderWriter.cpp.

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

Implements cx::FileReaderWriterService.

Definition at line 146 of file cxCgeoReaderWriter.cpp.

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

Implements cx::FileReaderWriterService.

Definition at line 141 of file cxCgeoReaderWriter.cpp.

QByteArray cx::CgeoReaderWriter::convertToQByteArray ( DataPtr  data)

Definition at line 67 of file cxCgeoReaderWriter.cpp.

bool cx::CgeoReaderWriter::isNull ( )
virtual

Implements cx::FileReaderWriterService.

Definition at line 29 of file cxCgeoReaderWriter.cpp.

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

Implements cx::FileReaderWriterService.

Definition at line 39 of file cxCgeoReaderWriter.cpp.

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

Implements cx::FileReaderWriterService.

Definition at line 44 of file cxCgeoReaderWriter.cpp.

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

Implements cx::FileReaderWriterService.

Definition at line 54 of file cxCgeoReaderWriter.cpp.

void cx::CgeoReaderWriter::write ( DataPtr  data,
const QString &  filename 
)
virtual

Implements cx::FileReaderWriterService.

Definition at line 59 of file cxCgeoReaderWriter.cpp.


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