19 #include <itksys/SystemTools.hxx>
24 #include "mitkIGTException.h"
25 #include "mitkIGTIOException.h"
37 if( !m_Repeat && (this->GetNumberOfSnapshots() <= i) )
39 MITK_ERROR <<
"Snaphot " << i <<
" does not exist and repat is off: can't go to that snapshot!";
44 m_NavigationDataSetIterator = m_NavigationDataSet->Begin() + ( i % this->GetNumberOfSnapshots() );
52 if (m_NavigationDataSetIterator == m_NavigationDataSet->End())
54 MITK_WARN(
"NavigationDataSequentialPlayer") <<
"Cannot go to next snapshot, already at end of NavigationDataset. Ignoring...";
57 ++m_NavigationDataSetIterator;
58 if ( m_NavigationDataSetIterator == m_NavigationDataSet->End() )
63 m_NavigationDataSetIterator = m_NavigationDataSet->Begin();
76 if ( m_NavigationDataSetIterator == m_NavigationDataSet->End() )
79 this->GraftEmptyOutput();
83 for (
unsigned int index = 0; index < GetNumberOfOutputs(); index++)
88 output->
Graft(m_NavigationDataSetIterator->at(index));
96 Superclass::UpdateOutputInformation();
bool GoToNextSnapshot()
Advance the output to the next snapshot of mitk::NavigationData. Filter output is updated inside the ...
An object of this class represents an exception of the MITK-IGT module.
virtual void GenerateData() override
Does nothing. mitk::NavigationDataSequentialPlayer::GoToNextSnapshot() should be called for generatin...
virtual ~NavigationDataSequentialPlayer()
NavigationDataSequentialPlayer()
#define mitkThrowException(classname)
virtual void Graft(const DataObject *data) override
Graft the data and information from one NavigationData to another.
virtual void UpdateOutputInformation() override
Used for pipeline update just to tell the pipeline that we always have to update. ...
void GoToSnapshot(unsigned int i)
Advance the output to the i-th snapshot of mitk::NavigationData. E.g. if you want to have the NavData...