13 #include "boost/bind.hpp" 24 mPluginContext(context),
31 return mService->isNull();
36 return mService->canRead(type, filename);
41 return mService->read(filename);
46 return mService->read(uid, filename);
51 return mService->canReadDataType();
56 return mService->readInto(data, path);
61 mService->write(data, filename);
70 return mService->canReadDataType();
75 return mService->canWrite(type, filename);
80 return mService->getName();
85 return mService->getFileSuffix();
90 return mService->loadVtkImageData(filename);
95 return mService->loadVtkPolyData(filename);
static FileReaderWriterServicePtr getNullObject()
QString canReadDataType() const
void write(DataPtr data, const QString &filename)
std::vector< DataPtr > read(const QString &filename)
vtkImageDataPtr loadVtkImageData(QString filename)
vtkPolyDataPtr loadVtkPolyData(QString filename)
FileReaderWriterServiceProxy(ctkPluginContext *context)
boost::shared_ptr< class Data > DataPtr
boost::shared_ptr< class FileReaderWriterService > FileReaderWriterServicePtr
QString getFileSuffix() const
bool readInto(DataPtr data, QString path)
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
static FileReaderWriterServicePtr create(ctkPluginContext *context)
QString canWriteDataType() const
bool canWrite(const QString &type, const QString &filename) const
bool canRead(const QString &type, const QString &filename)
Namespace for all CustusX production code.