Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxFileReaderWriterServiceNull.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXFILEREADERWRITERNULL_H
13 #define CXFILEREADERWRITERNULL_H
14 
16 
17 namespace cx
18 {
19 
20 class cxResource_EXPORT FileReaderWriterServiceNull : public FileReaderWriterService
21 {
22  Q_OBJECT
23 public:
26 
27  virtual bool isNull();
28 
29  QString getName() const;
30  QString getFileSuffix() const;
31 
32  bool canRead(const QString &type, const QString &filename);
33  std::vector<DataPtr> read(const QString &filename);
34  DataPtr read(const QString &uid, const QString &filename);
35  QString canReadDataType() const;
36  bool readInto(DataPtr data, QString path);
37 
38  QString canWriteDataType() const;
39  bool canWrite(const QString &type, const QString &filename) const;
40  void write(DataPtr data, const QString &filename);
41 
42  vtkImageDataPtr loadVtkImageData(QString filename);
43  vtkPolyDataPtr loadVtkPolyData(QString filename);
44 };
45 
46 }//cx
47 
48 #endif // CXFILEREADERWRITERNULL_H
boost::shared_ptr< class Data > DataPtr
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
vtkSmartPointer< class vtkImageData > vtkImageDataPtr
Namespace for all CustusX production code.