CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxCoordinateSystemHelpers.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 CXCOORDINATESYSTEMHELPERS_H_
13 #define CXCOORDINATESYSTEMHELPERS_H_
14 
15 #include "cxResourceExport.h"
16 
17 #include "cxDefinitions.h"
18 #include "cxForwardDeclarations.h"
19 #include <vector>
20 #include <QString>
21 
22 namespace cx
23 {
24 
31 struct cxResource_EXPORT CoordinateSystem
32 {
33  CoordinateSystem() : mId(csCOUNT) {}
34  explicit CoordinateSystem(COORDINATE_SYSTEM id, QString ref="") : mId(id), mRefObject(ref) {}
35  COORDINATE_SYSTEM mId;
36  QString mRefObject;
37 
40  QString toString() const;
41  static CoordinateSystem fromString(QString text);
42  bool isValid() const;
43 
44 };
45 cxResource_EXPORT bool operator==(const CoordinateSystem& lhs, const CoordinateSystem& rhs);
47 
48 
49 
50 }//namespace cx
51 #endif /* CXCOORDINATESYSTEMHELPERS_H_ */
Eigen::Vector2d fromString(const QString &text)
Definition: cxVector3D.cpp:106
csREF
the data reference space (r) using LPS (left-posterior-superior) coordinates.
Definition: cxDefinitions.h:90
static CoordinateSystem reference()
COORDINATE_SYSTEM mId
the type of coordinate system
csPATIENTREF
the patient/tool reference space (pr)
Definition: cxDefinitions.h:90
CoordinateSystem Space
Identification of a Coordinate system.
QString mRefObject
for tool, sensor and data we need a object uid to define the coordinate system
CoordinateSystem(COORDINATE_SYSTEM id, QString ref="")
bool operator==(const RegistrationTransform &lhs, const RegistrationTransform &rhs)
static CoordinateSystem patientReference()
Namespace for all CustusX production code.