Medical Imaging Interaction Toolkit  2023.12.00
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
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitk::NavigationDataDelayFilter::m_Delay
unsigned int m_Delay
The amount of time by which the Navigationdatas are delayed in milliseconds.
Definition: mitkNavigationDataDelayFilter.h:64
mitkNavigationData.h
mitk::NavigationDataToNavigationDataFilter
NavigationDataToNavigationDataFilter is the base class of all filters that receive NavigationDatas as...
Definition: mitkNavigationDataToNavigationDataFilter.h:32
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::NavigationDataDelayFilter::m_Buffer
std::queue< BufferType > m_Buffer
This field containes the buffered navigation datas. It is a queue of (pair of (time and vector of (se...
Definition: mitkNavigationDataDelayFilter.h:59
mitk::NavigationDataDelayFilter
NavigationDataDelayFilter.
Definition: mitkNavigationDataDelayFilter.h:36
mitk::NavigationDataDelayFilter::m_Tolerance
unsigned int m_Tolerance
Definition: mitkNavigationDataDelayFilter.h:65
mitkCommon.h
mitkNavigationDataToNavigationDataFilter.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36