Medical Imaging Interaction Toolkit  2018.4.99-9a29ffc6
Medical Imaging Interaction Toolkit
mitkTrackingDeviceSource.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef MITKTRACKINGDEVICESOURCE_H_HEADER_INCLUDED_
14 #define MITKTRACKINGDEVICESOURCE_H_HEADER_INCLUDED_
15 
17 #include "mitkTrackingDevice.h"
18 
19 namespace mitk {
39  {
40  public:
42  itkFactorylessNewMacro(Self);
43  itkCloneMacro(Self);
44 
48  virtual void SetTrackingDevice(mitk::TrackingDevice* td);
49 
53  itkGetConstObjectMacro(TrackingDevice, mitk::TrackingDevice);
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 /* MITKTrackingDeviceSource_H_HEADER_INCLUDED_ */
DataCollection - Class to facilitate loading/accessing structured data.
mitk::TrackingDevice::Pointer m_TrackingDevice
the tracking device that is used as a source for this filter object
#define MITKIGT_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Interface for all Tracking Devices.
Connects a mitk::TrackingDevice to a MITK-IGT NavigationData-Filterpipeline.