Widget for managing world coordinate positions used to inspect model fit results.
More...
#include <QmitkInspectionPositionWidget.h>
|
| using | FitVectorType = std::vector< mitk::modelFit::ModelFitInfo::ConstPointer > |
| | Vector type holding const pointers to ModelFitInfo instances. More...
|
| |
Widget for managing world coordinate positions used to inspect model fit results.
This widget displays the current cross-hair position and maintains a list of bookmark positions. Users can add the current position to the bookmark list via a button. The bookmark points are stored in a mitk::PointSet associated with a data node. Changes to the bookmark list are signaled via PositionBookmarksChanged().
- See also
- QmitkFitParameterWidget
-
QmitkFitParameterModel
Definition at line 44 of file QmitkInspectionPositionWidget.h.
◆ FitVectorType
◆ QmitkInspectionPositionWidget()
| QmitkInspectionPositionWidget::QmitkInspectionPositionWidget |
( |
QWidget * |
parent = nullptr | ) |
|
◆ ~QmitkInspectionPositionWidget()
| QmitkInspectionPositionWidget::~QmitkInspectionPositionWidget |
( |
| ) |
|
|
override |
◆ GetCurrentPosition()
| mitk::Point3D QmitkInspectionPositionWidget::GetCurrentPosition |
( |
| ) |
const |
Returns the current world coordinate position.
- Returns
- The current 3D position.
◆ GetPositionBookmarkNode()
| mitk::DataNode* QmitkInspectionPositionWidget::GetPositionBookmarkNode |
( |
| ) |
|
Returns the data node currently assigned for position bookmarks.
- Returns
- Pointer to the bookmark data node, or nullptr if none is assigned.
◆ GetPositionBookmarks()
| const mitk::PointSet* QmitkInspectionPositionWidget::GetPositionBookmarks |
( |
| ) |
const |
Returns the point set containing all bookmark positions.
- Returns
- Pointer to the bookmark PointSet, or nullptr if no bookmark node is set.
◆ OnAddCurrentPositionClicked
| void QmitkInspectionPositionWidget::OnAddCurrentPositionClicked |
( |
| ) |
|
|
slot |
Adds the current position to the bookmark point set.
Inserts the current position into the PointSet and emits PositionBookmarksChanged(). Does nothing if no bookmark PointSet is available.
◆ OnPointListChanged
| void QmitkInspectionPositionWidget::OnPointListChanged |
( |
| ) |
|
|
slot |
◆ PositionBookmarksChanged
| void QmitkInspectionPositionWidget::PositionBookmarksChanged |
( |
| ) |
|
|
signal |
Emitted whenever the position bookmark list is modified.
◆ SetCurrentPosition
| void QmitkInspectionPositionWidget::SetCurrentPosition |
( |
const mitk::Point3D & |
currentPos | ) |
|
|
slot |
Updates the displayed current position.
- Parameters
-
| [in] | currentPos | The new 3D world position to display. |
◆ SetPositionBookmarkNode()
| void QmitkInspectionPositionWidget::SetPositionBookmarkNode |
( |
mitk::DataNode * |
newNode | ) |
|
Assigns a data node containing a point set for position bookmarks.
The widget observes the point set within this node. The "Add" button is enabled only when a valid node is set.
- Parameters
-
| [in] | newNode | Pointer to the data node holding the bookmark PointSet. Pass nullptr to disable bookmark functionality. |
◆ m_Controls
| std::unique_ptr<Ui::QmitkInspectionPositionWidget> QmitkInspectionPositionWidget::m_Controls |
|
protected |
◆ m_CurrentPosition
The documentation for this class was generated from the following file: