16 #include "mitkIGTException.h" 21 this->
SetName(
"Navigation Data Player Source");
31 Superclass::UpdateOutputInformation();
62 <<
"NavigationDataSet has to be set before initializing player.";
65 if (GetNumberOfOutputs() == 0)
68 this->SetNumberOfRequiredOutputs(requiredOutputs);
70 for (
unsigned int n = this->GetNumberOfOutputs(); n < requiredOutputs; ++n)
72 DataObjectPointer newOutput = this->
MakeOutput(n);
73 this->SetNthOutput(n, newOutput);
80 <<
"Number of tools cannot be changed in existing player. Please create " 81 <<
"a new player, if the NavigationDataSet has another number of tools now.";
100 nd->SetPosition(position);
101 nd->SetOrientation(orientation);
102 nd->SetDataValid(
false);
NavigationData * GetOutput(void)
return the output (output with id 0) of the filter
void UpdateOutputInformation() override
Used for pipeline update just to tell the pipeline that we always have to update. ...
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...
mitk::Quaternion OrientationType
Type that holds the orientation part of the tracking data.
void GraftEmptyOutput()
Convenience method for subclasses. When there are no further mitk::NavigationData objects available...
void GenerateData() override=0
Every subclass hast to implement this method. See ITK filter documentation for details.
void SetNavigationDataSet(NavigationDataSet::Pointer navigationDataSet)
Set mitk::NavigationDataSet for playing. Player is initialized by call to mitk::NavigationDataPlayerB...
~NavigationDataPlayerBase() override
itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override
unsigned int GetCurrentSnapshotNumber()
NavigationDataPlayerBase()
#define mitkThrowException(classname)
void Graft(const DataObject *data) override
Graft the data and information from one NavigationData to another.
bool IsAtEnd()
This method checks if player arrived at end of file.
void InitPlayer()
Initializes the outputs of this NavigationDataSource. Aftwer calling this method, the first Navigatio...
unsigned int GetNumberOfSnapshots()
Getter for the size of the mitk::NavigationDataSet used in this object.
virtual void SetName(std::string _arg)
Sets the human readable name of this source. There is also a default name, but you can use this metho...