Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkPointListWidget Class Reference

Widget for regular operations on point sets. More...

#include <QmitkPointListWidget.h>

Inheritance diagram for QmitkPointListWidget:
Collaboration diagram for QmitkPointListWidget:

Public Slots

void DeactivateInteractor (bool deactivate)
 
void EnableEditButton (bool enabled)
 

Signals

void EditPointSets (bool active)
 signal to inform about the state of the EditPointSetButton, whether an interactor for setting points is active or not More...
 
void PointSelectionChanged ()
 signal to inform that the selection of a point in the pointset has changed More...
 
void PointListChanged ()
 signal to inform about cleared or loaded point sets More...
 

Public Member Functions

 QmitkPointListWidget (QWidget *parent=nullptr, int orientation=0)
 
 ~QmitkPointListWidget () override
 
void SetupConnections ()
 
void AddSliceNavigationController (mitk::SliceNavigationController *snc)
 Add a mitk::SliceNavigationController instance. More...
 
void RemoveSliceNavigationController (mitk::SliceNavigationController *snc)
 Remove a mitk::SliceNavigationController instance. More...
 
void SetPointSet (mitk::PointSet *newPs)
 assign a point set (contained in a node of DataStorage) for observation More...
 
mitk::PointSetGetPointSet ()
 
void SetPointSetNode (mitk::DataNode *newNode)
 assign a point set (contained in a node of DataStorage) for observation More...
 
mitk::DataNodeGetPointSetNode ()
 
void SetMultiWidget (QmitkAbstractMultiWidget *multiWidget)
 assign a QmitkAbstractMultiWidget for updating render window crosshair More...
 
void OnNodeDeleted (const itk::EventObject &e)
 itk observer for node "delete" events More...
 
void UnselectEditButton ()
 Unselects the edit button if it is selected. More...
 

Protected Slots

void OnBtnSavePoints ()
 
void OnBtnLoadPoints ()
 
void RemoveSelectedPoint ()
 
void MoveSelectedPointDown ()
 
void MoveSelectedPointUp ()
 
void OnBtnAddPoint (bool checked)
 
void OnBtnAddPointManually ()
 
void OnTimeStepChanged (int timeStep)
 
void OnPointSelectionChanged ()
 pass through signal from PointListView that point selection has changed More...
 
void OnListDoubleClick ()
 

Protected Member Functions

void SetupUi ()
 
void ObserveNewNode (mitk::DataNode *node)
 

Protected Attributes

QmitkPointListViewm_PointListView
 
mitk::DataNode::Pointer m_PointSetNode
 
int m_Orientation
 
QPushButton * m_MovePointUpBtn
 
QPushButton * m_MovePointDownBtn
 
QPushButton * m_RemovePointBtn
 
QPushButton * m_SavePointsBtn
 
QPushButton * m_LoadPointsBtn
 
QPushButton * m_ToggleAddPoint
 
QPushButton * m_AddPoint
 
QLabel * m_TimeStepDisplay
 
QLabel * m_TimeStepLabel
 
mitk::DataInteractor::Pointer m_DataInteractor
 
int m_TimeStep
 
bool m_EditAllowed
 
unsigned long m_NodeObserverTag
 
QmitkPointListModelm_PointListModel
 

Detailed Description

Widget for regular operations on point sets.

Displays a list of point coordinates and a couple of buttons which

  • enable point set interaction
  • clear all points from a set
  • load points from file
  • save points to file

The user/application module of this widget needs to assign a mitk::PointSet object to this widget. The user also has to decide whether it wants to put the point set into (a) DataStorage. This widget will not add/remove point sets to DataStorage.

If the render window crosshair should be moved to the currently selected point, the widget user has to provide a QmitkAbstractMultiWidget object.

Definition at line 51 of file QmitkPointListWidget.h.

Constructor & Destructor Documentation

◆ QmitkPointListWidget()

QmitkPointListWidget::QmitkPointListWidget ( QWidget *  parent = nullptr,
int  orientation = 0 
)

◆ ~QmitkPointListWidget()

QmitkPointListWidget::~QmitkPointListWidget ( )
override

Member Function Documentation

◆ AddSliceNavigationController()

void QmitkPointListWidget::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.

◆ DeactivateInteractor

void QmitkPointListWidget::DeactivateInteractor ( bool  deactivate)
slot

◆ EditPointSets

void QmitkPointListWidget::EditPointSets ( bool  active)
signal

signal to inform about the state of the EditPointSetButton, whether an interactor for setting points is active or not

◆ EnableEditButton

void QmitkPointListWidget::EnableEditButton ( bool  enabled)
slot

◆ GetPointSet()

mitk::PointSet* QmitkPointListWidget::GetPointSet ( )

◆ GetPointSetNode()

mitk::DataNode* QmitkPointListWidget::GetPointSetNode ( )

◆ MoveSelectedPointDown

void QmitkPointListWidget::MoveSelectedPointDown ( )
protectedslot

◆ MoveSelectedPointUp

void QmitkPointListWidget::MoveSelectedPointUp ( )
protectedslot

◆ ObserveNewNode()

void QmitkPointListWidget::ObserveNewNode ( mitk::DataNode node)
protected

◆ OnBtnAddPoint

void QmitkPointListWidget::OnBtnAddPoint ( bool  checked)
protectedslot

◆ OnBtnAddPointManually

void QmitkPointListWidget::OnBtnAddPointManually ( )
protectedslot

◆ OnBtnLoadPoints

void QmitkPointListWidget::OnBtnLoadPoints ( )
protectedslot

◆ OnBtnSavePoints

void QmitkPointListWidget::OnBtnSavePoints ( )
protectedslot

◆ OnListDoubleClick

void QmitkPointListWidget::OnListDoubleClick ( )
protectedslot

◆ OnNodeDeleted()

void QmitkPointListWidget::OnNodeDeleted ( const itk::EventObject &  e)

itk observer for node "delete" events

◆ OnPointSelectionChanged

void QmitkPointListWidget::OnPointSelectionChanged ( )
protectedslot

pass through signal from PointListView that point selection has changed

◆ OnTimeStepChanged

void QmitkPointListWidget::OnTimeStepChanged ( int  timeStep)
protectedslot

◆ PointListChanged

void QmitkPointListWidget::PointListChanged ( )
signal

signal to inform about cleared or loaded point sets

◆ PointSelectionChanged

void QmitkPointListWidget::PointSelectionChanged ( )
signal

signal to inform that the selection of a point in the pointset has changed

◆ RemoveSelectedPoint

void QmitkPointListWidget::RemoveSelectedPoint ( )
protectedslot

◆ RemoveSliceNavigationController()

void QmitkPointListWidget::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.

◆ SetMultiWidget()

void QmitkPointListWidget::SetMultiWidget ( QmitkAbstractMultiWidget multiWidget)

assign a QmitkAbstractMultiWidget for updating render window crosshair

◆ SetPointSet()

void QmitkPointListWidget::SetPointSet ( mitk::PointSet newPs)

assign a point set (contained in a node of DataStorage) for observation

◆ SetPointSetNode()

void QmitkPointListWidget::SetPointSetNode ( mitk::DataNode newNode)

assign a point set (contained in a node of DataStorage) for observation

◆ SetupConnections()

void QmitkPointListWidget::SetupConnections ( )

◆ SetupUi()

void QmitkPointListWidget::SetupUi ( )
protected

◆ UnselectEditButton()

void QmitkPointListWidget::UnselectEditButton ( )

Unselects the edit button if it is selected.

Member Data Documentation

◆ m_AddPoint

QPushButton* QmitkPointListWidget::m_AddPoint
protected

Definition at line 142 of file QmitkPointListWidget.h.

◆ m_DataInteractor

mitk::DataInteractor::Pointer QmitkPointListWidget::m_DataInteractor
protected

Definition at line 146 of file QmitkPointListWidget.h.

◆ m_EditAllowed

bool QmitkPointListWidget::m_EditAllowed
protected

Definition at line 148 of file QmitkPointListWidget.h.

◆ m_LoadPointsBtn

QPushButton* QmitkPointListWidget::m_LoadPointsBtn
protected

Definition at line 140 of file QmitkPointListWidget.h.

◆ m_MovePointDownBtn

QPushButton* QmitkPointListWidget::m_MovePointDownBtn
protected

Definition at line 137 of file QmitkPointListWidget.h.

◆ m_MovePointUpBtn

QPushButton* QmitkPointListWidget::m_MovePointUpBtn
protected

Definition at line 136 of file QmitkPointListWidget.h.

◆ m_NodeObserverTag

unsigned long QmitkPointListWidget::m_NodeObserverTag
protected

Definition at line 149 of file QmitkPointListWidget.h.

◆ m_Orientation

int QmitkPointListWidget::m_Orientation
protected

Definition at line 134 of file QmitkPointListWidget.h.

◆ m_PointListModel

QmitkPointListModel* QmitkPointListWidget::m_PointListModel
protected

Definition at line 151 of file QmitkPointListWidget.h.

◆ m_PointListView

QmitkPointListView* QmitkPointListWidget::m_PointListView
protected

Definition at line 130 of file QmitkPointListWidget.h.

◆ m_PointSetNode

mitk::DataNode::Pointer QmitkPointListWidget::m_PointSetNode
protected

Definition at line 132 of file QmitkPointListWidget.h.

◆ m_RemovePointBtn

QPushButton* QmitkPointListWidget::m_RemovePointBtn
protected

Definition at line 138 of file QmitkPointListWidget.h.

◆ m_SavePointsBtn

QPushButton* QmitkPointListWidget::m_SavePointsBtn
protected

Definition at line 139 of file QmitkPointListWidget.h.

◆ m_TimeStep

int QmitkPointListWidget::m_TimeStep
protected

Definition at line 147 of file QmitkPointListWidget.h.

◆ m_TimeStepDisplay

QLabel* QmitkPointListWidget::m_TimeStepDisplay
protected

Definition at line 143 of file QmitkPointListWidget.h.

◆ m_TimeStepLabel

QLabel* QmitkPointListWidget::m_TimeStepLabel
protected

Definition at line 144 of file QmitkPointListWidget.h.

◆ m_ToggleAddPoint

QPushButton* QmitkPointListWidget::m_ToggleAddPoint
protected

Definition at line 141 of file QmitkPointListWidget.h.


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