Medical Imaging Interaction Toolkit  2018.4.99-bb4bf944
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 
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 // _MITKNAVIGATIONDATATOPOINTSETFILTER_H__
OperationMode
There are two different operation modes.
Navigation Data.
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
unsigned int m_RingBufferSize
Stores the ringbuffer size.
#define MITKIGT_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
This filter creates mitk::PointSet objects from mitk::NavigaitionData objects.
OperationMode m_OperationMode
Stores the mode. See enum OperationMode.
unsigned int m_NumberForMean
Number of Navigation Data, which should be averaged.
Superclass of all classes generating point sets (instances of class mitk::PointSet) as output...
unsigned int m_CurrentTimeStep
Indicates the current timestamp.