Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKTRACKINGDEVICESOURCE_H_HEADER_INCLUDED_
18 #define MITKTRACKINGDEVICESOURCE_H_HEADER_INCLUDED_
19 
21 #include "mitkTrackingDevice.h"
22 
23 namespace mitk {
42  class MITKIGT_EXPORT TrackingDeviceSource : public NavigationDataSource
43  {
44  public:
46  itkFactorylessNewMacro(Self)
47  itkCloneMacro(Self)
48 
49 
52  virtual void SetTrackingDevice(mitk::TrackingDevice* td);
53 
57  itkGetConstObjectMacro(TrackingDevice, mitk::TrackingDevice);
58 
66  void Connect();
67 
74  void Disconnect();
75 
84  void StartTracking();
85 
92  void StopTracking();
93 
98  virtual bool IsConnected();
99 
104  virtual bool IsTracking();
105 
109  virtual void UpdateOutputInformation() override;
110 
111  protected:
113  virtual ~TrackingDeviceSource();
114 
123  virtual void GenerateData() override;
124 
130  void CreateOutputs();
131 
133  };
134 } // namespace mitk
135 #endif /* MITKTrackingDeviceSource_H_HEADER_INCLUDED_ */
itk::SmartPointer< Self > Pointer
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 mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Interface for all Tracking Devices.
Connects a mitk::TrackingDevice to a MITK-IGT NavigationData-Filterpipeline.