Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkPointListView Class Reference

GUI widget for displaying and interacting with a mitk::PointSet. More...

#include <QmitkPointListView.h>

Inheritance diagram for QmitkPointListView:
Collaboration diagram for QmitkPointListView:

Signals

void SignalPointSelectionChanged ()
 Emitted when the point selection changes in the point set. More...
 
void SignalTimeStepChanged (int timeStep)
 Emitted when the time step changes via mouse wheel. More...
 

Public Member Functions

 QmitkPointListView (QWidget *parent=nullptr)
 Construct the point list view. More...
 
 ~QmitkPointListView () override
 Destructor. More...
 
void SetPointSetNode (mitk::DataNode *pointSetNode)
 Set the data node containing the point set to display. More...
 
const mitk::PointSet * GetPointSet () const
 Get the displayed point set. More...
 
void SetMultiWidget (QmitkAbstractMultiWidget *multiWidget)
 Set a multi widget for automatic crosshair centering on selected points. More...
 
QmitkAbstractMultiWidget * GetMultiWidget () const
 Get the currently assigned multi widget. More...
 
void AddSliceNavigationController (mitk::SliceNavigationController *snc)
 Add a slice navigation controller for point-based crosshair navigation. More...
 
void RemoveSliceNavigationController (mitk::SliceNavigationController *snc)
 Remove a slice navigation controller. More...
 

Protected Slots

void OnPointDoubleClicked (const QModelIndex &index)
 Filtering double click event for editing point coordinates via a dialog. More...
 
void OnPointSetSelectionChanged ()
 called when the point set data structure changes More...
 
void OnListViewSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 called when the selection of the view widget changes More...
 
void ctxMenu (const QPoint &pos)
 open ContextMenu More...
 
void SetFading (bool onOff)
 Turn TimeStep Fading On/Off. More...
 
void ClearPointList ()
 Delete all points in the list. More...
 
void ClearPointListTS ()
 delete all points in the list in the current timestep More...
 

Protected Member Functions

void keyPressEvent (QKeyEvent *e) override
 react to F2, F3 and DEL keys More...
 
void wheelEvent (QWheelEvent *event) override
 change timestep of the current pointset by mouse wheel More...
 

Protected Attributes

std::set< mitk::SliceNavigationController * > m_Sncs
 
QmitkPointListModel * m_PointListModel
 
bool m_SelfCall
 
bool m_showFading
 
QmitkAbstractMultiWidget * m_MultiWidget
 used to position the planes on a selected point More...
 

Detailed Description

GUI widget for displaying and interacting with a mitk::PointSet.

Displays all points in a mitk::PointSet as a list view. Automatically reacts to changes in the PointSet's selection status and updates the PointSet's selection when the list selection changes. Double-clicking a point opens a QmitkEditPointDialog for coordinate editing.

If a QmitkAbstractMultiWidget is assigned via SetMultiWidget(), or SliceNavigationControllers are added, the crosshair navigates to the selected point. The mouse wheel changes the displayed time step.

Key bindings: F2 moves point up, F3 moves point down, Delete removes the point.

See also
QmitkPointListModel, QmitkPointListWidget, QmitkEditPointDialog

Definition at line 42 of file QmitkPointListView.h.

Constructor & Destructor Documentation

◆ QmitkPointListView()

QmitkPointListView::QmitkPointListView ( QWidget *  parent = nullptr)

Construct the point list view.

Parameters
[in]parentThe parent widget.

◆ ~QmitkPointListView()

QmitkPointListView::~QmitkPointListView ( )
override

Destructor.

Member Function Documentation

◆ AddSliceNavigationController()

void QmitkPointListView::AddSliceNavigationController ( mitk::SliceNavigationController *  snc)

Add a slice navigation controller for point-based crosshair navigation.

Parameters
[in]sncThe mitk::SliceNavigationController to add. Ignored if nullptr.

◆ ClearPointList

void QmitkPointListView::ClearPointList ( )
protectedslot

Delete all points in the list.

◆ ClearPointListTS

void QmitkPointListView::ClearPointListTS ( )
protectedslot

delete all points in the list in the current timestep

◆ ctxMenu

void QmitkPointListView::ctxMenu ( const QPoint &  pos)
protectedslot

open ContextMenu

◆ GetMultiWidget()

QmitkAbstractMultiWidget* QmitkPointListView::GetMultiWidget ( ) const

Get the currently assigned multi widget.

Returns
Pointer to the QmitkAbstractMultiWidget, or nullptr.

◆ GetPointSet()

const mitk::PointSet* QmitkPointListView::GetPointSet ( ) const

Get the displayed point set.

Returns
Const pointer to the mitk::PointSet, or nullptr.

◆ keyPressEvent()

void QmitkPointListView::keyPressEvent ( QKeyEvent *  e)
overrideprotected

react to F2, F3 and DEL keys

◆ OnListViewSelectionChanged

void QmitkPointListView::OnListViewSelectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
protectedslot

called when the selection of the view widget changes

◆ OnPointDoubleClicked

void QmitkPointListView::OnPointDoubleClicked ( const QModelIndex &  index)
protectedslot

Filtering double click event for editing point coordinates via a dialog.

◆ OnPointSetSelectionChanged

void QmitkPointListView::OnPointSetSelectionChanged ( )
protectedslot

called when the point set data structure changes

◆ RemoveSliceNavigationController()

void QmitkPointListView::RemoveSliceNavigationController ( mitk::SliceNavigationController *  snc)

Remove a slice navigation controller.

Parameters
[in]sncThe mitk::SliceNavigationController to remove. Ignored if nullptr.

◆ SetFading

void QmitkPointListView::SetFading ( bool  onOff)
protectedslot

Turn TimeStep Fading On/Off.

◆ SetMultiWidget()

void QmitkPointListView::SetMultiWidget ( QmitkAbstractMultiWidget *  multiWidget)

Set a multi widget for automatic crosshair centering on selected points.

When set, all render windows of the multi widget are registered as slice navigation controllers for point-based navigation.

Parameters
[in]multiWidgetThe multi widget to use, or nullptr to clear.

◆ SetPointSetNode()

void QmitkPointListView::SetPointSetNode ( mitk::DataNode *  pointSetNode)

Set the data node containing the point set to display.

Parameters
[in]pointSetNodeThe data node with a mitk::PointSet.

◆ SignalPointSelectionChanged

void QmitkPointListView::SignalPointSelectionChanged ( )
signal

Emitted when the point selection changes in the point set.

◆ SignalTimeStepChanged

void QmitkPointListView::SignalTimeStepChanged ( int  timeStep)
signal

Emitted when the time step changes via mouse wheel.

Parameters
[in]timeStepThe new time step index.

◆ wheelEvent()

void QmitkPointListView::wheelEvent ( QWheelEvent *  event)
overrideprotected

change timestep of the current pointset by mouse wheel

Member Data Documentation

◆ m_MultiWidget

QmitkAbstractMultiWidget* QmitkPointListView::m_MultiWidget
protected

used to position the planes on a selected point

Definition at line 140 of file QmitkPointListView.h.

◆ m_PointListModel

QmitkPointListModel* QmitkPointListView::m_PointListModel
protected

Definition at line 135 of file QmitkPointListView.h.

◆ m_SelfCall

bool QmitkPointListView::m_SelfCall
protected

Definition at line 136 of file QmitkPointListView.h.

◆ m_showFading

bool QmitkPointListView::m_showFading
protected

Definition at line 137 of file QmitkPointListView.h.

◆ m_Sncs

std::set<mitk::SliceNavigationController *> QmitkPointListView::m_Sncs
protected

Definition at line 133 of file QmitkPointListView.h.


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