Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkPointListViewWidget Class Reference

GUI widget for handling mitk::PointSet. More...

#include <QmitkPointListViewWidget.h>

Inheritance diagram for QmitkPointListViewWidget:
Collaboration diagram for QmitkPointListViewWidget:

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::PointSetGetPointSet () const
 which point set to work on More...
 
void SetMultiWidget (QmitkStdMultiWidget *multiWidget)
 assign a QmitkStdMultiWidget for updating render window crosshair More...
 
QmitkStdMultiWidgetGetMultiWidget () 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::PointSetm_PointSet
 
int m_TimeStep
 
bool m_SelfCall
 
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 40 of file QmitkPointListViewWidget.h.

Constructor & Destructor Documentation

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().

Member Function Documentation

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.

void QmitkPointListViewWidget::keyPressEvent ( QKeyEvent *  e)
overrideprotected
void QmitkPointListViewWidget::OnCurrentRowChanged ( int  )
protectedslot

called when the selection of the view widget changes

Definition at line 116 of file QmitkPointListViewWidget.cpp.

References Update().

Referenced by QmitkPointListViewWidget().

void QmitkPointListViewWidget::OnItemDoubleClicked ( QListWidgetItem *  item)
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().

void QmitkPointListViewWidget::PointSelectionChanged ( )
signal

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

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::SetTimeStep ( int  t)

which time step to display/model

Definition at line 76 of file QmitkPointListViewWidget.cpp.

References m_TimeStep, and Update().

Member Data Documentation

QmitkStdMultiWidget* QmitkPointListViewWidget::m_MultiWidget
protected

used to position the planes on a selected point

Definition at line 97 of file QmitkPointListViewWidget.h.

Referenced by GetMultiWidget(), and SetMultiWidget().

bool QmitkPointListViewWidget::m_SelfCall
protected

Definition at line 94 of file QmitkPointListViewWidget.h.

Referenced by OnPointSetChanged(), and Update().

int QmitkPointListViewWidget::m_TimeStep
protected

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