Medical Imaging Interaction Toolkit  2018.4.99-4c24e3cb
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 (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 _MITKNAVIGATIONDATATOIGTLMessageFILTER_H__
14 #define _MITKNAVIGATIONDATATOIGTLMessageFILTER_H__
15 
16 #include "mitkCommon.h"
17 #include "mitkPointSet.h"
18 #include "mitkIGTLMessageSource.h"
19 #include "mitkNavigationData.h"
21 
22 namespace mitk {
32  {
33  public:
35  itkFactorylessNewMacro(Self)
36  itkCloneMacro(Self)
37 
38 
53  {
57  ModeSendTDataMsg
58  };
59 
63  void GenerateData() override;
64 
65  using Superclass::SetInput;
66 
70  virtual void SetInput(const mitk::NavigationData *NavigationData);
71 
75  virtual void SetInput(unsigned int idx, const NavigationData* nd);
76 
80  const mitk::NavigationData* GetInput();
81 
85  const mitk::NavigationData* GetInput(unsigned int idx);
86 
95  virtual void SetOperationMode(OperationMode mode);
96 
102  itkGetConstMacro(OperationMode, OperationMode);
103 
109  void GenerateOutputInformation() override {};
110 
118  virtual void ConnectTo(mitk::NavigationDataSource * UpstreamFilter);
119 
120  protected:
122 
124 
129  // virtual void GenerateData();
130 
135  virtual void GenerateDataModeSendQTDataMsg();
136 
140  virtual void GenerateDataModeSendTDataMsg();
141 
146  virtual void GenerateDataModeSendQTransMsg();
147 
151  virtual void GenerateDataModeSendTransMsg();
152 
156  virtual void CreateOutputsForAllInputs();
157 
159  // unsigned int m_RingBufferSize; ///< Stores the ringbuffer size
160  unsigned int m_CurrentTimeStep;
161  // unsigned int m_NumberForMean; ///< Number of Navigation Data, which should be averaged
162 
164  igtl::TimeStamp::Pointer ConvertToIGTLTimeStamp(double IGTTimeStamp);
165 
167  };
168 } // namespace mitk
169 #endif // _MITKNAVIGATIONDATATOIGTLMessageFILTER_H__
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.
Time stamp in milliseconds.
#define MITKIGT_EXPORT
OperationMode m_OperationMode
Stores the mode. See enum OperationMode.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
OpenIGTLink message source.
OperationMode
There are four different operation modes.