Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
GUI widget for handling mitk::PointSet. More...
#include <QmitkPointListViewWidget.h>
Signals | |
void | PointSelectionChanged () |
this signal is emmitted, if the selection of a point in the pointset is changed More... | |
Public Member Functions | |
QmitkPointListViewWidget (QWidget *parent=0) | |
~QmitkPointListViewWidget () | |
void | SetPointSet (mitk::PointSet *pointSet) |
assign a point set for observation More... | |
const mitk::PointSet * | GetPointSet () const |
which point set to work on More... | |
void | SetMultiWidget (QmitkStdMultiWidget *multiWidget) |
assign a QmitkStdMultiWidget for updating render window crosshair More... | |
QmitkStdMultiWidget * | GetMultiWidget () const |
return the QmitkStdMultiWidget that is used for updating render window crosshair More... | |
void | SetTimeStep (int t) |
which time step to display/model More... | |
int | GetTimeStep () const |
which time step to display/model More... | |
void | OnPointSetChanged (const itk::Object *) |
observer for point set "modified" events More... | |
void | OnPointSetDeleted (const itk::Object *) |
observer for point set "delete" events More... | |
Protected Slots | |
void | OnItemDoubleClicked (QListWidgetItem *item) |
void | OnCurrentRowChanged (int) |
called when the selection of the view widget changes More... | |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *e) override |
react to F2, F3 and DEL keys More... | |
void | MoveSelectedPointUp () |
void | MoveSelectedPointDown () |
void | RemoveSelectedPoint () |
void | Update (bool currentRowChanged=false) |
Protected Attributes | |
mitk::WeakPointer< mitk::PointSet > | m_PointSet |
int | m_TimeStep |
bool | m_SelfCall |
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 40 of file QmitkPointListViewWidget.h.
QmitkPointListViewWidget::QmitkPointListViewWidget | ( | QWidget * | parent = 0 | ) |
Definition at line 29 of file QmitkPointListViewWidget.cpp.
References OnCurrentRowChanged(), and OnItemDoubleClicked().
QmitkPointListViewWidget::~QmitkPointListViewWidget | ( | ) |
Definition at line 43 of file QmitkPointListViewWidget.cpp.
References SetPointSet().
QmitkStdMultiWidget * QmitkPointListViewWidget::GetMultiWidget | ( | ) | const |
return the QmitkStdMultiWidget that is used for updating render window crosshair
Definition at line 92 of file QmitkPointListViewWidget.cpp.
References m_MultiWidget.
const mitk::PointSet * QmitkPointListViewWidget::GetPointSet | ( | ) | const |
which point set to work on
Definition at line 71 of file QmitkPointListViewWidget.cpp.
References m_PointSet.
int QmitkPointListViewWidget::GetTimeStep | ( | ) | const |
which time step to display/model
Definition at line 82 of file QmitkPointListViewWidget.cpp.
References m_TimeStep.
|
overrideprotected |
react to F2, F3 and DEL keys
Definition at line 121 of file QmitkPointListViewWidget.cpp.
References mitk::WeakPointer< TObjectType >::IsNull(), mitk::Key_Delete, mitk::Key_F2, mitk::Key_F3, m_PointSet, MoveSelectedPointDown(), MoveSelectedPointUp(), and RemoveSelectedPoint().
|
protected |
Definition at line 156 of file QmitkPointListViewWidget.cpp.
References mitk::PointSet::ExecuteOperation(), mitk::RenderingManager::GetInstance(), mitk::PointSet::GetPoint(), mitk::WeakPointer< TObjectType >::IsNull(), m_PointSet, m_TimeStep, mitk::OpMOVEPOINTDOWN, mitk::RenderingManager::RequestUpdateAll(), and mitk::PointSet::SearchSelectedPoint().
Referenced by keyPressEvent().
|
protected |
Definition at line 143 of file QmitkPointListViewWidget.cpp.
References mitk::PointSet::ExecuteOperation(), mitk::RenderingManager::GetInstance(), mitk::PointSet::GetPoint(), mitk::WeakPointer< TObjectType >::IsNull(), m_PointSet, m_TimeStep, mitk::OpMOVEPOINTUP, mitk::RenderingManager::RequestUpdateAll(), and mitk::PointSet::SearchSelectedPoint().
Referenced by keyPressEvent().
|
protectedslot |
called when the selection of the view widget changes
Definition at line 116 of file QmitkPointListViewWidget.cpp.
References Update().
Referenced by QmitkPointListViewWidget().
|
protectedslot |
Filtering double click event for editing point coordinates via a dialog
Definition at line 109 of file QmitkPointListViewWidget.cpp.
References m_PointSet, m_TimeStep, and QmitkEditPointDialog::SetPoint().
Referenced by QmitkPointListViewWidget().
void QmitkPointListViewWidget::OnPointSetChanged | ( | const itk::Object * | ) |
observer for point set "modified" events
Definition at line 97 of file QmitkPointListViewWidget.cpp.
References m_SelfCall, and Update().
Referenced by SetPointSet().
void QmitkPointListViewWidget::OnPointSetDeleted | ( | const itk::Object * | ) |
observer for point set "delete" events
Definition at line 103 of file QmitkPointListViewWidget.cpp.
References SetPointSet(), and Update().
Referenced by SetPointSet().
|
signal |
this signal is emmitted, if the selection of a point in the pointset is changed
|
protected |
Definition at line 169 of file QmitkPointListViewWidget.cpp.
References mitk::PointSet::ExecuteOperation(), mitk::RenderingManager::GetInstance(), mitk::PointSet::GetPoint(), mitk::WeakPointer< TObjectType >::IsNull(), m_PointSet, m_TimeStep, mitk::OpREMOVE, mitk::RenderingManager::RequestUpdateAll(), and mitk::PointSet::SearchSelectedPoint().
Referenced by keyPressEvent().
void QmitkPointListViewWidget::SetMultiWidget | ( | QmitkStdMultiWidget * | multiWidget | ) |
assign a QmitkStdMultiWidget for updating render window crosshair
Definition at line 87 of file QmitkPointListViewWidget.cpp.
References m_MultiWidget.
void QmitkPointListViewWidget::SetPointSet | ( | mitk::PointSet * | pointSet | ) |
assign a point set for observation
Definition at line 48 of file QmitkPointListViewWidget.cpp.
References mitk::MessageBase< AbstractDelegate >::AddListener(), mitk::WeakPointer< TObjectType >::IsNotNull(), m_PointSet, mitk::WeakPointer< TObjectType >::ObjectDelete, mitk::WeakPointer< TObjectType >::ObjectModified, OnPointSetChanged(), OnPointSetDeleted(), mitk::MessageBase< AbstractDelegate >::RemoveListener(), and Update().
Referenced by OnPointSetDeleted(), and ~QmitkPointListViewWidget().
void QmitkPointListViewWidget::SetTimeStep | ( | int | t | ) |
which time step to display/model
Definition at line 76 of file QmitkPointListViewWidget.cpp.
References m_TimeStep, and Update().
|
protected |
use logging as soon as available
Definition at line 182 of file QmitkPointListViewWidget.cpp.
References mitk::PointSet::GetNumberOfSelected(), mitk::PointSet::GetPointSet(), mitk::WeakPointer< TObjectType >::IsNull(), m_PointSet, m_SelfCall, m_TimeStep, mitk::PointSet::SearchSelectedPoint(), and mitk::PointSet::SetSelectInfo().
Referenced by OnCurrentRowChanged(), OnPointSetChanged(), OnPointSetDeleted(), SetPointSet(), and SetTimeStep().
|
protected |
used to position the planes on a selected point
Definition at line 97 of file QmitkPointListViewWidget.h.
Referenced by GetMultiWidget(), and SetMultiWidget().
|
protected |
Definition at line 91 of file QmitkPointListViewWidget.h.
Referenced by GetPointSet(), keyPressEvent(), MoveSelectedPointDown(), MoveSelectedPointUp(), OnItemDoubleClicked(), RemoveSelectedPoint(), SetPointSet(), and Update().
|
protected |
Definition at line 94 of file QmitkPointListViewWidget.h.
Referenced by OnPointSetChanged(), and Update().
|
protected |
Definition at line 92 of file QmitkPointListViewWidget.h.
Referenced by GetTimeStep(), MoveSelectedPointDown(), MoveSelectedPointUp(), OnItemDoubleClicked(), RemoveSelectedPoint(), SetTimeStep(), and Update().