MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkUSNavigationZoneDistancesWidget Class Reference

Widget for showing distances to given zones using instances of QmitkZoneProgressBar. The zones can be added by AddZone() and removed by ClearZones(). To update the progress bars, UpdateDistancesToNeedlePosition() has to be called with a navigation data. More...

#include <QmitkUSNavigationZoneDistancesWidget.h>

Inheritance diagram for QmitkUSNavigationZoneDistancesWidget:

Signals

void SignalZoneViolated (const mitk::DataNode *, mitk::Point3D)
 Emitted whenever a the distance to a zone falls below zero.
 

Public Member Functions

 QmitkUSNavigationZoneDistancesWidget (QWidget *parent=nullptr)
 
 ~QmitkUSNavigationZoneDistancesWidget () override
 
void SetSizePropertyKey (const std::string &sizePropertyKey)
 Set the key for the data node float property holding the radius of a zone. The default value of this attribute is "zone.size".
 
const std::string & GetSizePropertyKey () const
 Get the key for the data node float property holding the radius of a zone.
 
void AddZone (itk::SmartPointer< mitk::DataNode > zoneNode)
 Adds a zone to the widget.
 
void ClearZones ()
 Removes all zones from the widget.
 
void UpdateDistancesToNeedlePosition (itk::SmartPointer< mitk::NavigationData > needle)
 Updates color and label of each zone distance bar according to the given needle position.
 

Protected Attributes

std::string m_SizePropertyKey
 
QVector< itk::SmartPointer< mitk::DataNode > > m_ZoneNodes
 
QVector< QmitkZoneProgressBar * > m_ZoneProgressBars
 

Detailed Description

Widget for showing distances to given zones using instances of QmitkZoneProgressBar. The zones can be added by AddZone() and removed by ClearZones(). To update the progress bars, UpdateDistancesToNeedlePosition() has to be called with a navigation data.

Definition at line 37 of file QmitkUSNavigationZoneDistancesWidget.h.

Constructor & Destructor Documentation

◆ QmitkUSNavigationZoneDistancesWidget()

QmitkUSNavigationZoneDistancesWidget::QmitkUSNavigationZoneDistancesWidget ( QWidget * parent = nullptr)
explicit

Definition at line 21 of file QmitkUSNavigationZoneDistancesWidget.cpp.

◆ ~QmitkUSNavigationZoneDistancesWidget()

QmitkUSNavigationZoneDistancesWidget::~QmitkUSNavigationZoneDistancesWidget ( )
override

Definition at line 28 of file QmitkUSNavigationZoneDistancesWidget.cpp.

Member Function Documentation

◆ AddZone()

void QmitkUSNavigationZoneDistancesWidget::AddZone ( itk::SmartPointer< mitk::DataNode > zoneNode)

Adds a zone to the widget.

Definition at line 42 of file QmitkUSNavigationZoneDistancesWidget.cpp.

◆ ClearZones()

void QmitkUSNavigationZoneDistancesWidget::ClearZones ( )

Removes all zones from the widget.

Definition at line 58 of file QmitkUSNavigationZoneDistancesWidget.cpp.

◆ GetSizePropertyKey()

const std::string & QmitkUSNavigationZoneDistancesWidget::GetSizePropertyKey ( ) const

Get the key for the data node float property holding the radius of a zone.

Definition at line 37 of file QmitkUSNavigationZoneDistancesWidget.cpp.

◆ SetSizePropertyKey()

void QmitkUSNavigationZoneDistancesWidget::SetSizePropertyKey ( const std::string & sizePropertyKey)

Set the key for the data node float property holding the radius of a zone. The default value of this attribute is "zone.size".

Definition at line 32 of file QmitkUSNavigationZoneDistancesWidget.cpp.

◆ SignalZoneViolated

void QmitkUSNavigationZoneDistancesWidget::SignalZoneViolated ( const mitk::DataNode * ,
mitk::Point3D  )
signal

Emitted whenever a the distance to a zone falls below zero.

◆ UpdateDistancesToNeedlePosition()

void QmitkUSNavigationZoneDistancesWidget::UpdateDistancesToNeedlePosition ( itk::SmartPointer< mitk::NavigationData > needle)

Updates color and label of each zone distance bar according to the given needle position.

Definition at line 72 of file QmitkUSNavigationZoneDistancesWidget.cpp.

Member Data Documentation

◆ m_SizePropertyKey

std::string QmitkUSNavigationZoneDistancesWidget::m_SizePropertyKey
protected

Definition at line 68 of file QmitkUSNavigationZoneDistancesWidget.h.

◆ m_ZoneNodes

QVector<itk::SmartPointer<mitk::DataNode> > QmitkUSNavigationZoneDistancesWidget::m_ZoneNodes
protected

Definition at line 69 of file QmitkUSNavigationZoneDistancesWidget.h.

◆ m_ZoneProgressBars

QVector<QmitkZoneProgressBar*> QmitkUSNavigationZoneDistancesWidget::m_ZoneProgressBars
protected

Definition at line 70 of file QmitkUSNavigationZoneDistancesWidget.h.


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