MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkNavigationDataDelayFilter.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found 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
27namespace 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);
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
unsigned int m_Delay
The amount of time by which the Navigationdatas are delayed in milliseconds.
itkSetMacro(Delay, unsigned int)
mitkClassMacro(NavigationDataDelayFilter, NavigationDataToNavigationDataFilter)
std::queue< BufferType > m_Buffer
This field containes the buffered navigation datas. It is a queue of (pair of (time and vector of (se...
mitkNewMacro1Param(NavigationDataDelayFilter, unsigned int)
NavigationDataToNavigationDataFilter is the base class of all filters that receive NavigationDatas as...
IGT Exceptions.