MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkOptitrackTrackingTool.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef mitkOptitrackTrackingTool_h
14#define mitkOptitrackTrackingTool_h
15
16#include <MitkIGTExports.h>
17#include "mitkTrackingDevice.h"
18#include "mitkTrackingTool.h"
19#include "mitkIGTTimeStamp.h"
20#include <cstdlib>
21#include <cstdio>
22#include <ctime>
23#include <itksys/SystemTools.hxx>
24#include "mitkCommon.h"
25#include <mitkTrackingTool.h>
26#include <mitkVector.h>
27#include "mitkIGTException.h"
28
29
30
35
36
37namespace mitk
38{
39
40 //class OptitrackTrackingDevice;
41
50 class MITKIGT_EXPORT OptitrackTrackingTool : public TrackingTool
51 {
52 public:
56
57
58
72 bool SetToolByFileName(std::string nameFile);
73
79 int get_IDnext();
80
86 bool DeleteTrackable();
87
92 using Superclass::SetPosition;
93 void SetPosition(mitk::Point3D position, ScalarType eps=0.0);
94
99 using Superclass::SetOrientation;
100 void SetOrientation(mitk::Quaternion orientation, ScalarType eps=0.0);
101
106 void GetPosition(mitk::Point3D& position) const override;
107
112 void GetOrientation(mitk::Quaternion& orientation) const override;
113
119 bool Enable() override;
120
126 bool Disable() override;
127
133 bool IsEnabled() const override;
134
140 bool IsDataValid() const override;
141
147 float GetTrackingError() const override;
148
153 void SetTrackingError(float FLEerror) override;
154
159 void SetDataValid(bool _arg) override;
160
165 void updateTool();
166
171
175 ~OptitrackTrackingTool() override;
176
181
185 int m_ID;
186
191
196
201
205 float m_FLE;
206
207 private:
209 const OptitrackTrackingTool& operator=(const OptitrackTrackingTool&);
210
211 };
212}
213#endif
An object of this class represents the Optitrack device. You can add tools to this device,...
An object of this class represents the a Tool tracked by Optitrack System. You can define the tool by...
int m_ID
ID number from Optitrack API.
float * m_pivotPoint
location of the pivot point during calibration
int m_numMarkers
Number of Markers that blong to the tool.
float * m_calibrationPoints
List of Markers locations in calibration position and orientation.
std::string m_fileConfiguration
File of the configuration for the tool.
float m_FLE
Expected value of the fiducial localization error (rms)
mitkClassMacro(mitk::OptitrackTrackingTool, mitk::TrackingTool)
Interface for all Tracking Tools.
IGT Exceptions.