Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 (QmitkStdMultiWidget *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...
 
QmitkStdMultiWidgetGetMultiWidget () const
 return the QmitkStdMultiWidget that is used for updating 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
 
QmitkStdMultiWidgetm_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 QmitkStdMultiWidget is assigned via SetMultiWidget(), the crosshair of the QmitkStdMultiWidget is moved to the currently selected point.

Definition at line 36 of file QmitkPointListView.h.

Constructor & Destructor Documentation

◆ QmitkPointListView()

QmitkPointListView::QmitkPointListView ( QWidget *  parent = nullptr)

◆ ~QmitkPointListView()

QmitkPointListView::~QmitkPointListView ( )
override

Definition at line 62 of file QmitkPointListView.cpp.

References m_PointListModel.

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.

Definition at line 322 of file QmitkPointListView.cpp.

References m_Sncs.

Referenced by QmitkPointListWidget::AddSliceNavigationController(), and SetMultiWidget().

◆ ClearPointList

void QmitkPointListView::ClearPointList ( )
protectedslot

◆ ClearPointListTS

void QmitkPointListView::ClearPointListTS ( )
protectedslot

delete all points in the list in the current timestep

Definition at line 318 of file QmitkPointListView.cpp.

Referenced by ctxMenu().

◆ ctxMenu

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

open ContextMenu

Definition at line 252 of file QmitkPointListView.cpp.

References ClearPointList(), ClearPointListTS(), menu, and SetFading().

Referenced by QmitkPointListView().

◆ GetMultiWidget()

QmitkStdMultiWidget * QmitkPointListView::GetMultiWidget ( ) const

return the QmitkStdMultiWidget that is used for updating render window crosshair

Definition at line 88 of file QmitkPointListView.cpp.

References m_MultiWidget.

◆ GetPointSet()

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

which point set to work on

Definition at line 72 of file QmitkPointListView.cpp.

References QmitkPointListModel::GetPointSet(), and m_PointListModel.

◆ keyPressEvent()

void QmitkPointListView::keyPressEvent ( QKeyEvent *  e)
overrideprotected

◆ OnListViewSelectionChanged

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

◆ OnPointDoubleClicked

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

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

Definition at line 93 of file QmitkPointListView.cpp.

References QmitkPointListModel::GetPointForModelIndex(), QmitkPointListModel::GetPointSet(), QmitkPointListModel::GetTimeStep(), m_PointListModel, and QmitkEditPointDialog::SetPoint().

Referenced by QmitkPointListView().

◆ OnPointSetSelectionChanged

void QmitkPointListView::OnPointSetSelectionChanged ( )
protectedslot

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

Definition at line 329 of file QmitkPointListView.cpp.

References m_Sncs.

Referenced by QmitkPointListWidget::RemoveSliceNavigationController().

◆ SetFading

void QmitkPointListView::SetFading ( bool  onOff)
protectedslot

Turn TimeStep Fading On/Off.

Definition at line 279 of file QmitkPointListView.cpp.

References m_showFading.

Referenced by ctxMenu().

◆ SetMultiWidget()

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

Definition at line 77 of file QmitkPointListView.cpp.

References AddSliceNavigationController(), QmitkStdMultiWidget::GetRenderWindow1(), QmitkStdMultiWidget::GetRenderWindow2(), QmitkStdMultiWidget::GetRenderWindow3(), mitk::RenderWindowBase::GetSliceNavigationController(), and m_MultiWidget.

Referenced by QmitkPointListWidget::SetMultiWidget().

◆ SetPointSetNode()

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

assign a point set for observation

Definition at line 67 of file QmitkPointListView.cpp.

References m_PointListModel, and QmitkPointListModel::SetPointSetNode().

Referenced by QmitkPointListWidget::OnNodeDeleted().

◆ SignalPointSelectionChanged

void QmitkPointListView::SignalPointSelectionChanged ( )
signal

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

Referenced by OnListViewSelectionChanged(), and OnPointSetSelectionChanged().

◆ SignalTimeStepChanged

void QmitkPointListView::SignalTimeStepChanged ( int  )
signal

Referenced by wheelEvent().

◆ wheelEvent()

void QmitkPointListView::wheelEvent ( QWheelEvent *  event)
overrideprotected

Member Data Documentation

◆ m_MultiWidget

QmitkStdMultiWidget* QmitkPointListView::m_MultiWidget
protected

used to position the planes on a selected point

Definition at line 117 of file QmitkPointListView.h.

Referenced by GetMultiWidget(), and SetMultiWidget().

◆ m_PointListModel

◆ m_SelfCall

bool QmitkPointListView::m_SelfCall
protected

Definition at line 113 of file QmitkPointListView.h.

Referenced by OnListViewSelectionChanged(), and OnPointSetSelectionChanged().

◆ m_showFading

bool QmitkPointListView::m_showFading
protected

Definition at line 114 of file QmitkPointListView.h.

Referenced by SetFading().

◆ m_Sncs

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

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