Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
GUI widget for handling mitk::PointSet. More...
#include <QmitkPointListView.h>
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::PointSet * | GetPointSet () 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... | |
QmitkStdMultiWidget * | GetMultiWidget () 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 |
QmitkPointListModel * | m_PointListModel |
bool | m_SelfCall |
bool | m_showFading |
QmitkStdMultiWidget * | m_MultiWidget |
used to position the planes on a selected point More... | |
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.
QmitkPointListView::QmitkPointListView | ( | QWidget * | parent = nullptr | ) |
Definition at line 28 of file QmitkPointListView.cpp.
References ctxMenu(), m_PointListModel, OnListViewSelectionChanged(), OnPointDoubleClicked(), and OnPointSetSelectionChanged().
|
override |
Definition at line 62 of file QmitkPointListView.cpp.
References m_PointListModel.
void QmitkPointListView::AddSliceNavigationController | ( | mitk::SliceNavigationController * | snc | ) |
Add a mitk::SliceNavigationController instance.
snc | The 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().
|
protectedslot |
Delete all points in the list.
Definition at line 284 of file QmitkPointListView.cpp.
References mitk::RenderingManager::GetInstance(), QmitkPointListModel::GetPointSet(), m_PointListModel, QmitkPointListModel::RemoveSelectedPoint(), and mitk::RenderingManager::RequestUpdateAll().
Referenced by ctxMenu().
|
protectedslot |
delete all points in the list in the current timestep
Definition at line 318 of file QmitkPointListView.cpp.
Referenced by ctxMenu().
|
protectedslot |
open ContextMenu
Definition at line 252 of file QmitkPointListView.cpp.
References ClearPointList(), ClearPointListTS(), menu, and SetFading().
Referenced by QmitkPointListView().
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.
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.
|
overrideprotected |
react to F2, F3 and DEL keys
Definition at line 194 of file QmitkPointListView.cpp.
References mitk::Key_Delete, mitk::Key_F2, mitk::Key_F3, m_PointListModel, QmitkPointListModel::MoveSelectedPointDown(), QmitkPointListModel::MoveSelectedPointUp(), and QmitkPointListModel::RemoveSelectedPoint().
|
protectedslot |
called when the selection of the view widget changes
Definition at line 138 of file QmitkPointListView.cpp.
References mitk::RenderingManager::GetInstance(), QmitkPointListModel::GetModelIndexForPointID(), mitk::PointSet::GetPoint(), QmitkPointListModel::GetPointSet(), mitk::PointSet::GetPointSet(), QmitkPointListModel::GetTimeStep(), m_PointListModel, m_SelfCall, m_Sncs, mitk::RenderingManager::RequestUpdateAll(), mitk::PointSet::SetSelectInfo(), and SignalPointSelectionChanged().
Referenced by QmitkPointListView().
|
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().
|
protectedslot |
called when the point set data structure changes
Definition at line 103 of file QmitkPointListView.cpp.
References QmitkPointListModel::GetModelIndexForPointID(), mitk::PointSet::GetNumberOfSelected(), QmitkPointListModel::GetPointSet(), QmitkPointListModel::GetTimeStep(), m_PointListModel, m_SelfCall, MITK_ERROR, mitk::PointSet::SearchSelectedPoint(), and SignalPointSelectionChanged().
Referenced by QmitkPointListView().
void QmitkPointListView::RemoveSliceNavigationController | ( | mitk::SliceNavigationController * | snc | ) |
Remove a mitk::SliceNavigationController instance.
snc | The 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().
|
protectedslot |
Turn TimeStep Fading On/Off.
Definition at line 279 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 77 of file QmitkPointListView.cpp.
References AddSliceNavigationController(), QmitkStdMultiWidget::GetRenderWindow1(), QmitkStdMultiWidget::GetRenderWindow2(), QmitkStdMultiWidget::GetRenderWindow3(), mitk::RenderWindowBase::GetSliceNavigationController(), and m_MultiWidget.
Referenced by QmitkPointListWidget::SetMultiWidget().
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().
|
signal |
this signal is emmitted, if the selection of a point in the pointset is changed
Referenced by OnListViewSelectionChanged(), and OnPointSetSelectionChanged().
|
signal |
Referenced by wheelEvent().
|
overrideprotected |
change timestep of the current pointset by mouse wheel
Definition at line 217 of file QmitkPointListView.cpp.
References QmitkPointListModel::GetPointSet(), QmitkPointListModel::GetTimeStep(), mitk::BaseData::GetTimeSteps(), m_PointListModel, QmitkPointListModel::SetTimeStep(), and SignalTimeStepChanged().
|
protected |
used to position the planes on a selected point
Definition at line 117 of file QmitkPointListView.h.
Referenced by GetMultiWidget(), and SetMultiWidget().
|
protected |
Definition at line 112 of file QmitkPointListView.h.
Referenced by ClearPointList(), GetPointSet(), keyPressEvent(), OnListViewSelectionChanged(), OnPointDoubleClicked(), OnPointSetSelectionChanged(), QmitkPointListView(), SetPointSetNode(), wheelEvent(), and ~QmitkPointListView().
|
protected |
Definition at line 113 of file QmitkPointListView.h.
Referenced by OnListViewSelectionChanged(), and OnPointSetSelectionChanged().
|
protected |
Definition at line 114 of file QmitkPointListView.h.
Referenced by SetFading().
|
protected |
Definition at line 110 of file QmitkPointListView.h.
Referenced by AddSliceNavigationController(), OnListViewSelectionChanged(), and RemoveSliceNavigationController().