32 if ( (m_Buffer.size() > 0) && (this->GetNumberOfInputs() != m_Buffer.front().second.size()) )
39 std::vector<mitk::NavigationData::Pointer> ndList;
40 for (
unsigned int i = 0; i < this->GetNumberOfInputs() ; ++i)
43 nd->Graft(this->GetInput(i));
47 m_Buffer.push( std::make_pair(now.GetMTime(), ndList) );
52 bool foundCurrent =
false;
54 while ( (m_Buffer.size() > 0) && (m_Buffer.front().first + m_Delay <= now.GetMTime() + m_Tolerance ) )
57 current = m_Buffer.front();
62 if ( !foundCurrent)
return;
64 for (
unsigned int i = 0; i < this->GetNumberOfOutputs() ; ++i)
itk::SmartPointer< Self > Pointer
virtual ~NavigationDataDelayFilter()
virtual void GenerateData() override
virtual void SetDataValid(bool _arg)
sets the dataValid flag of the NavigationData object indicating if the object contains valid data ...
NavigationDataDelayFilter(unsigned int delay)
virtual bool IsDataValid() const
returns true if the object contains valid data
virtual void Graft(const DataObject *data) override
Graft the data and information from one NavigationData to another.