Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkFitParameterWidget Class Reference

Widget that displays model fit parameter values at multiple world coordinate positions. More...

#include <QmitkFitParameterWidget.h>

Inheritance diagram for QmitkFitParameterWidget:
Collaboration diagram for QmitkFitParameterWidget:

Public Types

using FitVectorType = std::vector< mitk::modelFit::ModelFitInfo::ConstPointer >
 Vector type holding const pointers to ModelFitInfo instances. More...
 

Public Slots

void setFits (const FitVectorType &fits)
 Sets the model fit info instances to display. More...
 
void setCurrentPosition (const mitk::Point3D &currentPos)
 Sets the current world coordinate position for parameter value lookup. More...
 
void setPositionBookmarks (const mitk::PointSet *bookmarks)
 Sets the point set used as position bookmarks. More...
 

Public Member Functions

 QmitkFitParameterWidget (QWidget *parent=nullptr)
 Constructs a QmitkFitParameterWidget. More...
 
 ~QmitkFitParameterWidget () override
 Destructor. More...
 
const FitVectorType & getFits () const
 Returns the currently configured model fit info instances. More...
 
mitk::Point3D getCurrentPosition () const
 Returns the current world coordinate position used for value lookup. More...
 
const mitk::PointSet * getPositionBookmarks () const
 Returns the point set used as position bookmarks. More...
 

Protected Slots

void OnExportClicked () const
 Exports the parameter table to a user-selected CSV file. More...
 
void OnClipboardResultsButtonClicked () const
 Copies the parameter table contents as CSV text to the system clipboard. More...
 

Protected Member Functions

std::string streamModelToString () const
 Serializes the internal model data to a CSV-formatted string. More...
 

Protected Attributes

QmitkFitParameterModel * m_InternalModel
 
std::unique_ptr< Ui::QmitkFitParameterWidget > m_Controls
 

Detailed Description

Widget that displays model fit parameter values at multiple world coordinate positions.

This widget presents the parameters of all configured ModelFitInfo instances in a table view, evaluated at the current world position and any additional bookmark positions. It provides buttons to export the displayed data as CSV to the system clipboard or to a file.

Internally, it delegates to a QmitkFitParameterModel for data handling.

See also
QmitkFitParameterModel
mitk::modelFit::ModelFitInfo

Definition at line 45 of file QmitkFitParameterWidget.h.

Member Typedef Documentation

◆ FitVectorType

using QmitkFitParameterWidget::FitVectorType = std::vector<mitk::modelFit::ModelFitInfo::ConstPointer>

Vector type holding const pointers to ModelFitInfo instances.

Definition at line 51 of file QmitkFitParameterWidget.h.

Constructor & Destructor Documentation

◆ QmitkFitParameterWidget()

QmitkFitParameterWidget::QmitkFitParameterWidget ( QWidget *  parent = nullptr)

Constructs a QmitkFitParameterWidget.

Parameters
[in]parentOptional parent widget.

◆ ~QmitkFitParameterWidget()

QmitkFitParameterWidget::~QmitkFitParameterWidget ( )
override

Destructor.

Member Function Documentation

◆ getCurrentPosition()

mitk::Point3D QmitkFitParameterWidget::getCurrentPosition ( ) const

Returns the current world coordinate position used for value lookup.

Returns
The current 3D position.

◆ getFits()

const FitVectorType& QmitkFitParameterWidget::getFits ( ) const

Returns the currently configured model fit info instances.

Returns
Const reference to the vector of ModelFitInfo pointers.

◆ getPositionBookmarks()

const mitk::PointSet* QmitkFitParameterWidget::getPositionBookmarks ( ) const

Returns the point set used as position bookmarks.

Returns
Pointer to the bookmark PointSet, or nullptr if none is set.

◆ OnClipboardResultsButtonClicked

void QmitkFitParameterWidget::OnClipboardResultsButtonClicked ( ) const
protectedslot

Copies the parameter table contents as CSV text to the system clipboard.

◆ OnExportClicked

void QmitkFitParameterWidget::OnExportClicked ( ) const
protectedslot

Exports the parameter table to a user-selected CSV file.

Opens a file dialog for the user to choose a destination. If the file cannot be created or opened, an error message is shown.

◆ setCurrentPosition

void QmitkFitParameterWidget::setCurrentPosition ( const mitk::Point3D &  currentPos)
slot

Sets the current world coordinate position for parameter value lookup.

Parameters
[in]currentPosThe new 3D world position.

◆ setFits

void QmitkFitParameterWidget::setFits ( const FitVectorType &  fits)
slot

Sets the model fit info instances to display.

Parameters
[in]fitsVector of ModelFitInfo pointers.

◆ setPositionBookmarks

void QmitkFitParameterWidget::setPositionBookmarks ( const mitk::PointSet *  bookmarks)
slot

Sets the point set used as position bookmarks.

Parameters
[in]bookmarksPointer to a PointSet of bookmark positions, or nullptr to clear.

◆ streamModelToString()

std::string QmitkFitParameterWidget::streamModelToString ( ) const
protected

Serializes the internal model data to a CSV-formatted string.

Returns
The model content as a CSV string.

Member Data Documentation

◆ m_Controls

std::unique_ptr<Ui::QmitkFitParameterWidget> QmitkFitParameterWidget::m_Controls
protected

Definition at line 123 of file QmitkFitParameterWidget.h.

◆ m_InternalModel

QmitkFitParameterModel* QmitkFitParameterWidget::m_InternalModel
protected

Definition at line 121 of file QmitkFitParameterWidget.h.


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