Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Widget for regular operations on point sets. More...
#include <QmitkPointListWidget.h>
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=0, int orientation=0) | |
~QmitkPointListWidget () | |
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::PointSet * | GetPointSet () |
void | SetPointSetNode (mitk::DataNode *newNode) |
assign a point set (contained in a node of DataStorage) for observation More... | |
mitk::DataNode * | GetPointSetNode () |
void | SetMultiWidget (QmitkStdMultiWidget *multiWidget) |
assign a QmitkStdMultiWidget 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... | |
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 | OnBtnSavePoints () |
void | OnBtnLoadPoints () |
void | RemoveSelectedPoint () |
void | MoveSelectedPointDown () |
void | MoveSelectedPointUp () |
void | OnBtnAddPoint (bool checked) |
void | OnBtnAddPointManually () |
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 | |
QmitkPointListView * | m_PointListView |
QmitkStdMultiWidget * | m_MultiWidget |
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 |
mitk::SliceNavigationController * | m_Snc1 |
mitk::SliceNavigationController * | m_Snc2 |
mitk::SliceNavigationController * | m_Snc3 |
mitk::DataInteractor::Pointer | m_DataInteractor |
int | m_TimeStep |
bool | m_EditAllowed |
unsigned long | m_NodeObserverTag |
Widget for regular operations on point sets.
Displays a list of point coordinates and a couple of buttons which
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 QmitkStdMultiWidget object.
Definition at line 53 of file QmitkPointListWidget.h.
QmitkPointListWidget::QmitkPointListWidget | ( | QWidget * | parent = 0 , |
int | orientation = 0 |
||
) |
Definition at line 30 of file QmitkPointListWidget.cpp.
References m_Orientation, m_PointListView, ObserveNewNode(), SetupConnections(), and SetupUi().
QmitkPointListWidget::~QmitkPointListWidget | ( | ) |
Definition at line 61 of file QmitkPointListWidget.cpp.
References m_DataInteractor, m_MultiWidget, m_NodeObserverTag, m_PointListView, and m_PointSetNode.
void QmitkPointListWidget::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 487 of file QmitkPointListWidget.cpp.
References QmitkPointListView::AddSliceNavigationController(), and m_PointListView.
|
slot |
Definition at line 376 of file QmitkPointListWidget.cpp.
|
signal |
signal to inform about the state of the EditPointSetButton, whether an interactor for setting points is active or not
Referenced by OnBtnAddPoint().
|
slot |
Definition at line 380 of file QmitkPointListWidget.cpp.
References m_EditAllowed, m_ToggleAddPoint, and OnBtnAddPoint().
mitk::PointSet * QmitkPointListWidget::GetPointSet | ( | ) |
Definition at line 265 of file QmitkPointListWidget.cpp.
References m_PointSetNode.
Referenced by OnBtnAddPointManually().
mitk::DataNode * QmitkPointListWidget::GetPointSetNode | ( | ) |
Definition at line 270 of file QmitkPointListWidget.cpp.
References m_PointSetNode.
|
protectedslot |
Definition at line 296 of file QmitkPointListWidget.cpp.
References mitk::PointSet::GetSize(), m_PointListView, m_PointSetNode, QmitkPointListModel::MoveSelectedPointDown(), and PointListChanged().
Referenced by SetupConnections().
|
protectedslot |
Definition at line 311 of file QmitkPointListWidget.cpp.
References mitk::PointSet::GetSize(), m_PointListView, m_PointSetNode, QmitkPointListModel::MoveSelectedPointUp(), and PointListChanged().
Referenced by SetupConnections().
|
protected |
Definition at line 390 of file QmitkPointListWidget.cpp.
References m_AddPoint, m_DataInteractor, m_EditAllowed, m_LoadPointsBtn, m_NodeObserverTag, m_PointSetNode, m_RemovePointBtn, m_SavePointsBtn, m_ToggleAddPoint, mitk::New(), and OnNodeDeleted().
Referenced by QmitkPointListWidget(), SetPointSet(), and SetPointSetNode().
|
protectedslot |
Definition at line 326 of file QmitkPointListWidget.cpp.
References EditPointSets(), m_DataInteractor, m_PointSetNode, and mitk::PointSetDataInteractor::New().
Referenced by EnableEditButton(), and SetupConnections().
|
protectedslot |
Definition at line 355 of file QmitkPointListWidget.cpp.
References mitk::PointSet::GetMaxId(), GetPointSet(), m_TimeStep, and QmitkEditPointDialog::SetPoint().
Referenced by SetupConnections().
|
protectedslot |
Definition at line 236 of file QmitkPointListWidget.cpp.
References filename, mitk::RenderingManager::GetInstance(), mitk::IOUtil::LoadPointSet(), PointListChanged(), mitk::RenderingManager::RequestUpdateAll(), and SetPointSet().
Referenced by SetupConnections().
|
protectedslot |
Definition at line 204 of file QmitkPointListWidget.cpp.
References m_PointSetNode, and mitk::IOUtil::Save().
Referenced by SetupConnections().
|
protectedslot |
Definition at line 367 of file QmitkPointListWidget.cpp.
Referenced by SetupConnections().
void QmitkPointListWidget::OnNodeDeleted | ( | const itk::EventObject & | e | ) |
itk observer for node "delete" events
Definition at line 433 of file QmitkPointListWidget.cpp.
References m_AddPoint, m_LoadPointsBtn, m_NodeObserverTag, m_PointListView, m_PointSetNode, m_RemovePointBtn, m_SavePointsBtn, m_ToggleAddPoint, and QmitkPointListView::SetPointSetNode().
Referenced by ObserveNewNode().
|
protectedslot |
pass through signal from PointListView that point selection has changed
Definition at line 371 of file QmitkPointListWidget.cpp.
References PointSelectionChanged().
Referenced by SetupConnections().
|
signal |
signal to inform about cleared or loaded point sets
Referenced by MoveSelectedPointDown(), MoveSelectedPointUp(), OnBtnLoadPoints(), and RemoveSelectedPoint().
|
signal |
signal to inform that the selection of a point in the pointset has changed
Referenced by OnPointSelectionChanged().
|
protectedslot |
Definition at line 281 of file QmitkPointListWidget.cpp.
References mitk::PointSet::GetSize(), m_PointListView, m_PointSetNode, PointListChanged(), and QmitkPointListModel::RemoveSelectedPoint().
Referenced by SetupConnections().
void QmitkPointListWidget::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 492 of file QmitkPointListWidget.cpp.
References m_PointListView, and QmitkPointListView::RemoveSliceNavigationController().
void QmitkPointListWidget::SetMultiWidget | ( | QmitkStdMultiWidget * | multiWidget | ) |
assign a QmitkStdMultiWidget for updating render window crosshair
Definition at line 275 of file QmitkPointListWidget.cpp.
References m_MultiWidget, m_PointListView, and QmitkPointListView::SetMultiWidget().
void QmitkPointListWidget::SetPointSet | ( | mitk::PointSet * | newPs | ) |
assign a point set (contained in a node of DataStorage) for observation
Definition at line 185 of file QmitkPointListWidget.cpp.
References m_PointListView, m_PointSetNode, ObserveNewNode(), and SetPointSetNode().
Referenced by OnBtnLoadPoints().
void QmitkPointListWidget::SetPointSetNode | ( | mitk::DataNode * | newNode | ) |
assign a point set (contained in a node of DataStorage) for observation
Definition at line 195 of file QmitkPointListWidget.cpp.
References m_DataInteractor, m_PointListView, and ObserveNewNode().
Referenced by SetPointSet().
void QmitkPointListWidget::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 448 of file QmitkPointListWidget.cpp.
References QmitkPointListView::AddSliceNavigationController(), m_PointListView, m_Snc1, and QmitkPointListView::RemoveSliceNavigationController().
void QmitkPointListWidget::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 461 of file QmitkPointListWidget.cpp.
References QmitkPointListView::AddSliceNavigationController(), m_PointListView, m_Snc2, and QmitkPointListView::RemoveSliceNavigationController().
void QmitkPointListWidget::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 474 of file QmitkPointListWidget.cpp.
References QmitkPointListView::AddSliceNavigationController(), m_PointListView, m_Snc3, and QmitkPointListView::RemoveSliceNavigationController().
void QmitkPointListWidget::SetupConnections | ( | ) |
Definition at line 75 of file QmitkPointListWidget.cpp.
References m_AddPoint, m_LoadPointsBtn, m_MovePointDownBtn, m_MovePointUpBtn, m_PointListView, m_RemovePointBtn, m_SavePointsBtn, m_ToggleAddPoint, MoveSelectedPointDown(), MoveSelectedPointUp(), OnBtnAddPoint(), OnBtnAddPointManually(), OnBtnLoadPoints(), OnBtnSavePoints(), OnListDoubleClick(), OnPointSelectionChanged(), and RemoveSelectedPoint().
Referenced by QmitkPointListWidget().
|
protected |
Definition at line 88 of file QmitkPointListWidget.cpp.
References m_AddPoint, m_LoadPointsBtn, m_MovePointDownBtn, m_MovePointUpBtn, m_Orientation, m_PointListView, m_RemovePointBtn, m_SavePointsBtn, and m_ToggleAddPoint.
Referenced by QmitkPointListWidget().
void QmitkPointListWidget::UnselectEditButton | ( | ) |
Unselects the edit button if it is selected.
Definition at line 497 of file QmitkPointListWidget.cpp.
References m_ToggleAddPoint.
|
protected |
Definition at line 155 of file QmitkPointListWidget.h.
Referenced by ObserveNewNode(), OnNodeDeleted(), SetupConnections(), and SetupUi().
|
protected |
Definition at line 161 of file QmitkPointListWidget.h.
Referenced by ObserveNewNode(), OnBtnAddPoint(), SetPointSetNode(), and ~QmitkPointListWidget().
|
protected |
Definition at line 163 of file QmitkPointListWidget.h.
Referenced by EnableEditButton(), and ObserveNewNode().
|
protected |
Definition at line 153 of file QmitkPointListWidget.h.
Referenced by ObserveNewNode(), OnNodeDeleted(), SetupConnections(), and SetupUi().
|
protected |
Definition at line 150 of file QmitkPointListWidget.h.
Referenced by SetupConnections(), and SetupUi().
|
protected |
Definition at line 149 of file QmitkPointListWidget.h.
Referenced by SetupConnections(), and SetupUi().
|
protected |
Definition at line 143 of file QmitkPointListWidget.h.
Referenced by SetMultiWidget(), and ~QmitkPointListWidget().
|
protected |
Definition at line 164 of file QmitkPointListWidget.h.
Referenced by ObserveNewNode(), OnNodeDeleted(), and ~QmitkPointListWidget().
|
protected |
Definition at line 147 of file QmitkPointListWidget.h.
Referenced by QmitkPointListWidget(), and SetupUi().
|
protected |
Definition at line 142 of file QmitkPointListWidget.h.
Referenced by AddSliceNavigationController(), MoveSelectedPointDown(), MoveSelectedPointUp(), OnNodeDeleted(), QmitkPointListWidget(), RemoveSelectedPoint(), RemoveSliceNavigationController(), SetMultiWidget(), SetPointSet(), SetPointSetNode(), SetSnc1(), SetSnc2(), SetSnc3(), SetupConnections(), SetupUi(), and ~QmitkPointListWidget().
|
protected |
Definition at line 145 of file QmitkPointListWidget.h.
Referenced by GetPointSet(), GetPointSetNode(), MoveSelectedPointDown(), MoveSelectedPointUp(), ObserveNewNode(), OnBtnAddPoint(), OnBtnSavePoints(), OnNodeDeleted(), RemoveSelectedPoint(), SetPointSet(), and ~QmitkPointListWidget().
|
protected |
Definition at line 151 of file QmitkPointListWidget.h.
Referenced by ObserveNewNode(), OnNodeDeleted(), SetupConnections(), and SetupUi().
|
protected |
Definition at line 152 of file QmitkPointListWidget.h.
Referenced by ObserveNewNode(), OnNodeDeleted(), SetupConnections(), and SetupUi().
|
protected |
Definition at line 157 of file QmitkPointListWidget.h.
Referenced by SetSnc1().
|
protected |
Definition at line 158 of file QmitkPointListWidget.h.
Referenced by SetSnc2().
|
protected |
Definition at line 159 of file QmitkPointListWidget.h.
Referenced by SetSnc3().
|
protected |
Definition at line 162 of file QmitkPointListWidget.h.
Referenced by OnBtnAddPointManually().
|
protected |
Definition at line 154 of file QmitkPointListWidget.h.
Referenced by EnableEditButton(), ObserveNewNode(), OnNodeDeleted(), SetupConnections(), SetupUi(), and UnselectEditButton().