Medical Imaging Interaction Toolkit  2023.12.99-b884b24c
Medical Imaging Interaction Toolkit
QmitkPointListView Class Reference

GUI widget for handling mitk::PointSet. More...

#include <QmitkPointListView.h>

Inheritance diagram for QmitkPointListView:
Collaboration diagram for QmitkPointListView:

Signals

void SignalPointSelectionChanged ()
 this signal is emmitted, if the selection of a point in the pointset is changed More...
 
void SignalTimeStepChanged (int)
 

Public Member Functions

 QmitkPointListView (QWidget *parent=nullptr)
 
 ~QmitkPointListView () override
 
void SetPointSetNode (mitk::DataNode *pointSetNode)
 assign a point set for observation More...
 
const mitk::PointSetGetPointSet () const
 which point set to work on More...
 
void SetMultiWidget (QmitkAbstractMultiWidget *multiWidget)
 If Multiwidget is set, the crosshair is automatically centering to the selected point As an alternative, if you dont have a multiwidget, you can call SetSnc1, SetSnc2, SetSnc3 to set the SliceNavigationControllers directly to enable the focussing feature. More...
 
QmitkAbstractMultiWidgetGetMultiWidget () const
 Return the QmitkAbstractMultiWidget that is used for updating the render window crosshair. More...
 
void AddSliceNavigationController (mitk::SliceNavigationController *snc)
 Add a mitk::SliceNavigationController instance. More...
 
void RemoveSliceNavigationController (mitk::SliceNavigationController *snc)
 Remove a mitk::SliceNavigationController instance. 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
 
QmitkPointListModelm_PointListModel
 
bool m_SelfCall
 
bool m_showFading
 
QmitkAbstractMultiWidgetm_MultiWidget
 used to position the planes on a selected point More...
 

Detailed Description

GUI widget for handling mitk::PointSet.

Displays all the points in a mitk::PointSet graphically. Reacts automatically to changes in the PointSet's selection status. Updates PointSet's selection status when this list's selection changes.

If a QmitkAbstractMultiWidget is assigned via SetMultiWidget(), the crosshair of the QmitkAbstractMultiWidget is moved to the currently selected point.

Definition at line 38 of file QmitkPointListView.h.

Constructor & Destructor Documentation

◆ QmitkPointListView()

QmitkPointListView::QmitkPointListView ( QWidget *  parent = nullptr)

◆ ~QmitkPointListView()

QmitkPointListView::~QmitkPointListView ( )
override

Member Function Documentation

◆ AddSliceNavigationController()

void QmitkPointListView::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.

◆ 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

Return the QmitkAbstractMultiWidget that is used for updating the render window crosshair.

◆ GetPointSet()

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

which point set to work on

◆ 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 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.

◆ SetFading

void QmitkPointListView::SetFading ( bool  onOff)
protectedslot

Turn TimeStep Fading On/Off.

◆ SetMultiWidget()

void QmitkPointListView::SetMultiWidget ( QmitkAbstractMultiWidget multiWidget)

If Multiwidget is set, the crosshair is automatically centering to the selected point As an alternative, if you dont have a multiwidget, you can call SetSnc1, SetSnc2, SetSnc3 to set the SliceNavigationControllers directly to enable the focussing feature.

◆ SetPointSetNode()

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

assign a point set for observation

◆ SignalPointSelectionChanged

void QmitkPointListView::SignalPointSelectionChanged ( )
signal

this signal is emmitted, if the selection of a point in the pointset is changed

◆ SignalTimeStepChanged

void QmitkPointListView::SignalTimeStepChanged ( int  )
signal

◆ 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 121 of file QmitkPointListView.h.

◆ m_PointListModel

QmitkPointListModel* QmitkPointListView::m_PointListModel
protected

Definition at line 116 of file QmitkPointListView.h.

◆ m_SelfCall

bool QmitkPointListView::m_SelfCall
protected

Definition at line 117 of file QmitkPointListView.h.

◆ m_showFading

bool QmitkPointListView::m_showFading
protected

Definition at line 118 of file QmitkPointListView.h.

◆ m_Sncs

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

Definition at line 114 of file QmitkPointListView.h.


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