Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkNavigationDataToIGTLMessageFilter.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 _MITKNAVIGATIONDATATOIGTLMessageFILTER_H__
18 #define _MITKNAVIGATIONDATATOIGTLMessageFILTER_H__
19 
20 #include "mitkCommon.h"
21 #include "mitkPointSet.h"
22 #include "mitkIGTLMessageSource.h"
23 #include "mitkNavigationData.h"
25 
26 namespace mitk {
36  {
37  public:
39  itkFactorylessNewMacro(Self)
40  itkCloneMacro(Self)
41 
42 
57  {
61  ModeSendTDataMsg
62  };
63 
67  virtual void GenerateData() override;
68 
69  using Superclass::SetInput;
70 
74  virtual void SetInput(const mitk::NavigationData *NavigationData);
75 
79  virtual void SetInput(unsigned int idx, const NavigationData* nd);
80 
84  const mitk::NavigationData* GetInput();
85 
89  const mitk::NavigationData* GetInput(unsigned int idx);
90 
99  virtual void SetOperationMode(OperationMode mode);
100 
106  itkGetConstMacro(OperationMode, OperationMode);
107 
113  void GenerateOutputInformation() override {};
114 
122  virtual void ConnectTo(mitk::NavigationDataSource * UpstreamFilter);
123 
124  protected:
126 
128 
133  // virtual void GenerateData();
134 
139  virtual void GenerateDataModeSendQTDataMsg();
140 
144  virtual void GenerateDataModeSendTDataMsg();
145 
150  virtual void GenerateDataModeSendQTransMsg();
151 
155  virtual void GenerateDataModeSendTransMsg();
156 
160  virtual void CreateOutputsForAllInputs();
161 
163  // unsigned int m_RingBufferSize; ///< Stores the ringbuffer size
164  unsigned int m_CurrentTimeStep;
165  // unsigned int m_NumberForMean; ///< Number of Navigation Data, which should be averaged
166 
168  };
169 } // namespace mitk
170 #endif // _MITKNAVIGATIONDATATOIGTLMessageFILTER_H__
OperationMode
Error codes of NDI tracking devices.
Navigation Data.
This filter creates IGTL messages from mitk::NavigaitionData objects.
unsigned int m_CurrentTimeStep
Indicates the current timestamp.
DataCollection - Class to facilitate loading/accessing structured data.
OperationMode m_OperationMode
Stores the mode. See enum OperationMode.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
OpenIGTLink message source.
OperationMode
There are four different operation modes.