Fraxinus  22.04-rc3
An IGT application
cxNIfTIReader.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 CXNIFTIREADER_H
13 #define CXNIFTIREADER_H
14 
16 #include "org_custusx_core_filemanager_Export.h"
17 
18 namespace cx
19 {
20 
24 class org_custusx_core_filemanager_EXPORT NIfTIReader: public FileReaderWriterImplService
25 {
26 public:
27  NIfTIReader(PatientModelServicePtr patientModelService);
28  virtual ~NIfTIReader();
29 
30  bool isNull();
31 
32  bool canRead(const QString &type, const QString &filename);
33  bool readInto(ImagePtr image, QString filename);
34  virtual bool readInto(DataPtr data, QString path);
35  QString canReadDataType() const;
36  DataPtr read(const QString &uid, const QString &filename);
37  std::vector<DataPtr> read(const QString &filename);
38 
39  QString canWriteDataType() const;
40  bool canWrite(const QString &type, const QString &filename) const;
41  void write(DataPtr data, const QString &filename);
42 
43  virtual vtkImageDataPtr loadVtkImageData(QString filename);
44 
45 private:
46  vtkMatrix4x4Ptr sform_matrix;
47 };
48 
49 }
50 
51 #endif // CXNIFTIREADER_H
vtkSmartPointer< class vtkMatrix4x4 > vtkMatrix4x4Ptr
Definition: cxMathBase.h:37
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
Reader for NIfTI files.
Definition: cxNIfTIReader.h:24
boost::shared_ptr< class Data > DataPtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
vtkSmartPointer< class vtkImageData > vtkImageDataPtr
Namespace for all CustusX production code.