MITK-IGT
IGT Extension of MITK
|
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>
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 |
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.
|
explicit |
Definition at line 21 of file QmitkUSNavigationZoneDistancesWidget.cpp.
|
override |
Definition at line 28 of file QmitkUSNavigationZoneDistancesWidget.cpp.
void QmitkUSNavigationZoneDistancesWidget::AddZone | ( | itk::SmartPointer< mitk::DataNode > | zoneNode | ) |
Adds a zone to the widget.
Definition at line 42 of file QmitkUSNavigationZoneDistancesWidget.cpp.
void QmitkUSNavigationZoneDistancesWidget::ClearZones | ( | ) |
Removes all zones from the widget.
Definition at line 58 of file QmitkUSNavigationZoneDistancesWidget.cpp.
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.
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.
|
signal |
Emitted whenever a the distance to a zone falls below zero.
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.
|
protected |
Definition at line 68 of file QmitkUSNavigationZoneDistancesWidget.h.
|
protected |
Definition at line 69 of file QmitkUSNavigationZoneDistancesWidget.h.
|
protected |
Definition at line 70 of file QmitkUSNavigationZoneDistancesWidget.h.