NorMIT-nav  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_ */
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxForwardDeclarations.h
cxDefinitions.h
cx::CoordinateSystem::reference
static CoordinateSystem reference()
Definition: cxCoordinateSystemHelpers.h:38
csREF
csREF
the data reference space (r) using LPS (left-posterior-superior) coordinates.
Definition: cxDefinitions.h:90
cx::CoordinateSystem::patientReference
static CoordinateSystem patientReference()
Definition: cxCoordinateSystemHelpers.h:39
cx::CoordinateSystem::CoordinateSystem
CoordinateSystem(COORDINATE_SYSTEM id, QString ref="")
Definition: cxCoordinateSystemHelpers.h:34
cx::CoordinateSystem::CoordinateSystem
CoordinateSystem()
Definition: cxCoordinateSystemHelpers.h:33
cx::operator==
bool operator==(const RegistrationTransform &lhs, const RegistrationTransform &rhs)
Definition: cxRegistrationTransform.cpp:151
csPATIENTREF
csPATIENTREF
the patient/tool reference space (pr)
Definition: cxDefinitions.h:92
cx::CoordinateSystem
Identification of a Coordinate system.
Definition: cxCoordinateSystemHelpers.h:31
cx::CoordinateSystem::mId
COORDINATE_SYSTEM mId
the type of coordinate system
Definition: cxCoordinateSystemHelpers.h:35
cx::Space
CoordinateSystem Space
Definition: cxCoordinateSystemHelpers.h:46
cx::fromString
Eigen::Vector2d fromString(const QString &text)
Definition: cxVector3D.cpp:106
cx::CoordinateSystem::mRefObject
QString mRefObject
for tool, sensor and data we need a object uid to define the coordinate system
Definition: cxCoordinateSystemHelpers.h:36