Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkNavigationDataDelayFilter.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 MITKNavigationDataDelayFilter_H
14 #define MITKNavigationDataDelayFilter_H
15 
16 // MITK Header
17 #include "MitkIGTExports.h"
19 #include "mitkNavigationData.h"
20 #include <mitkCommon.h>
21 
22 //ITK header
23 #include <itkTimeStamp.h>
24 
25 #include <queue>
26 
27 namespace mitk {
37  {
38  // |pairs of| timestamp and |one navigation Data for each input
39  typedef std::pair<itk::ModifiedTimeType, std::vector<mitk::NavigationData::Pointer> > BufferType;
40 
41  public:
42 
45 
46  itkSetMacro(Delay, unsigned int);
47 
48  protected:
49 
50  NavigationDataDelayFilter(unsigned int delay);
51  ~NavigationDataDelayFilter() override;
52 
53  void GenerateData() override;
54 
59  std::queue<BufferType> m_Buffer;
60 
64  unsigned int m_Delay;
65  unsigned int m_Tolerance;
66  };
67 } // namespace mitk
68 
69 #endif // MITKNavigationDataDelayFilter_H
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
NavigationDataToNavigationDataFilter is the base class of all filters that receive NavigationDatas as...
DataCollection - Class to facilitate loading/accessing structured data.
unsigned int m_Delay
The amount of time by which the Navigationdatas are delayed in milliseconds.
std::queue< BufferType > m_Buffer
This field containes the buffered navigation datas. It is a queue of (pair of (time and vector of (se...
#define MITKIGT_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40