28 if ((!
m_Buffer.empty()) && (this->GetNumberOfInputs() !=
m_Buffer.front().second.size()))
38 std::vector<mitk::NavigationData::Pointer> ndList;
39 for (
unsigned int i = 0; i < this->GetNumberOfInputs() ; ++i)
46 m_Buffer.push( std::make_pair(now.GetMTime(), ndList) );
51 bool foundCurrent =
false;
61 if ( !foundCurrent)
return;
63 for (
unsigned int i = 0; i < this->GetNumberOfOutputs() ; ++i)
NavigationData * GetOutput(void)
return the output (output with id 0) of the filter
void GenerateData() override
virtual void SetDataValid(bool _arg)
sets the dataValid flag of the NavigationData object indicating if the object contains valid data ...
unsigned int m_Delay
The amount of time by which the Navigationdatas are delayed in milliseconds.
const NavigationData * GetInput(void) const
Get the input of this filter.
NavigationDataDelayFilter(unsigned int delay)
std::queue< BufferType > m_Buffer
This field containes the buffered navigation datas. It is a queue of (pair of (time and vector of (se...
void Graft(const DataObject *data) override
Graft the data and information from one NavigationData to another.
~NavigationDataDelayFilter() override
virtual bool IsDataValid() const
returns true if the object contains valid data