Medical Imaging Interaction Toolkit  2018.4.99-bd7b41ba
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=nullptr, int orientation=0)
 
 ~QmitkPointListWidget () override
 
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...
 

Protected Slots

void OnBtnSavePoints ()
 
void OnBtnLoadPoints ()
 
void RemoveSelectedPoint ()
 
void MoveSelectedPointDown ()
 
void MoveSelectedPointUp ()
 
void OnBtnAddPoint (bool checked)
 
void OnBtnAddPointManually ()
 
void OnTimeStepChanged (int timeStep)
 
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
 
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
 
QLabel * m_TimeStepDisplay
 
QLabel * m_TimeStepLabel
 
mitk::DataInteractor::Pointer m_DataInteractor
 
int m_TimeStep
 
bool m_EditAllowed
 
unsigned long m_NodeObserverTag
 
QmitkPointListModelm_PointListModel
 

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 49 of file QmitkPointListWidget.h.

Constructor & Destructor Documentation

◆ QmitkPointListWidget()

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

◆ ~QmitkPointListWidget()

QmitkPointListWidget::~QmitkPointListWidget ( )
override

Member Function Documentation

◆ AddSliceNavigationController()

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 471 of file QmitkPointListWidget.cpp.

References QmitkPointListView::AddSliceNavigationController(), and m_PointListView.

◆ DeactivateInteractor

void QmitkPointListWidget::DeactivateInteractor ( bool  deactivate)
slot

Definition at line 399 of file QmitkPointListWidget.cpp.

◆ EditPointSets

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().

◆ EnableEditButton

void QmitkPointListWidget::EnableEditButton ( bool  enabled)
slot

Definition at line 403 of file QmitkPointListWidget.cpp.

References m_EditAllowed, m_ToggleAddPoint, and OnBtnAddPoint().

◆ GetPointSet()

mitk::PointSet * QmitkPointListWidget::GetPointSet ( )

Definition at line 280 of file QmitkPointListWidget.cpp.

References m_PointSetNode.

Referenced by OnBtnAddPointManually().

◆ GetPointSetNode()

mitk::DataNode * QmitkPointListWidget::GetPointSetNode ( )

Definition at line 285 of file QmitkPointListWidget.cpp.

References m_PointSetNode.

◆ MoveSelectedPointDown

void QmitkPointListWidget::MoveSelectedPointDown ( )
protectedslot

◆ MoveSelectedPointUp

void QmitkPointListWidget::MoveSelectedPointUp ( )
protectedslot

◆ ObserveNewNode()

◆ OnBtnAddPoint

void QmitkPointListWidget::OnBtnAddPoint ( bool  checked)
protectedslot

◆ OnBtnAddPointManually

void QmitkPointListWidget::OnBtnAddPointManually ( )
protectedslot

◆ OnBtnLoadPoints

void QmitkPointListWidget::OnBtnLoadPoints ( )
protectedslot

◆ OnBtnSavePoints

void QmitkPointListWidget::OnBtnSavePoints ( )
protectedslot

Definition at line 219 of file QmitkPointListWidget.cpp.

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

Referenced by SetupConnections().

◆ OnListDoubleClick

void QmitkPointListWidget::OnListDoubleClick ( )
protectedslot

Definition at line 390 of file QmitkPointListWidget.cpp.

Referenced by SetupConnections().

◆ OnNodeDeleted()

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

◆ OnPointSelectionChanged

void QmitkPointListWidget::OnPointSelectionChanged ( )
protectedslot

pass through signal from PointListView that point selection has changed

Definition at line 394 of file QmitkPointListWidget.cpp.

References PointSelectionChanged().

Referenced by SetupConnections().

◆ OnTimeStepChanged

void QmitkPointListWidget::OnTimeStepChanged ( int  timeStep)
protectedslot

Definition at line 85 of file QmitkPointListWidget.cpp.

References m_TimeStepLabel.

Referenced by SetupConnections(), and SetupUi().

◆ PointListChanged

void QmitkPointListWidget::PointListChanged ( )
signal

signal to inform about cleared or loaded point sets

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

◆ PointSelectionChanged

void QmitkPointListWidget::PointSelectionChanged ( )
signal

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

Referenced by OnPointSelectionChanged().

◆ RemoveSelectedPoint

void QmitkPointListWidget::RemoveSelectedPoint ( )
protectedslot

◆ RemoveSliceNavigationController()

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 476 of file QmitkPointListWidget.cpp.

References m_PointListView, and QmitkPointListView::RemoveSliceNavigationController().

◆ SetMultiWidget()

void QmitkPointListWidget::SetMultiWidget ( QmitkStdMultiWidget multiWidget)

assign a QmitkStdMultiWidget for updating render window crosshair

Definition at line 290 of file QmitkPointListWidget.cpp.

References m_PointListView, and QmitkPointListView::SetMultiWidget().

◆ SetPointSet()

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

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

Definition at line 200 of file QmitkPointListWidget.cpp.

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

Referenced by OnBtnLoadPoints().

◆ SetPointSetNode()

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

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

Definition at line 210 of file QmitkPointListWidget.cpp.

References m_DataInteractor, m_PointListView, and ObserveNewNode().

Referenced by SetPointSet().

◆ SetupConnections()

◆ SetupUi()

◆ UnselectEditButton()

void QmitkPointListWidget::UnselectEditButton ( )

Unselects the edit button if it is selected.

Definition at line 481 of file QmitkPointListWidget.cpp.

References m_ToggleAddPoint.

Member Data Documentation

◆ m_AddPoint

QPushButton* QmitkPointListWidget::m_AddPoint
protected

Definition at line 140 of file QmitkPointListWidget.h.

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

◆ m_DataInteractor

mitk::DataInteractor::Pointer QmitkPointListWidget::m_DataInteractor
protected

◆ m_EditAllowed

bool QmitkPointListWidget::m_EditAllowed
protected

Definition at line 146 of file QmitkPointListWidget.h.

Referenced by EnableEditButton(), and ObserveNewNode().

◆ m_LoadPointsBtn

QPushButton* QmitkPointListWidget::m_LoadPointsBtn
protected

Definition at line 138 of file QmitkPointListWidget.h.

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

◆ m_MovePointDownBtn

QPushButton* QmitkPointListWidget::m_MovePointDownBtn
protected

Definition at line 135 of file QmitkPointListWidget.h.

Referenced by SetupConnections(), and SetupUi().

◆ m_MovePointUpBtn

QPushButton* QmitkPointListWidget::m_MovePointUpBtn
protected

Definition at line 134 of file QmitkPointListWidget.h.

Referenced by SetupConnections(), and SetupUi().

◆ m_NodeObserverTag

unsigned long QmitkPointListWidget::m_NodeObserverTag
protected

Definition at line 147 of file QmitkPointListWidget.h.

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

◆ m_Orientation

int QmitkPointListWidget::m_Orientation
protected

Definition at line 132 of file QmitkPointListWidget.h.

Referenced by QmitkPointListWidget(), and SetupUi().

◆ m_PointListModel

QmitkPointListModel* QmitkPointListWidget::m_PointListModel
protected

Definition at line 149 of file QmitkPointListWidget.h.

◆ m_PointListView

◆ m_PointSetNode

◆ m_RemovePointBtn

QPushButton* QmitkPointListWidget::m_RemovePointBtn
protected

Definition at line 136 of file QmitkPointListWidget.h.

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

◆ m_SavePointsBtn

QPushButton* QmitkPointListWidget::m_SavePointsBtn
protected

Definition at line 137 of file QmitkPointListWidget.h.

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

◆ m_TimeStep

int QmitkPointListWidget::m_TimeStep
protected

Definition at line 145 of file QmitkPointListWidget.h.

Referenced by OnBtnAddPointManually().

◆ m_TimeStepDisplay

QLabel* QmitkPointListWidget::m_TimeStepDisplay
protected

Definition at line 141 of file QmitkPointListWidget.h.

Referenced by SetupUi().

◆ m_TimeStepLabel

QLabel* QmitkPointListWidget::m_TimeStepLabel
protected

Definition at line 142 of file QmitkPointListWidget.h.

Referenced by OnTimeStepChanged(), and SetupUi().

◆ m_ToggleAddPoint

QPushButton* QmitkPointListWidget::m_ToggleAddPoint
protected

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