Medical Imaging Interaction Toolkit  2016.11.0
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...
 

Public Member Functions

 QmitkPointListView (QWidget *parent=0)
 
 ~QmitkPointListView ()
 
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 SetTimesStep (int i)
 which time step to display/model More...
 
void AddSliceNavigationController (mitk::SliceNavigationController *snc)
 Add a mitk::SliceNavigationController instance. More...
 
void RemoveSliceNavigationController (mitk::SliceNavigationController *snc)
 Remove a mitk::SliceNavigationController instance. 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 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 fadeTimeStepOut ()
 fade the shown timestep out 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...
 
void fadeTimeStepIn ()
 fade a label with the currently shown timestep in More...
 

Protected Attributes

mitk::SliceNavigationControllerm_Snc1
 
mitk::SliceNavigationControllerm_Snc2
 
mitk::SliceNavigationControllerm_Snc3
 
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...
 
QLabel * m_TimeStepFaderLabel
 

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

Constructor & Destructor Documentation

QmitkPointListView::QmitkPointListView ( QWidget *  parent = 0)
QmitkPointListView::~QmitkPointListView ( )

Definition at line 72 of file QmitkPointListView.cpp.

References m_PointListModel.

Member Function Documentation

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 396 of file QmitkPointListView.cpp.

References m_Sncs.

Referenced by QmitkPointListWidget::AddSliceNavigationController(), QmitkPointListWidget::SetSnc1(), QmitkPointListWidget::SetSnc2(), and QmitkPointListWidget::SetSnc3().

void QmitkPointListView::ClearPointList ( )
protectedslot
void QmitkPointListView::ClearPointListTS ( )
protectedslot

delete all points in the list in the current timestep

Definition at line 377 of file QmitkPointListView.cpp.

Referenced by ctxMenu().

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

open ContextMenu

Definition at line 311 of file QmitkPointListView.cpp.

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

Referenced by QmitkPointListView().

void QmitkPointListView::fadeTimeStepIn ( )
protected

fade a label with the currently shown timestep in

Definition at line 270 of file QmitkPointListView.cpp.

References fadeTimeStepOut(), QmitkPointListModel::GetTimeStep(), m_PointListModel, and m_TimeStepFaderLabel.

Referenced by wheelEvent().

void QmitkPointListView::fadeTimeStepOut ( )
protectedslot

fade the shown timestep out

Definition at line 306 of file QmitkPointListView.cpp.

References m_TimeStepFaderLabel.

Referenced by fadeTimeStepIn().

QmitkStdMultiWidget * QmitkPointListView::GetMultiWidget ( ) const

return the QmitkStdMultiWidget that is used for updating render window crosshair

Definition at line 92 of file QmitkPointListView.cpp.

References m_MultiWidget.

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

which point set to work on

Definition at line 82 of file QmitkPointListView.cpp.

References QmitkPointListModel::GetPointSet(), and m_PointListModel.

void QmitkPointListView::keyPressEvent ( QKeyEvent *  e)
overrideprotected
void QmitkPointListView::OnPointDoubleClicked ( const QModelIndex &  index)
protectedslot

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

Definition at line 97 of file QmitkPointListView.cpp.

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

Referenced by QmitkPointListView().

void QmitkPointListView::OnPointSetSelectionChanged ( )
protectedslot
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 403 of file QmitkPointListView.cpp.

References m_Sncs.

Referenced by QmitkPointListWidget::RemoveSliceNavigationController(), QmitkPointListWidget::SetSnc1(), QmitkPointListWidget::SetSnc2(), and QmitkPointListWidget::SetSnc3().

void QmitkPointListView::SetFading ( bool  onOff)
protectedslot

Turn TimeStep Fading On/Off.

Definition at line 338 of file QmitkPointListView.cpp.

References m_showFading.

Referenced by ctxMenu().

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 87 of file QmitkPointListView.cpp.

References m_MultiWidget.

Referenced by QmitkPointListWidget::SetMultiWidget().

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

assign a point set for observation

Definition at line 77 of file QmitkPointListView.cpp.

References m_PointListModel, and QmitkPointListModel::SetPointSetNode().

Referenced by QmitkPointListWidget::OnNodeDeleted().

void QmitkPointListView::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 381 of file QmitkPointListView.cpp.

References m_Snc1.

void QmitkPointListView::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 386 of file QmitkPointListView.cpp.

References m_Snc2.

void QmitkPointListView::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 391 of file QmitkPointListView.cpp.

References m_Snc3.

void QmitkPointListView::SetTimesStep ( int  i)

which time step to display/model

void QmitkPointListView::SignalPointSelectionChanged ( )
signal

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

Referenced by OnListViewSelectionChanged(), and OnPointSetSelectionChanged().

void QmitkPointListView::wheelEvent ( QWheelEvent *  event)
overrideprotected

Member Data Documentation

QmitkStdMultiWidget* QmitkPointListView::m_MultiWidget
protected

used to position the planes on a selected point

Definition at line 143 of file QmitkPointListView.h.

Referenced by GetMultiWidget(), OnListViewSelectionChanged(), and SetMultiWidget().

bool QmitkPointListView::m_SelfCall
protected

Definition at line 139 of file QmitkPointListView.h.

Referenced by OnListViewSelectionChanged(), and OnPointSetSelectionChanged().

bool QmitkPointListView::m_showFading
protected

Definition at line 140 of file QmitkPointListView.h.

Referenced by SetFading().

mitk::SliceNavigationController* QmitkPointListView::m_Snc1
protected

Definition at line 132 of file QmitkPointListView.h.

Referenced by OnListViewSelectionChanged(), and SetSnc1().

mitk::SliceNavigationController* QmitkPointListView::m_Snc2
protected

Definition at line 133 of file QmitkPointListView.h.

Referenced by OnListViewSelectionChanged(), and SetSnc2().

mitk::SliceNavigationController* QmitkPointListView::m_Snc3
protected

Definition at line 134 of file QmitkPointListView.h.

Referenced by OnListViewSelectionChanged(), and SetSnc3().

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

Definition at line 144 of file QmitkPointListView.h.

Referenced by fadeTimeStepIn(), fadeTimeStepOut(), and QmitkPointListView().


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