GUI to access the IGT Player. User must specify the file name where the input xml-file is located. The NavigationDatas from the xml-file can be played in normal mode or in PointSet mode.
More...
#include <QmitkIGTPlayerWidget.h>
GUI to access the IGT Player. User must specify the file name where the input xml-file is located. The NavigationDatas from the xml-file can be played in normal mode or in PointSet mode.
Documentation: In normal mode the player updates the NavigationDatas every 100ms (can be changed in SetUpdateRate()) and returns them when GetNavigationDatas() is called. In PointSet mode the player generates a PointSet with all NavigationDatas from the xml-file. So the playback is performed on this ND PointSet.
Definition at line 43 of file QmitkIGTPlayerWidget.h.
◆ PlaybackMode
◆ QmitkIGTPlayerWidget()
QmitkIGTPlayerWidget::QmitkIGTPlayerWidget |
( |
QWidget * |
parent = nullptr , |
|
|
Qt::WindowFlags |
f = nullptr |
|
) |
| |
◆ ~QmitkIGTPlayerWidget()
QmitkIGTPlayerWidget::~QmitkIGTPlayerWidget |
( |
| ) |
|
|
override |
◆ CheckInputFileValid()
bool QmitkIGTPlayerWidget::CheckInputFileValid |
( |
| ) |
|
|
protected |
Checks if an imput file with the set filename exists.
◆ ClearTrajectorySelectCombobox()
void QmitkIGTPlayerWidget::ClearTrajectorySelectCombobox |
( |
| ) |
|
Clears all items in the trajectory selection combobox.
◆ CreateConnections()
virtual void QmitkIGTPlayerWidget::CreateConnections |
( |
| ) |
|
|
protectedvirtual |
Creation of the connections.
◆ GetCurrentPlaybackMode()
PlaybackMode QmitkIGTPlayerWidget::GetCurrentPlaybackMode |
( |
| ) |
|
◆ GetNavigationDataPoint()
Returns a PointType of the current NavigationData for a specific tool with the given index.
◆ GetNavigationDatas()
const std::vector<mitk::NavigationData::Pointer> QmitkIGTPlayerWidget::GetNavigationDatas |
( |
| ) |
|
Returns the current playback NavigationDatas from the xml-file.
◆ GetNavigationDatasPointSet()
Returns a PointSet of the current NavigationDatas for all recorded tools.
◆ GetNumberOfTools()
unsigned int QmitkIGTPlayerWidget::GetNumberOfTools |
( |
| ) |
|
Returns the number of different tools from the current playing stream.
Retuns 0 if playback file is invalid.
◆ GetPlayingTimer()
QTimer* QmitkIGTPlayerWidget::GetPlayingTimer |
( |
| ) |
|
Sets the real time player for this player widget.
Sets the sequential player for this player widget
Returns the playing timer of this widget
◆ GetResolution()
int QmitkIGTPlayerWidget::GetResolution |
( |
| ) |
|
Returns the current resolution value from the resolution spinbox.
◆ IsTrajectoryInSplineMode()
bool QmitkIGTPlayerWidget::IsTrajectoryInSplineMode |
( |
| ) |
|
Returns whether spline mode checkbox is selected.
◆ OnGoToBegin
void QmitkIGTPlayerWidget::OnGoToBegin |
( |
| ) |
|
|
protectedslot |
Stops the playback and resets the player to the beginning.
◆ OnGoToEnd
void QmitkIGTPlayerWidget::OnGoToEnd |
( |
| ) |
|
|
protectedslot |
◆ OnOpenFileButtonPressed
void QmitkIGTPlayerWidget::OnOpenFileButtonPressed |
( |
| ) |
|
|
protectedslot |
Opens file open dialog for searching the input file.
◆ OnPlayButtonClicked
void QmitkIGTPlayerWidget::OnPlayButtonClicked |
( |
bool |
toggled | ) |
|
|
protectedslot |
Starts or pauses the playback.
◆ OnPlaying
void QmitkIGTPlayerWidget::OnPlaying |
( |
| ) |
|
|
protectedslot |
Updates the playback data.
◆ OnSequencialModeToggled
void QmitkIGTPlayerWidget::OnSequencialModeToggled |
( |
bool |
toggled | ) |
|
|
protectedslot |
Switches widget between realtime and sequential mode.
◆ OnSliderPressed
void QmitkIGTPlayerWidget::OnSliderPressed |
( |
| ) |
|
|
protectedslot |
Pauses playback when slider is pressed by user.
◆ OnSliderReleased
void QmitkIGTPlayerWidget::OnSliderReleased |
( |
| ) |
|
|
protectedslot |
Moves player position to the position selected with the slider.
◆ OnStopPlaying
void QmitkIGTPlayerWidget::OnStopPlaying |
( |
| ) |
|
|
protectedslot |
◆ ResetLCDNumbers()
void QmitkIGTPlayerWidget::ResetLCDNumbers |
( |
| ) |
|
|
protected |
Sets all LCD numbers to 0.
◆ SetTrajectoryNames()
void QmitkIGTPlayerWidget::SetTrajectoryNames |
( |
const QStringList |
toolNames | ) |
|
Sets the given tool names list to the trajectory select combobox.
◆ SetUpdateRate()
void QmitkIGTPlayerWidget::SetUpdateRate |
( |
unsigned int |
msecs | ) |
|
Sets the update rate of this widget's playing timer.
◆ SignalCurrentTrajectoryChanged
void QmitkIGTPlayerWidget::SignalCurrentTrajectoryChanged |
( |
int |
index | ) |
|
|
signal |
This signal is emitted if the index of the current selected trajectory select combobox item changes.
◆ SignalInputFileChanged
void QmitkIGTPlayerWidget::SignalInputFileChanged |
( |
| ) |
|
|
signal |
This signal is emitted if the input file for the replay was changed.
◆ SignalPlayerUpdated
void QmitkIGTPlayerWidget::SignalPlayerUpdated |
( |
| ) |
|
|
signal |
This signal is emitted every time the player updated the NavigationDatas.
◆ SignalPlayingEnded
void QmitkIGTPlayerWidget::SignalPlayingEnded |
( |
| ) |
|
|
signal |
This signal is emitted when the player reaches the end of the playback.
◆ SignalPlayingPaused
void QmitkIGTPlayerWidget::SignalPlayingPaused |
( |
| ) |
|
|
signal |
This signal is emitted when the player is paused.
◆ SignalPlayingResumed
void QmitkIGTPlayerWidget::SignalPlayingResumed |
( |
| ) |
|
|
signal |
This signal is emitted when the player resumes after a pause.
◆ SignalPlayingStarted
void QmitkIGTPlayerWidget::SignalPlayingStarted |
( |
| ) |
|
|
signal |
This signal is emitted when the player starts the playback.
◆ SignalPlayingStopped
void QmitkIGTPlayerWidget::SignalPlayingStopped |
( |
| ) |
|
|
signal |
This signal is emitted when the player stops.
◆ SignalSplineModeToggled
void QmitkIGTPlayerWidget::SignalSplineModeToggled |
( |
bool |
toggled | ) |
|
|
signal |
This signal is emitted if the spline mode checkbox is toggled or untoggled.
◆ StopPlaying()
void QmitkIGTPlayerWidget::StopPlaying |
( |
| ) |
|
◆ m_CmpFilename
QString QmitkIGTPlayerWidget::m_CmpFilename |
|
protected |
◆ m_Controls
Ui::QmitkIGTPlayerWidgetControls* QmitkIGTPlayerWidget::m_Controls |
|
protected |
◆ m_CurrentSequentialPointNumber
unsigned int QmitkIGTPlayerWidget::m_CurrentSequentialPointNumber |
|
protected |
◆ m_PlayingTimer
QTimer* QmitkIGTPlayerWidget::m_PlayingTimer |
|
protected |
◆ m_RealTimePlayer
mitk::NavigationDataPlayer::Pointer QmitkIGTPlayerWidget::m_RealTimePlayer |
|
protected |
◆ m_SequentialPlayer
mitk::NavigationDataSequentialPlayer::Pointer QmitkIGTPlayerWidget::m_SequentialPlayer |
|
protected |
◆ m_StartTime
◆ VIEW_ID
const std::string QmitkIGTPlayerWidget::VIEW_ID |
|
static |
The documentation for this class was generated from the following file: