16#include "mitkDataNode.h"
23 m_SizePropertyKey(
"zone.size")
25 this->setLayout(
new QVBoxLayout(
this));
46 new QmitkZoneProgressBar(QString::fromStdString(zoneNode->GetName())+QString(
": %1 mm"), 60, 25,
this);
48 float color[3] = {1, 0, 0};
51 zoneNode->GetColor(color);
55 this->layout()->addWidget(progressBar);
64 this->layout()->removeWidget(*it);
74 if ( needle.IsNull() )
76 MITK_ERROR(
"QmitkUSAbstractNavigationStep")(
"QmitkUSNavigationStepMarkerIntervention")
77 <<
"Current Navigation Data for needle must not be null.";
78 mitkThrow() <<
"Current Navigation Data for needle must not be null.";
82 if (needle->IsDataValid())
84 mitk::Point3D needlePosition = needle->GetPosition();
88 mitk::Point3D zoneOrigin =
m_ZoneNodes.at(n)->GetData()->GetGeometry()->GetOrigin();
91 mitk::ScalarType distance = sqrt( pow(zoneOrigin[0] - needlePosition[0], 2) + pow(zoneOrigin[1] - needlePosition[1], 2) + pow(zoneOrigin[2] - needlePosition[2], 2) );
96 distance = distance - zoneSize;
QProgressBar for displaying distances to zones. Colors are changed according to the distance to the z...
void SetColor(float color[3])
void SetWarnColor(float color[3])