NorMIT-nav  18.04
An IGT application
cxCustomMetaImage.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 #ifndef CXCUSTOMMETAIMAGE_H_
12 #define CXCUSTOMMETAIMAGE_H_
13 
14 #include "cxResourceExport.h"
15 
16 #include <QString>
17 #include "cxTransform3D.h"
18 
19 namespace cx
20 {
21 
22 typedef boost::shared_ptr<class CustomMetaImage> CustomMetaImagePtr;
23 
31 class cxResource_EXPORT CustomMetaImage
32 {
33 public:
34  static CustomMetaImagePtr create(QString filename) { return CustomMetaImagePtr(new CustomMetaImage(filename)); }
35  explicit CustomMetaImage(QString filename);
36 
37  Transform3D readTransform();
38  void setTransform(const Transform3D M);
39 
40  QString readModality();
41  QString readImageType();
42  void setModality(QString value);
43  void setImageType(QString value);
44 
45  QString readKey(QString key);
46  void setKey(QString key, QString value);
47 
48 private:
49  QString mFilename;
50 
51  void remove(QStringList* data, QStringList keys);
52  void append(QStringList* data, QString key, QString value);
53 
54 };
55 
56 }
57 
58 #endif /* CXCUSTOMMETAIMAGE_H_ */
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class CustomMetaImage > CustomMetaImagePtr
utility class for accessing metaheader files.
static CustomMetaImagePtr create(QString filename)
Namespace for all CustusX production code.