15 #include <itksys/SystemTools.hxx> 20 #include "mitkIGTException.h" 21 #include "mitkIGTIOException.h" 35 MITK_ERROR <<
"Snaphot " << i <<
" does not exist and repat is off: can't go to that snapshot!";
50 MITK_WARN(
"NavigationDataSequentialPlayer") <<
"Cannot go to next snapshot, already at end of NavigationDataset. Ignoring...";
79 for (
unsigned int index = 0; index < GetNumberOfOutputs(); index++)
92 Superclass::UpdateOutputInformation();
~NavigationDataSequentialPlayer() override
NavigationData * GetOutput(void)
return the output (output with id 0) of the filter
bool GoToNextSnapshot()
Advance the output to the next snapshot of mitk::NavigationData. Filter output is updated inside the ...
NavigationDataSet::Pointer m_NavigationDataSet
An object of this class represents an exception of the MITK-IGT module.
mitk::NavigationDataSet::NavigationDataSetConstIterator m_NavigationDataSetIterator
Iterator always points to the NavigationData object which is in the outputs at the moment...
void GenerateData() override
Does nothing. mitk::NavigationDataSequentialPlayer::GoToNextSnapshot() should be called for generatin...
void GraftEmptyOutput()
Convenience method for subclasses. When there are no further mitk::NavigationData objects available...
NavigationDataSequentialPlayer()
bool m_Repeat
If the player should repeat outputs. Default is false.
#define mitkThrowException(classname)
void Graft(const DataObject *data) override
Graft the data and information from one NavigationData to another.
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...
unsigned int GetNumberOfSnapshots()
Getter for the size of the mitk::NavigationDataSet used in this object.