CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxTransformFile.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 CXTRANSFORMFILE_H_
13 #define CXTRANSFORMFILE_H_
14 
15 #include "cxResourceExport.h"
16 
17 #include "cxTransform3D.h"
18 
19 namespace cx
20 {
37 class cxResource_EXPORT TransformFile
38 {
39 public:
40  TransformFile(QString fileName ="");
41  QString fileName() const { return mFileName; }
42  Transform3D read(bool* ok = 0);
43  void write(const Transform3D& transform);
44 
45 private:
46  QString mFileName;
47 };
48 
53 }
54 
55 #endif /* CXTRANSFORMFILE_H_ */
DoubleBoundingBox3D transform(const Transform3D &m, const DoubleBoundingBox3D &bb)
File format for storing a 4x4 matrix.The read/write methods emit error messages if you dont use the o...
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
QString fileName() const
Namespace for all CustusX production code.