15 #include <itksys/SystemTools.hxx> 19 #include "mitkIGTException.h" 22 : m_CurPlayerState(PlayerStopped),
23 m_StartPlayingTimeStamp(0.0), m_PauseTimeStamp(0.0)
38 MITK_WARN <<
"Cannot do anything with empty set of navigation datas.";
71 for (
unsigned int index = 0; index < GetNumberOfOutputs(); index++)
92 Superclass::UpdateOutputInformation();
127 MITK_ERROR <<
"Player is either not started or already is paused" << std::endl;
144 MITK_ERROR <<
"Player is not paused!" << std::endl;
void Resume()
This method resumes the player when it was paused.
NavigationData * GetOutput(void)
return the output (output with id 0) of the filter
void Pause()
This method pauses the player. If you want to play again call Resume()
NavigationDataSet::Pointer m_NavigationDataSet
double GetElapsed()
returns the time elapsed since calling Start() for the first time in milliseconds ...
mitk::NavigationData::TimeStampType TimeStampType
An object of this class represents an exception of the MITK-IGT module.
TimeStampType GetTimeStampSinceStart()
mitk::NavigationDataSet::NavigationDataSetConstIterator m_NavigationDataSetIterator
Iterator always points to the NavigationData object which is in the outputs at the moment...
void UpdateOutputInformation() override
Used for pipeline update just to tell the pipeline that we always have to update. ...
TimeStampType m_StartPlayingTimeStamp
The start time of the playing. Set in the method mitk::NavigationDataPlayer::StartPlaying().
void GraftEmptyOutput()
Convenience method for subclasses. When there are no further mitk::NavigationData objects available...
PlayerState m_CurPlayerState
TimeStampType m_PauseTimeStamp
Stores the time when a pause began.
void GenerateData() override
Set outputs to the navigation data object corresponding to current time.
TimeStampType m_TimeStampSinceStart
void StartPlaying()
This method starts the player.
~NavigationDataPlayer() override
static IGTTimeStamp * GetInstance()
returns a pointer to the current instance of mitkTimeStamp
void Start(itk::Object::Pointer device)
starts the time-acquisition
PlayerState GetCurrentPlayerState()
void StopPlaying()
Stops the player and closes the stream. After a call of StopPlaying(), StartPlaying() must be called ...
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 InitPlayer()
Initializes the outputs of this NavigationDataSource. Aftwer calling this method, the first Navigatio...