Medical Imaging Interaction Toolkit  2016.11.0
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,
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 _MITKNAVIGATIONDATATOPOINTSETFILTER_H__
18 #define _MITKNAVIGATIONDATATOPOINTSETFILTER_H__
19 
20 #include "mitkCommon.h"
21 #include "mitkPointSet.h"
22 #include "mitkPointSetSource.h"
23 #include "mitkNavigationData.h"
24 #include "MitkIGTExports.h"
25 
26 namespace mitk {
27 
39  class MITKIGT_EXPORT NavigationDataToPointSetFilter : public PointSetSource
40  {
41  public:
43  itkFactorylessNewMacro(Self)
44  itkCloneMacro(Self)
45 
46 
55  {
58  Mode4D
59  };
60 
66  itkSetMacro(RingBufferSize, unsigned int)
67 
68 
69 
72  itkSetMacro(NumberForMean, unsigned int)
73 
74 
77  itkGetMacro(NumberForMean, unsigned int);
78 
79 
83  virtual void GenerateData() override;
84 
85  using Superclass::SetInput;
86 
90  virtual void SetInput(const mitk::NavigationData *NavigationData);
91 
95  virtual void SetInput(unsigned int idx, const NavigationData* nd);
96 
100  const mitk::NavigationData* GetInput();
101 
105  const mitk::NavigationData* GetInput(unsigned int idx);
106 
115  virtual void SetOperationMode(OperationMode mode);
116 
122  itkGetConstMacro(OperationMode, OperationMode);
123 
124 
125  void GenerateOutputInformation() override {};
126 
127  protected:
129 
131 
136  virtual void GenerateDataMode3D();
137 
142  virtual void GenerateDataMode3DMean();
143 
147  virtual void GenerateDataMode4D();
148 
152  virtual void CreateOutputsForAllInputs();
153 
155  unsigned int m_RingBufferSize;
156  unsigned int m_CurrentTimeStep;
157  unsigned int m_NumberForMean;
158  };
159 } // namespace mitk
160 #endif // _MITKNAVIGATIONDATATOPOINTSETFILTER_H__
OperationMode
Error codes of NDI tracking devices.
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 mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
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.