MITK-IGT
IGT Extension of MITK
|
QmitkToolTrackingStatusWidget. More...
#include <QmitkToolTrackingStatusWidget.h>
Public Types | |
enum | Style { GridLowerStyle , VerticalUpperStyle } |
typedef std::vector< mitk::NavigationData::Pointer > | NavigationDataPointerArray |
Public Member Functions | |
QmitkToolTrackingStatusWidget (QWidget *parent) | |
default constructor | |
~QmitkToolTrackingStatusWidget () override | |
default destructor | |
void | ShowStatusLabels () |
Sets up the labels in this widget's QGridLayout for showing the track status of the tracking tools. | |
void | SetNavigationDatas (std::vector< mitk::NavigationData::Pointer > *navDatas) |
Sets the ND for this widget. | |
void | AddNavigationData (mitk::NavigationData::Pointer nd) |
Adds the NavigationData to the existing ones. | |
void | Refresh (int posPrecision=2, int quatPrecision=2) |
Changes background color of status labels (green or red) to show if actual navigation data of each tool is valid. Depending on usage of SetShowPosition(bool) or SetShowQuaternions(bool) the position coordinates and quaternion values of each tool are shown. The number of decimal places is set with the parameters posPrecision and quatPrecision. | |
void | RemoveStatusLabels () |
Removes all status labels. | |
void | SetShowPositions (bool enable) |
Enables / disables if the tool positions are shown. Default is off. | |
void | SetShowQuaternions (bool enable) |
Enables / disables if the tool quaternions are shown. Default is off. | |
void | SetTextAlignment (Qt::AlignmentFlag alignment) |
Sets the text alignment of the tool labels. Default is center. Example: Use Qt::AlignLeft for left alignment. | |
void | SetStyle (QmitkToolTrackingStatusWidget::Style newStyle) |
Sets the alignment style of this widget: GridLowerStyle: Tool labels are at the lower side of the widget in grid alignment VerticalUpperStyle: Tool labels are at the upper side in a vertical alignment (default) | |
void | PreShowTools (mitk::NavigationToolStorage::Pointer toolStorage) |
Shows tool labels for the tools in the tool storage. This method can be called BEFORE connecting the navigation data to make a preview of the tools. | |
void | OnServiceEvent (const us::ServiceEvent event) |
Protected Member Functions | |
void | CreateConnections () |
void | CreateQtPartControl (QWidget *parent) |
Protected Attributes | |
Ui::QmitkToolTrackingStatusWidgetControls * | m_Controls |
gui widgets | |
QmitkToolTrackingStatusWidget.
Widget for setting up and controlling an update timer in an IGT-Pipeline.
Definition at line 31 of file QmitkToolTrackingStatusWidget.h.
std::vector< mitk::NavigationData::Pointer > QmitkToolTrackingStatusWidget::NavigationDataPointerArray |
Definition at line 36 of file QmitkToolTrackingStatusWidget.h.
Enumerator | |
---|---|
GridLowerStyle | |
VerticalUpperStyle |
Definition at line 38 of file QmitkToolTrackingStatusWidget.h.
QmitkToolTrackingStatusWidget::QmitkToolTrackingStatusWidget | ( | QWidget * | parent | ) |
default constructor
Definition at line 17 of file QmitkToolTrackingStatusWidget.cpp.
|
override |
default destructor
Definition at line 61 of file QmitkToolTrackingStatusWidget.cpp.
void QmitkToolTrackingStatusWidget::AddNavigationData | ( | mitk::NavigationData::Pointer | nd | ) |
Adds the NavigationData to the existing ones.
Definition at line 111 of file QmitkToolTrackingStatusWidget.cpp.
|
protected |
Definition at line 101 of file QmitkToolTrackingStatusWidget.cpp.
|
protected |
Definition at line 76 of file QmitkToolTrackingStatusWidget.cpp.
void QmitkToolTrackingStatusWidget::OnServiceEvent | ( | const us::ServiceEvent | event | ) |
Definition at line 96 of file QmitkToolTrackingStatusWidget.cpp.
void QmitkToolTrackingStatusWidget::PreShowTools | ( | mitk::NavigationToolStorage::Pointer | toolStorage | ) |
Shows tool labels for the tools in the tool storage. This method can be called BEFORE connecting the navigation data to make a preview of the tools.
Definition at line 194 of file QmitkToolTrackingStatusWidget.cpp.
void QmitkToolTrackingStatusWidget::Refresh | ( | int | posPrecision = 2, |
int | quatPrecision = 2 ) |
Changes background color of status labels (green or red) to show if actual navigation data of each tool is valid. Depending on usage of SetShowPosition(bool) or SetShowQuaternions(bool) the position coordinates and quaternion values of each tool are shown. The number of decimal places is set with the parameters posPrecision and quatPrecision.
Definition at line 123 of file QmitkToolTrackingStatusWidget.cpp.
void QmitkToolTrackingStatusWidget::RemoveStatusLabels | ( | ) |
Removes all status labels.
Definition at line 214 of file QmitkToolTrackingStatusWidget.cpp.
void QmitkToolTrackingStatusWidget::SetNavigationDatas | ( | std::vector< mitk::NavigationData::Pointer > * | navDatas | ) |
Sets the ND for this widget.
Definition at line 105 of file QmitkToolTrackingStatusWidget.cpp.
void QmitkToolTrackingStatusWidget::SetShowPositions | ( | bool | enable | ) |
Enables / disables if the tool positions are shown. Default is off.
Definition at line 37 of file QmitkToolTrackingStatusWidget.cpp.
void QmitkToolTrackingStatusWidget::SetShowQuaternions | ( | bool | enable | ) |
Enables / disables if the tool quaternions are shown. Default is off.
Definition at line 45 of file QmitkToolTrackingStatusWidget.cpp.
void QmitkToolTrackingStatusWidget::SetStyle | ( | QmitkToolTrackingStatusWidget::Style | newStyle | ) |
Sets the alignment style of this widget: GridLowerStyle: Tool labels are at the lower side of the widget in grid alignment VerticalUpperStyle: Tool labels are at the upper side in a vertical alignment (default)
Definition at line 28 of file QmitkToolTrackingStatusWidget.cpp.
void QmitkToolTrackingStatusWidget::SetTextAlignment | ( | Qt::AlignmentFlag | alignment | ) |
Sets the text alignment of the tool labels. Default is center. Example: Use Qt::AlignLeft for left alignment.
Definition at line 53 of file QmitkToolTrackingStatusWidget.cpp.
void QmitkToolTrackingStatusWidget::ShowStatusLabels | ( | ) |
Sets up the labels in this widget's QGridLayout for showing the track status of the tracking tools.
Definition at line 161 of file QmitkToolTrackingStatusWidget.cpp.
|
protected |
gui widgets
Definition at line 107 of file QmitkToolTrackingStatusWidget.h.