MITK-IGT
IGT Extension of MITK
|
Widget allowing interaction with point sets for measurement and PointSet definition. More...
#include <QmitkToFPointSetWidget.h>
Public Member Functions | |
QmitkToFPointSetWidget (QWidget *p=nullptr, Qt::WindowFlags f1={}) | |
~QmitkToFPointSetWidget () override | |
virtual void | CreateQtPartControl (QWidget *parent) |
virtual void | CreateConnections () |
void | InitializeWidget (QHash< QString, QmitkRenderWindow * > renderWindowHashMap, mitk::DataStorage::Pointer dataStorage, mitk::CameraIntrinsics::Pointer cameraIntrinsics=nullptr) |
initializes the widget. Observers to the change events of the point sets are created, text actors are activated to be rendered into the foreground of the render window. | |
void | CleanUpWidget () |
cleans up the widget when it's functionality is not used anymore. Removes observers and deletes foreground renderer | |
void | SetDistanceImage (mitk::Image::Pointer distanceImage) |
set the image holding the distance information used for measuring | |
void | SetCameraIntrinsics (mitk::CameraIntrinsics::Pointer cameraIntrinsics) |
Set intrinsic parameters of the used device. | |
Static Public Attributes | |
static const std::string | VIEW_ID = "org.mitk.views.qmitktofpointsetwidget" |
Protected Slots | |
void | OnMeasurement () |
Activates the interactor for the measurement point set. | |
void | OnPointSet () |
Activates the interactor for the point set. | |
Protected Member Functions | |
void | MeasurementPointSetChanged () |
function called when the 2D measurement PointSet has changed | |
void | PointSetChanged () |
function called when the 2D PointSet has changed | |
Protected Attributes | |
Ui::QmitkToFPointSetWidgetControls * | m_Controls |
member holding the UI elements of this widget | |
mitk::DataStorage::Pointer | m_DataStorage |
member holding the set DataStorage | |
mitk::Image::Pointer | m_DistanceImage |
image holding the range data of the ToF camera | |
mitk::CameraIntrinsics::Pointer | m_CameraIntrinsics |
intrinsic parameters of the camera | |
mitk::TextAnnotation2D::Pointer | m_TextAnnotationAxial |
text annotation used to display measurements in axial window | |
mitk::TextAnnotation2D::Pointer | m_TextAnnotationSagittal |
text annotation used to display measurement in axial window | |
mitk::TextAnnotation2D::Pointer | m_TextAnnotationCoronal |
text annotation used to display measurement in axial window | |
mitk::TextAnnotation2D::Pointer | m_TextAnnotation3D |
text annotation used to display measurement in 3d window | |
mitk::VtkPropRenderer::Pointer | m_RendererAxial |
renderer of axial render window | |
mitk::VtkPropRenderer::Pointer | m_RendererSagittal |
renderer of sagittal render window | |
mitk::VtkPropRenderer::Pointer | m_RendererCoronal |
renderer of coronal render window | |
mitk::VtkPropRenderer::Pointer | m_Renderer3D |
renderer of 3D render window | |
mitk::PointSet::Pointer | m_MeasurementPointSet2D |
PointSet holding the 2D ToF image point selection used for measuring. | |
mitk::DataNode::Pointer | m_MeasurementPointSet3DNode |
DataNode holding the 3D ToF coordinates used for measuring. | |
mitk::PointSet::Pointer | m_PointSet2D |
PointSet holding the 2D ToF image points. | |
mitk::DataNode::Pointer | m_PointSet3DNode |
DataNode holding the 3D ToF coordinates. | |
mitk::PointSetDataInteractor::Pointer | m_PointSetInteractor |
PointSetInteractor used for PointSet definition. | |
mitk::PointSetDataInteractor::Pointer | m_MeasurementPointSetInteractor |
PointSetInteractor used for measurement. | |
long | m_MeasurementPointSetChangedObserverTag |
observer tag for measurement PointSet observer | |
long | m_PointSetChangedObserverTag |
observer tag for PointSet observer | |
int | m_WindowHeight |
Height of the renderWindow. | |
Widget allowing interaction with point sets for measurement and PointSet definition.
The widget allows to
NOTE: You have to make sure that the widget is initialized at a position in the plugin using it, where the distance image is available. CleanUp has to be called to make sure that all observers and renderers are removed correctly.
Definition at line 49 of file QmitkToFPointSetWidget.h.
QmitkToFPointSetWidget::QmitkToFPointSetWidget | ( | QWidget * | p = nullptr, |
Qt::WindowFlags | f1 = {} ) |
Definition at line 23 of file QmitkToFPointSetWidget.cpp.
|
override |
Definition at line 49 of file QmitkToFPointSetWidget.cpp.
void QmitkToFPointSetWidget::CleanUpWidget | ( | ) |
cleans up the widget when it's functionality is not used anymore. Removes observers and deletes foreground renderer
Definition at line 256 of file QmitkToFPointSetWidget.cpp.
|
virtual |
Definition at line 66 of file QmitkToFPointSetWidget.cpp.
|
virtual |
Definition at line 54 of file QmitkToFPointSetWidget.cpp.
void QmitkToFPointSetWidget::InitializeWidget | ( | QHash< QString, QmitkRenderWindow * > | renderWindowHashMap, |
mitk::DataStorage::Pointer | dataStorage, | ||
mitk::CameraIntrinsics::Pointer | cameraIntrinsics = nullptr ) |
initializes the widget. Observers to the change events of the point sets are created, text actors are activated to be rendered into the foreground of the render window.
renderWindowHashMap | |
dataStorage | DataStorage to add PointSets |
cameraIntrinsics |
Definition at line 75 of file QmitkToFPointSetWidget.cpp.
|
protected |
function called when the 2D measurement PointSet has changed
Definition at line 419 of file QmitkToFPointSetWidget.cpp.
|
protectedslot |
Activates the interactor for the measurement point set.
Definition at line 333 of file QmitkToFPointSetWidget.cpp.
|
protectedslot |
Activates the interactor for the point set.
Definition at line 376 of file QmitkToFPointSetWidget.cpp.
|
protected |
function called when the 2D PointSet has changed
Definition at line 481 of file QmitkToFPointSetWidget.cpp.
void QmitkToFPointSetWidget::SetCameraIntrinsics | ( | mitk::CameraIntrinsics::Pointer | cameraIntrinsics | ) |
Set intrinsic parameters of the used device.
Definition at line 328 of file QmitkToFPointSetWidget.cpp.
void QmitkToFPointSetWidget::SetDistanceImage | ( | mitk::Image::Pointer | distanceImage | ) |
set the image holding the distance information used for measuring
Definition at line 313 of file QmitkToFPointSetWidget.cpp.
|
protected |
intrinsic parameters of the camera
Definition at line 116 of file QmitkToFPointSetWidget.h.
|
protected |
member holding the UI elements of this widget
Definition at line 111 of file QmitkToFPointSetWidget.h.
|
protected |
member holding the set DataStorage
Definition at line 113 of file QmitkToFPointSetWidget.h.
|
protected |
image holding the range data of the ToF camera
Definition at line 115 of file QmitkToFPointSetWidget.h.
|
protected |
PointSet holding the 2D ToF image point selection used for measuring.
Definition at line 127 of file QmitkToFPointSetWidget.h.
|
protected |
DataNode holding the 3D ToF coordinates used for measuring.
Definition at line 128 of file QmitkToFPointSetWidget.h.
|
protected |
observer tag for measurement PointSet observer
Definition at line 135 of file QmitkToFPointSetWidget.h.
|
protected |
PointSetInteractor used for measurement.
Definition at line 133 of file QmitkToFPointSetWidget.h.
|
protected |
PointSet holding the 2D ToF image points.
Definition at line 129 of file QmitkToFPointSetWidget.h.
|
protected |
DataNode holding the 3D ToF coordinates.
Definition at line 130 of file QmitkToFPointSetWidget.h.
|
protected |
observer tag for PointSet observer
Definition at line 136 of file QmitkToFPointSetWidget.h.
|
protected |
PointSetInteractor used for PointSet definition.
Definition at line 132 of file QmitkToFPointSetWidget.h.
|
protected |
renderer of 3D render window
Definition at line 125 of file QmitkToFPointSetWidget.h.
|
protected |
renderer of axial render window
Definition at line 122 of file QmitkToFPointSetWidget.h.
|
protected |
renderer of coronal render window
Definition at line 124 of file QmitkToFPointSetWidget.h.
|
protected |
renderer of sagittal render window
Definition at line 123 of file QmitkToFPointSetWidget.h.
|
protected |
text annotation used to display measurement in 3d window
Definition at line 121 of file QmitkToFPointSetWidget.h.
|
protected |
text annotation used to display measurements in axial window
Definition at line 118 of file QmitkToFPointSetWidget.h.
|
protected |
text annotation used to display measurement in axial window
Definition at line 120 of file QmitkToFPointSetWidget.h.
|
protected |
text annotation used to display measurement in axial window
Definition at line 119 of file QmitkToFPointSetWidget.h.
|
protected |
Height of the renderWindow.
Definition at line 139 of file QmitkToFPointSetWidget.h.
|
static |
Definition at line 56 of file QmitkToFPointSetWidget.h.