Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
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
mitk::IGTTimeStamp
Time stamp in milliseconds.
Definition: mitkIGTTimeStamp.h:48
mitk::NavigationDataToIGTLMessageFilter::m_CurrentTimeStep
unsigned int m_CurrentTimeStep
Indicates the current timestamp.
Definition: mitkNavigationDataToIGTLMessageFilter.h:160
mitkIGTLMessageSource.h
mitkNavigationDataSource.h
mitkNavigationData.h
mitk::NavigationDataToIGTLMessageFilter::OperationMode
OperationMode
There are four different operation modes.
Definition: mitkNavigationDataToIGTLMessageFilter.h:52
mitk::IGTLMessageSource
OpenIGTLink message source.
Definition: mitkIGTLMessageSource.h:41
mitk::NavigationData
Navigation Data.
Definition: mitkNavigationData.h:36
mitk::NavigationDataToIGTLMessageFilter
This filter creates IGTL messages from mitk::NavigaitionData objects.
Definition: mitkNavigationDataToIGTLMessageFilter.h:31
mitkPointSet.h
mitk::NavigationDataSource
Navigation Data source.
Definition: mitkNavigationDataSource.h:40
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::NavigationDataToIGTLMessageFilter::ModeSendQTransMsg
@ ModeSendQTransMsg
Definition: mitkNavigationDataToIGTLMessageFilter.h:54
mitkCommon.h
mitk::NavigationDataToIGTLMessageFilter::GenerateOutputInformation
void GenerateOutputInformation() override
Definition: mitkNavigationDataToIGTLMessageFilter.h:109
mitk::NavigationDataToIGTLMessageFilter::ModeSendQTDataMsg
@ ModeSendQTDataMsg
Definition: mitkNavigationDataToIGTLMessageFilter.h:56
mitk::NavigationDataToIGTLMessageFilter::m_OperationMode
OperationMode m_OperationMode
Stores the mode. See enum OperationMode.
Definition: mitkNavigationDataToIGTLMessageFilter.h:158
mitk::NavigationDataToIGTLMessageFilter::ModeSendTransMsg
@ ModeSendTransMsg
Definition: mitkNavigationDataToIGTLMessageFilter.h:55
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::OperationMode
OperationMode
Error codes of NDI tracking devices.
Definition: mitkTrackingTypes.h:44