Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitkNavigationDataToPointSetFilter.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 mitkNavigationDataToPointSetFilter_h
14 #define mitkNavigationDataToPointSetFilter_h
15 
16 #include "mitkCommon.h"
17 #include "mitkPointSet.h"
18 #include "mitkPointSetSource.h"
19 #include "mitkNavigationData.h"
20 #include "MitkIGTExports.h"
21 
22 namespace mitk {
23 
35  class MITKIGT_EXPORT NavigationDataToPointSetFilter : public PointSetSource
36  {
37  public:
39  itkFactorylessNewMacro(Self);
40  itkCloneMacro(Self);
41 
51  {
54  Mode4D
55  };
56 
62  itkSetMacro(RingBufferSize, unsigned int);
63 
67  itkSetMacro(NumberForMean, unsigned int);
68 
72  itkGetMacro(NumberForMean, unsigned int);
73 
74 
78  void GenerateData() override;
79 
80  using Superclass::SetInput;
81 
85  virtual void SetInput(const mitk::NavigationData *NavigationData);
86 
90  virtual void SetInput(unsigned int idx, const NavigationData* nd);
91 
95  const mitk::NavigationData* GetInput();
96 
100  const mitk::NavigationData* GetInput(unsigned int idx);
101 
110  virtual void SetOperationMode(OperationMode mode);
111 
117  itkGetConstMacro(OperationMode, OperationMode);
118 
119 
120  void GenerateOutputInformation() override {};
121 
122  protected:
124 
125  ~NavigationDataToPointSetFilter() override;
126 
131  virtual void GenerateDataMode3D();
132 
137  virtual void GenerateDataMode3DMean();
138 
142  virtual void GenerateDataMode4D();
143 
147  virtual void CreateOutputsForAllInputs();
148 
150  unsigned int m_RingBufferSize;
151  unsigned int m_CurrentTimeStep;
152  unsigned int m_NumberForMean;
153  };
154 } // namespace mitk
155 #endif
mitk::NavigationDataToPointSetFilter::GenerateOutputInformation
void GenerateOutputInformation() override
Definition: mitkNavigationDataToPointSetFilter.h:120
mitk::NavigationDataToPointSetFilter::m_CurrentTimeStep
unsigned int m_CurrentTimeStep
Indicates the current timestamp.
Definition: mitkNavigationDataToPointSetFilter.h:151
mitkPointSetSource.h
mitkNavigationData.h
mitk::NavigationDataToPointSetFilter::Mode3DMean
@ Mode3DMean
Definition: mitkNavigationDataToPointSetFilter.h:53
mitk::NavigationData
Navigation Data.
Definition: mitkNavigationData.h:36
mitkPointSet.h
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::NavigationDataToPointSetFilter::Mode3D
@ Mode3D
Definition: mitkNavigationDataToPointSetFilter.h:52
mitk::NavigationDataToPointSetFilter
This filter creates mitk::PointSet objects from mitk::NavigaitionData objects.
Definition: mitkNavigationDataToPointSetFilter.h:35
mitk::NavigationDataToPointSetFilter::OperationMode
OperationMode
There are two different operation modes.
Definition: mitkNavigationDataToPointSetFilter.h:50
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
mitk::PointSetSource
Superclass of all classes generating point sets (instances of class mitk::PointSet) as output.
Definition: mitkPointSetSource.h:31
mitk::NavigationDataToPointSetFilter::m_OperationMode
OperationMode m_OperationMode
Stores the mode. See enum OperationMode.
Definition: mitkNavigationDataToPointSetFilter.h:149
mitk::NavigationDataToPointSetFilter::m_NumberForMean
unsigned int m_NumberForMean
Number of Navigation Data, which should be averaged.
Definition: mitkNavigationDataToPointSetFilter.h:152
mitkCommon.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::OperationMode
OperationMode
Error codes of NDI tracking devices.
Definition: mitkTrackingTypes.h:44
mitk::NavigationDataToPointSetFilter::m_RingBufferSize
unsigned int m_RingBufferSize
Stores the ringbuffer size.
Definition: mitkNavigationDataToPointSetFilter.h:150