NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cx::StlMeshReader Class Reference

Reader for STL files. More...

#include <cxStlMeshReader.h>

Inheritance diagram for cx::StlMeshReader:
cx::FileReaderWriterImplService cx::FileReaderWriterService

Public Member Functions

 StlMeshReader (PatientModelServicePtr patientModelService)
 
virtual ~StlMeshReader ()
 
bool isNull ()
 
virtual bool canRead (const QString &type, const QString &filename)
 
virtual bool readInto (DataPtr data, QString path)
 
bool readInto (MeshPtr mesh, 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 vtkPolyDataPtr loadVtkPolyData (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 vtkImageDataPtr loadVtkImageData (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 STL files.

Definition at line 24 of file cxStlMeshReader.h.

Constructor & Destructor Documentation

◆ StlMeshReader()

cx::StlMeshReader::StlMeshReader ( PatientModelServicePtr  patientModelService)

Definition at line 27 of file cxStlMeshReader.cpp.

◆ ~StlMeshReader()

virtual cx::StlMeshReader::~StlMeshReader ( )
inlinevirtual

Definition at line 30 of file cxStlMeshReader.h.

Member Function Documentation

◆ canRead()

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

Implements cx::FileReaderWriterService.

Definition at line 32 of file cxStlMeshReader.cpp.

◆ canReadDataType()

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

Implements cx::FileReaderWriterService.

Definition at line 54 of file cxStlMeshReader.cpp.

◆ canWrite()

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

Implements cx::FileReaderWriterService.

Definition at line 112 of file cxStlMeshReader.cpp.

◆ canWriteDataType()

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

Implements cx::FileReaderWriterService.

Definition at line 107 of file cxStlMeshReader.cpp.

◆ isNull()

bool cx::StlMeshReader::isNull ( )
inlinevirtual

Implements cx::FileReaderWriterService.

Definition at line 32 of file cxStlMeshReader.h.

◆ loadVtkPolyData()

vtkPolyDataPtr cx::StlMeshReader::loadVtkPolyData ( QString  filename)
virtual

Reimplemented from cx::FileReaderWriterImplService.

Definition at line 59 of file cxStlMeshReader.cpp.

◆ read() [1/2]

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

Implements cx::FileReaderWriterService.

Definition at line 78 of file cxStlMeshReader.cpp.

◆ read() [2/2]

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

Implements cx::FileReaderWriterService.

Definition at line 71 of file cxStlMeshReader.cpp.

◆ readInto() [1/2]

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

Implements cx::FileReaderWriterService.

Definition at line 38 of file cxStlMeshReader.cpp.

◆ readInto() [2/2]

bool cx::StlMeshReader::readInto ( MeshPtr  mesh,
QString  filename 
)

Definition at line 43 of file cxStlMeshReader.cpp.

◆ write()

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

Implements cx::FileReaderWriterService.

Definition at line 92 of file cxStlMeshReader.cpp.


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