Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkPointListWidget Class Reference

Widget for regular operations on point sets. More...

#include <QmitkPointListWidget.h>

Inheritance diagram for QmitkPointListWidget:
Collaboration diagram for QmitkPointListWidget:

Public Slots

void DeactivateInteractor (bool deactivate)
 
void EnableEditButton (bool enabled)
 

Signals

void EditPointSets (bool active)
 signal to inform about the state of the EditPointSetButton, whether an interactor for setting points is active or not More...
 
void PointSelectionChanged ()
 signal to inform that the selection of a point in the pointset has changed More...
 
void PointListChanged ()
 signal to inform about cleared or loaded point sets More...
 

Public Member Functions

 QmitkPointListWidget (QWidget *parent=0, int orientation=0)
 
 ~QmitkPointListWidget ()
 
void SetupConnections ()
 
void AddSliceNavigationController (mitk::SliceNavigationController *snc)
 Add a mitk::SliceNavigationController instance. More...
 
void RemoveSliceNavigationController (mitk::SliceNavigationController *snc)
 Remove a mitk::SliceNavigationController instance. More...
 
void SetPointSet (mitk::PointSet *newPs)
 assign a point set (contained in a node of DataStorage) for observation More...
 
mitk::PointSetGetPointSet ()
 
void SetPointSetNode (mitk::DataNode *newNode)
 assign a point set (contained in a node of DataStorage) for observation More...
 
mitk::DataNodeGetPointSetNode ()
 
void SetMultiWidget (QmitkStdMultiWidget *multiWidget)
 assign a QmitkStdMultiWidget for updating render window crosshair More...
 
void OnNodeDeleted (const itk::EventObject &e)
 itk observer for node "delete" events More...
 
void UnselectEditButton ()
 Unselects the edit button if it is selected. More...
 
void SetSnc1 (mitk::SliceNavigationController *snc)
 Sets the SliceNavigationController of the three 2D Renderwindows. If they are defined, they can be used to automatically set the crosshair to the selected point. More...
 
void SetSnc2 (mitk::SliceNavigationController *snc)
 Sets the SliceNavigationController of the three 2D Renderwindows. If they are defined, they can be used to automatically set the crosshair to the selected point. More...
 
void SetSnc3 (mitk::SliceNavigationController *snc)
 Sets the SliceNavigationController of the three 2D Renderwindows. If they are defined, they can be used to automatically set the crosshair to the selected point. More...
 

Protected Slots

void OnBtnSavePoints ()
 
void OnBtnLoadPoints ()
 
void RemoveSelectedPoint ()
 
void MoveSelectedPointDown ()
 
void MoveSelectedPointUp ()
 
void OnBtnAddPoint (bool checked)
 
void OnBtnAddPointManually ()
 
void OnPointSelectionChanged ()
 pass through signal from PointListView that point selection has changed More...
 
void OnListDoubleClick ()
 

Protected Member Functions

void SetupUi ()
 
void ObserveNewNode (mitk::DataNode *node)
 

Protected Attributes

QmitkPointListViewm_PointListView
 
QmitkStdMultiWidgetm_MultiWidget
 
mitk::DataNode::Pointer m_PointSetNode
 
int m_Orientation
 
QPushButton * m_MovePointUpBtn
 
QPushButton * m_MovePointDownBtn
 
QPushButton * m_RemovePointBtn
 
QPushButton * m_SavePointsBtn
 
QPushButton * m_LoadPointsBtn
 
QPushButton * m_ToggleAddPoint
 
QPushButton * m_AddPoint
 
mitk::SliceNavigationControllerm_Snc1
 
mitk::SliceNavigationControllerm_Snc2
 
mitk::SliceNavigationControllerm_Snc3
 
mitk::DataInteractor::Pointer m_DataInteractor
 
int m_TimeStep
 
bool m_EditAllowed
 
unsigned long m_NodeObserverTag
 

Detailed Description

Widget for regular operations on point sets.

Displays a list of point coordinates and a couple of buttons which

  • enable point set interaction
  • clear all points from a set
  • load points from file
  • save points to file

The user/application module of this widget needs to assign a mitk::PointSet object to this widget. The user also has to decide whether it wants to put the point set into (a) DataStorage. This widget will not add/remove point sets to DataStorage.

If the render window crosshair should be moved to the currently selected point, the widget user has to provide a QmitkStdMultiWidget object.

Definition at line 53 of file QmitkPointListWidget.h.

Constructor & Destructor Documentation

QmitkPointListWidget::QmitkPointListWidget ( QWidget *  parent = 0,
int  orientation = 0 
)
QmitkPointListWidget::~QmitkPointListWidget ( )

Member Function Documentation

void QmitkPointListWidget::AddSliceNavigationController ( mitk::SliceNavigationController snc)

Add a mitk::SliceNavigationController instance.

Parameters
sncThe mitk::SliceNavigationController instance.

This method adds snc to the set of slice navigation controllers which are used to navigate to the selected point.

Definition at line 487 of file QmitkPointListWidget.cpp.

References QmitkPointListView::AddSliceNavigationController(), and m_PointListView.

void QmitkPointListWidget::DeactivateInteractor ( bool  deactivate)
slot

Definition at line 376 of file QmitkPointListWidget.cpp.

void QmitkPointListWidget::EditPointSets ( bool  active)
signal

signal to inform about the state of the EditPointSetButton, whether an interactor for setting points is active or not

Referenced by OnBtnAddPoint().

void QmitkPointListWidget::EnableEditButton ( bool  enabled)
slot

Definition at line 380 of file QmitkPointListWidget.cpp.

References m_EditAllowed, m_ToggleAddPoint, and OnBtnAddPoint().

mitk::PointSet * QmitkPointListWidget::GetPointSet ( )

Definition at line 265 of file QmitkPointListWidget.cpp.

References m_PointSetNode.

Referenced by OnBtnAddPointManually().

mitk::DataNode * QmitkPointListWidget::GetPointSetNode ( )

Definition at line 270 of file QmitkPointListWidget.cpp.

References m_PointSetNode.

void QmitkPointListWidget::MoveSelectedPointDown ( )
protectedslot
void QmitkPointListWidget::MoveSelectedPointUp ( )
protectedslot
void QmitkPointListWidget::OnBtnAddPoint ( bool  checked)
protectedslot
void QmitkPointListWidget::OnBtnAddPointManually ( )
protectedslot
void QmitkPointListWidget::OnBtnLoadPoints ( )
protectedslot
void QmitkPointListWidget::OnBtnSavePoints ( )
protectedslot

Definition at line 204 of file QmitkPointListWidget.cpp.

References m_PointSetNode, and mitk::IOUtil::Save().

Referenced by SetupConnections().

void QmitkPointListWidget::OnListDoubleClick ( )
protectedslot

Definition at line 367 of file QmitkPointListWidget.cpp.

Referenced by SetupConnections().

void QmitkPointListWidget::OnNodeDeleted ( const itk::EventObject &  e)
void QmitkPointListWidget::OnPointSelectionChanged ( )
protectedslot

pass through signal from PointListView that point selection has changed

Definition at line 371 of file QmitkPointListWidget.cpp.

References PointSelectionChanged().

Referenced by SetupConnections().

void QmitkPointListWidget::PointListChanged ( )
signal

signal to inform about cleared or loaded point sets

Referenced by MoveSelectedPointDown(), MoveSelectedPointUp(), OnBtnLoadPoints(), and RemoveSelectedPoint().

void QmitkPointListWidget::PointSelectionChanged ( )
signal

signal to inform that the selection of a point in the pointset has changed

Referenced by OnPointSelectionChanged().

void QmitkPointListWidget::RemoveSelectedPoint ( )
protectedslot
void QmitkPointListWidget::RemoveSliceNavigationController ( mitk::SliceNavigationController snc)

Remove a mitk::SliceNavigationController instance.

Parameters
sncThe mitk::SliceNavigationController instance.

This method removes snc from the set of slice navigation controllers which are used to navigate to the selected point.

Definition at line 492 of file QmitkPointListWidget.cpp.

References m_PointListView, and QmitkPointListView::RemoveSliceNavigationController().

void QmitkPointListWidget::SetMultiWidget ( QmitkStdMultiWidget multiWidget)

assign a QmitkStdMultiWidget for updating render window crosshair

Definition at line 275 of file QmitkPointListWidget.cpp.

References m_MultiWidget, m_PointListView, and QmitkPointListView::SetMultiWidget().

void QmitkPointListWidget::SetPointSet ( mitk::PointSet newPs)

assign a point set (contained in a node of DataStorage) for observation

Definition at line 185 of file QmitkPointListWidget.cpp.

References m_PointListView, m_PointSetNode, ObserveNewNode(), and SetPointSetNode().

Referenced by OnBtnLoadPoints().

void QmitkPointListWidget::SetPointSetNode ( mitk::DataNode newNode)

assign a point set (contained in a node of DataStorage) for observation

Definition at line 195 of file QmitkPointListWidget.cpp.

References m_DataInteractor, m_PointListView, and ObserveNewNode().

Referenced by SetPointSet().

void QmitkPointListWidget::SetSnc1 ( mitk::SliceNavigationController snc)

Sets the SliceNavigationController of the three 2D Renderwindows. If they are defined, they can be used to automatically set the crosshair to the selected point.

Deprecated:
(as of 2013_03) Use AddSliceNavigationController and RemoveSliceNavigationController instead.

Definition at line 448 of file QmitkPointListWidget.cpp.

References QmitkPointListView::AddSliceNavigationController(), m_PointListView, m_Snc1, and QmitkPointListView::RemoveSliceNavigationController().

void QmitkPointListWidget::SetSnc2 ( mitk::SliceNavigationController snc)

Sets the SliceNavigationController of the three 2D Renderwindows. If they are defined, they can be used to automatically set the crosshair to the selected point.

Deprecated:
(as of 2013_03) Use AddSliceNavigationController and RemoveSliceNavigationController instead.

Definition at line 461 of file QmitkPointListWidget.cpp.

References QmitkPointListView::AddSliceNavigationController(), m_PointListView, m_Snc2, and QmitkPointListView::RemoveSliceNavigationController().

void QmitkPointListWidget::SetSnc3 ( mitk::SliceNavigationController snc)

Sets the SliceNavigationController of the three 2D Renderwindows. If they are defined, they can be used to automatically set the crosshair to the selected point.

Deprecated:
(as of 2013_03) Use AddSliceNavigationController and RemoveSliceNavigationController instead.

Definition at line 474 of file QmitkPointListWidget.cpp.

References QmitkPointListView::AddSliceNavigationController(), m_PointListView, m_Snc3, and QmitkPointListView::RemoveSliceNavigationController().

void QmitkPointListWidget::SetupUi ( )
protected
void QmitkPointListWidget::UnselectEditButton ( )

Unselects the edit button if it is selected.

Definition at line 497 of file QmitkPointListWidget.cpp.

References m_ToggleAddPoint.

Member Data Documentation

QPushButton* QmitkPointListWidget::m_AddPoint
protected

Definition at line 155 of file QmitkPointListWidget.h.

Referenced by ObserveNewNode(), OnNodeDeleted(), SetupConnections(), and SetupUi().

mitk::DataInteractor::Pointer QmitkPointListWidget::m_DataInteractor
protected
bool QmitkPointListWidget::m_EditAllowed
protected

Definition at line 163 of file QmitkPointListWidget.h.

Referenced by EnableEditButton(), and ObserveNewNode().

QPushButton* QmitkPointListWidget::m_LoadPointsBtn
protected

Definition at line 153 of file QmitkPointListWidget.h.

Referenced by ObserveNewNode(), OnNodeDeleted(), SetupConnections(), and SetupUi().

QPushButton* QmitkPointListWidget::m_MovePointDownBtn
protected

Definition at line 150 of file QmitkPointListWidget.h.

Referenced by SetupConnections(), and SetupUi().

QPushButton* QmitkPointListWidget::m_MovePointUpBtn
protected

Definition at line 149 of file QmitkPointListWidget.h.

Referenced by SetupConnections(), and SetupUi().

QmitkStdMultiWidget* QmitkPointListWidget::m_MultiWidget
protected

Definition at line 143 of file QmitkPointListWidget.h.

Referenced by SetMultiWidget(), and ~QmitkPointListWidget().

unsigned long QmitkPointListWidget::m_NodeObserverTag
protected

Definition at line 164 of file QmitkPointListWidget.h.

Referenced by ObserveNewNode(), OnNodeDeleted(), and ~QmitkPointListWidget().

int QmitkPointListWidget::m_Orientation
protected

Definition at line 147 of file QmitkPointListWidget.h.

Referenced by QmitkPointListWidget(), and SetupUi().

QPushButton* QmitkPointListWidget::m_RemovePointBtn
protected

Definition at line 151 of file QmitkPointListWidget.h.

Referenced by ObserveNewNode(), OnNodeDeleted(), SetupConnections(), and SetupUi().

QPushButton* QmitkPointListWidget::m_SavePointsBtn
protected

Definition at line 152 of file QmitkPointListWidget.h.

Referenced by ObserveNewNode(), OnNodeDeleted(), SetupConnections(), and SetupUi().

mitk::SliceNavigationController* QmitkPointListWidget::m_Snc1
protected

Definition at line 157 of file QmitkPointListWidget.h.

Referenced by SetSnc1().

mitk::SliceNavigationController* QmitkPointListWidget::m_Snc2
protected

Definition at line 158 of file QmitkPointListWidget.h.

Referenced by SetSnc2().

mitk::SliceNavigationController* QmitkPointListWidget::m_Snc3
protected

Definition at line 159 of file QmitkPointListWidget.h.

Referenced by SetSnc3().

int QmitkPointListWidget::m_TimeStep
protected

Definition at line 162 of file QmitkPointListWidget.h.

Referenced by OnBtnAddPointManually().

QPushButton* QmitkPointListWidget::m_ToggleAddPoint
protected

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