Medical Imaging Interaction Toolkit
2016.11.0
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... | |
Public Member Functions | |
QmitkPointListView (QWidget *parent=0) | |
~QmitkPointListView () | |
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 | 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::SliceNavigationController * | m_Snc1 |
mitk::SliceNavigationController * | m_Snc2 |
mitk::SliceNavigationController * | m_Snc3 |
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... | |
QLabel * | m_TimeStepFaderLabel |
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.
QmitkPointListView::QmitkPointListView | ( | QWidget * | parent = 0 | ) |
Definition at line 31 of file QmitkPointListView.cpp.
References ctxMenu(), m_PointListModel, m_TimeStepFaderLabel, OnListViewSelectionChanged(), OnPointDoubleClicked(), and OnPointSetSelectionChanged().
QmitkPointListView::~QmitkPointListView | ( | ) |
Definition at line 72 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 396 of file QmitkPointListView.cpp.
References m_Sncs.
Referenced by QmitkPointListWidget::AddSliceNavigationController(), QmitkPointListWidget::SetSnc1(), QmitkPointListWidget::SetSnc2(), and QmitkPointListWidget::SetSnc3().
|
protectedslot |
Delete all points in the list.
Definition at line 343 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 377 of file QmitkPointListView.cpp.
Referenced by ctxMenu().
|
protectedslot |
open ContextMenu
Definition at line 311 of file QmitkPointListView.cpp.
References ClearPointList(), ClearPointListTS(), menu, and SetFading().
Referenced by QmitkPointListView().
|
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().
|
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.
|
overrideprotected |
react to F2, F3 and DEL keys
Definition at line 212 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 142 of file QmitkPointListView.cpp.
References mitk::RenderingManager::GetInstance(), QmitkPointListModel::GetModelIndexForPointID(), mitk::PointSet::GetPoint(), QmitkPointListModel::GetPointSet(), mitk::PointSet::GetPointSet(), QmitkPointListModel::GetTimeStep(), m_MultiWidget, m_PointListModel, m_SelfCall, m_Snc1, m_Snc2, m_Snc3, m_Sncs, QmitkStdMultiWidget::MoveCrossToPosition(), mitk::RenderingManager::RequestUpdateAll(), mitk::SliceNavigationController::SelectSliceByPoint(), mitk::PointSet::SetSelectInfo(), and SignalPointSelectionChanged().
Referenced by QmitkPointListView().
|
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().
|
protectedslot |
called when the point set data structure changes
Definition at line 107 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 403 of file QmitkPointListView.cpp.
References m_Sncs.
Referenced by QmitkPointListWidget::RemoveSliceNavigationController(), QmitkPointListWidget::SetSnc1(), QmitkPointListWidget::SetSnc2(), and QmitkPointListWidget::SetSnc3().
|
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.
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.
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.
Definition at line 391 of file QmitkPointListView.cpp.
References m_Snc3.
void QmitkPointListView::SetTimesStep | ( | int | i | ) |
which time step to display/model
|
signal |
this signal is emmitted, if the selection of a point in the pointset is changed
Referenced by OnListViewSelectionChanged(), and OnPointSetSelectionChanged().
|
overrideprotected |
change timestep of the current pointset by mouse wheel
Definition at line 235 of file QmitkPointListView.cpp.
References fadeTimeStepIn(), QmitkPointListModel::GetPointSet(), QmitkPointListModel::GetTimeStep(), mitk::BaseData::GetTimeSteps(), m_PointListModel, and QmitkPointListModel::SetTimeStep().
|
protected |
used to position the planes on a selected point
Definition at line 143 of file QmitkPointListView.h.
Referenced by GetMultiWidget(), OnListViewSelectionChanged(), and SetMultiWidget().
|
protected |
Definition at line 138 of file QmitkPointListView.h.
Referenced by ClearPointList(), fadeTimeStepIn(), GetPointSet(), keyPressEvent(), OnListViewSelectionChanged(), OnPointDoubleClicked(), OnPointSetSelectionChanged(), QmitkPointListView(), SetPointSetNode(), wheelEvent(), and ~QmitkPointListView().
|
protected |
Definition at line 139 of file QmitkPointListView.h.
Referenced by OnListViewSelectionChanged(), and OnPointSetSelectionChanged().
|
protected |
Definition at line 140 of file QmitkPointListView.h.
Referenced by SetFading().
|
protected |
Definition at line 132 of file QmitkPointListView.h.
Referenced by OnListViewSelectionChanged(), and SetSnc1().
|
protected |
Definition at line 133 of file QmitkPointListView.h.
Referenced by OnListViewSelectionChanged(), and SetSnc2().
|
protected |
Definition at line 134 of file QmitkPointListView.h.
Referenced by OnListViewSelectionChanged(), and SetSnc3().
|
protected |
Definition at line 136 of file QmitkPointListView.h.
Referenced by AddSliceNavigationController(), OnListViewSelectionChanged(), and RemoveSliceNavigationController().
|
protected |
Definition at line 144 of file QmitkPointListView.h.
Referenced by fadeTimeStepIn(), fadeTimeStepOut(), and QmitkPointListView().