Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkToolTrackingStatusWidget Class Reference

QmitkToolTrackingStatusWidget. More...

#include <QmitkToolTrackingStatusWidget.h>

Inheritance diagram for QmitkToolTrackingStatusWidget:
Collaboration diagram for QmitkToolTrackingStatusWidget:

Public Types

enum  Style { GridLowerStyle, VerticalUpperStyle }
 
typedef std::vector< mitk::NavigationData::Pointer > NavigationDataPointerArray
 

Public Member Functions

 QmitkToolTrackingStatusWidget (QWidget *parent)
 default constructor More...
 
virtual ~QmitkToolTrackingStatusWidget ()
 default destructor More...
 
void ShowStatusLabels ()
 Sets up the labels in this widget's QGridLayout for showing the track status of the tracking tools. More...
 
void SetNavigationDatas (std::vector< mitk::NavigationData::Pointer > *navDatas)
 Sets the ND for this widget. More...
 
void AddNavigationData (mitk::NavigationData::Pointer nd)
 Adds the NavigationData to the existing ones. More...
 
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. More...
 
void RemoveStatusLabels ()
 Removes all status labels. More...
 
void SetShowPositions (bool enable)
 Enables / disables if the tool positions are shown. Default is off. More...
 
void SetShowQuaternions (bool enable)
 Enables / disables if the tool quaternions are shown. Default is off. More...
 
void SetTextAlignment (Qt::AlignmentFlag alignment)
 Sets the text alignment of the tool labels. Default is center. Example: Use Qt::AlignLeft for left alignment. More...
 
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) More...
 
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. More...
 
void OnServiceEvent (const us::ServiceEvent event)
 

Protected Member Functions

void CreateConnections ()
 
void CreateQtPartControl (QWidget *parent)
 

Protected Attributes

Ui::QmitkToolTrackingStatusWidgetControls * m_Controls
 gui widgets More...
 

Detailed Description

QmitkToolTrackingStatusWidget.

Widget for setting up and controlling an update timer in an IGT-Pipeline.

Definition at line 35 of file QmitkToolTrackingStatusWidget.h.

Member Typedef Documentation

typedef std::vector< mitk::NavigationData::Pointer > QmitkToolTrackingStatusWidget::NavigationDataPointerArray

Definition at line 40 of file QmitkToolTrackingStatusWidget.h.

Member Enumeration Documentation

Enumerator
GridLowerStyle 
VerticalUpperStyle 

Definition at line 42 of file QmitkToolTrackingStatusWidget.h.

Constructor & Destructor Documentation

QmitkToolTrackingStatusWidget::QmitkToolTrackingStatusWidget ( QWidget *  parent)

default constructor

Definition at line 21 of file QmitkToolTrackingStatusWidget.cpp.

References CreateQtPartControl(), and VerticalUpperStyle.

QmitkToolTrackingStatusWidget::~QmitkToolTrackingStatusWidget ( )
virtual

default destructor

Definition at line 65 of file QmitkToolTrackingStatusWidget.cpp.

Member Function Documentation

void QmitkToolTrackingStatusWidget::AddNavigationData ( mitk::NavigationData::Pointer  nd)

Adds the NavigationData to the existing ones.

Definition at line 114 of file QmitkToolTrackingStatusWidget.cpp.

void QmitkToolTrackingStatusWidget::CreateConnections ( )
protected

Definition at line 104 of file QmitkToolTrackingStatusWidget.cpp.

Referenced by CreateQtPartControl().

void QmitkToolTrackingStatusWidget::CreateQtPartControl ( QWidget *  parent)
protected
void QmitkToolTrackingStatusWidget::OnServiceEvent ( const us::ServiceEvent  event)
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 196 of file QmitkToolTrackingStatusWidget.cpp.

References m_Controls, and VerticalUpperStyle.

Referenced by OnServiceEvent().

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 126 of file QmitkToolTrackingStatusWidget.cpp.

References mitk::NavigationData::GetName(), mitk::NavigationData::GetOrientation(), mitk::NavigationData::GetPosition(), and mitk::NavigationData::IsDataValid().

Referenced by SetShowPositions(), SetShowQuaternions(), SetStyle(), and SetTextAlignment().

void QmitkToolTrackingStatusWidget::RemoveStatusLabels ( )

Removes all status labels.

Definition at line 216 of file QmitkToolTrackingStatusWidget.cpp.

void QmitkToolTrackingStatusWidget::SetNavigationDatas ( std::vector< mitk::NavigationData::Pointer > *  navDatas)

Sets the ND for this widget.

Definition at line 108 of file QmitkToolTrackingStatusWidget.cpp.

void QmitkToolTrackingStatusWidget::SetShowPositions ( bool  enable)

Enables / disables if the tool positions are shown. Default is off.

Definition at line 41 of file QmitkToolTrackingStatusWidget.cpp.

References Refresh().

void QmitkToolTrackingStatusWidget::SetShowQuaternions ( bool  enable)

Enables / disables if the tool quaternions are shown. Default is off.

Definition at line 49 of file QmitkToolTrackingStatusWidget.cpp.

References Refresh().

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 32 of file QmitkToolTrackingStatusWidget.cpp.

References Refresh().

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 57 of file QmitkToolTrackingStatusWidget.cpp.

References Refresh().

void QmitkToolTrackingStatusWidget::ShowStatusLabels ( )

Sets up the labels in this widget's QGridLayout for showing the track status of the tracking tools.

Definition at line 164 of file QmitkToolTrackingStatusWidget.cpp.

References m_Controls, and VerticalUpperStyle.

Member Data Documentation

Ui::QmitkToolTrackingStatusWidgetControls* QmitkToolTrackingStatusWidget::m_Controls
protected

gui widgets

Definition at line 111 of file QmitkToolTrackingStatusWidget.h.

Referenced by CreateQtPartControl(), PreShowTools(), and ShowStatusLabels().


The documentation for this class was generated from the following files: