NorMIT-nav  22.09
An IGT application
cxFileManagerServiceNull.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 CXFILEMANAGERSERVICENULL_H
13 #define CXFILEMANAGERSERVICENULL_H
14 
15 #include "cxFileManagerService.h"
16 
17 namespace cx
18 {
19 
20 class cxResource_EXPORT FileManagerServiceNull : public FileManagerService
21 {
22  Q_OBJECT
23 public:
25  virtual ~FileManagerServiceNull();
26 
27  virtual bool isNull();
28 
29  bool canLoad(const QString &type, const QString &filename);
30  DataPtr load(const QString &uid, const QString &filename);
31  QString canLoadDataType() const;
32  std::vector<DataPtr> read(const QString &filename);
33 
34  bool readInto(DataPtr data, QString path);
35  QString findDataTypeFromFile(QString filename);
36  vtkPolyDataPtr loadVtkPolyData(QString filename);
37  vtkImageDataPtr loadVtkImageData(QString filename);
38 
39  void save(DataPtr data, const QString &filename);
40  void addFileReaderWriter(FileReaderWriterService *service);
41  void removeFileReaderWriter(FileReaderWriterService *service);
42 
43  std::vector<FileReaderWriterServicePtr> getExportersForDataType(QString dataType);
44  std::vector<FileReaderWriterServicePtr> getImportersForDataType(QString dataType);
45  virtual QString getFileReaderName(const QString &filename);
46 private:
47  void printWarning() const;
48 };
49 
50 }
51 
52 #endif // CXFILEMANAGERSERVICENULL_H
cxFileManagerService.h
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
vtkImageDataPtr
vtkSmartPointer< class vtkImageData > vtkImageDataPtr
Definition: cxVideoConnectionWidget.h:30
cx::DataPtr
boost::shared_ptr< class Data > DataPtr
Definition: cxRegistrationApplicator.h:22
cx::FileManagerServiceNull
Definition: cxFileManagerServiceNull.h:20
cx::vtkPolyDataPtr
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
Definition: cxCenterlineRegistration.h:42
cx::FileManagerService
Definition: cxFileManagerService.h:28
cx::FileReaderWriterService
Definition: cxFileReaderWriterService.h:30