MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkTrackingDeviceSource.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 mitkTrackingDeviceSource_h
14#define mitkTrackingDeviceSource_h
15
17#include "mitkTrackingDevice.h"
18
19namespace mitk {
38 class MITKIGT_EXPORT TrackingDeviceSource : public NavigationDataSource
39 {
40 public:
44
48 virtual void SetTrackingDevice(mitk::TrackingDevice* td);
49
54
62 void Connect();
63
70 void Disconnect();
71
80 void StartTracking();
81
88 void StopTracking();
89
94 virtual bool IsConnected();
95
100 virtual bool IsTracking();
101
105 void UpdateOutputInformation() override;
106
107 protected:
109 ~TrackingDeviceSource() override;
110
119 void GenerateData() override;
120
126 void CreateOutputs();
127
128 mitk::TrackingDevice::Pointer m_TrackingDevice;
129 };
130} // namespace mitk
131#endif
Connects a mitk::TrackingDevice to a MITK-IGT NavigationData-Filterpipeline.
mitkClassMacro(TrackingDeviceSource, NavigationDataSource)
mitk::TrackingDevice::Pointer m_TrackingDevice
the tracking device that is used as a source for this filter object
itkGetConstObjectMacro(TrackingDevice, mitk::TrackingDevice)
returns the tracking device that is used by this filter
Interface for all Tracking Devices.
IGT Exceptions.