Widget that displays model fit plot data in a table and supports CSV export.
More...
#include <QmitkFitPlotDataWidget.h>
|
| using | FitVectorType = std::vector< mitk::modelFit::ModelFitInfo::ConstPointer > |
| | Vector type holding const pointers to ModelFitInfo instances. More...
|
| |
Widget that displays model fit plot data in a table and supports CSV export.
This widget wraps a QmitkFitPlotDataModel in a table view, presenting the numerical curve data of a ModelFitPlotData instance. It provides buttons to copy the table contents to the system clipboard or to export them to a CSV file.
- See also
- QmitkFitPlotDataModel
-
mitk::ModelFitPlotData
Definition at line 43 of file QmitkFitPlotDataWidget.h.
◆ FitVectorType
◆ QmitkFitPlotDataWidget()
| QmitkFitPlotDataWidget::QmitkFitPlotDataWidget |
( |
QWidget * |
parent = nullptr | ) |
|
◆ ~QmitkFitPlotDataWidget()
| QmitkFitPlotDataWidget::~QmitkFitPlotDataWidget |
( |
| ) |
|
|
override |
◆ GetPlotData()
Returns a pointer to the currently stored plot data.
- Returns
- Pointer to the internal ModelFitPlotData instance.
◆ GetXName()
| const std::string& QmitkFitPlotDataWidget::GetXName |
( |
| ) |
const |
Returns the display name for the x-axis.
- Returns
- Const reference to the x-axis name string.
◆ OnClipboardResultsButtonClicked
| void QmitkFitPlotDataWidget::OnClipboardResultsButtonClicked |
( |
| ) |
const |
|
protectedslot |
Copies the table contents as CSV text to the system clipboard.
◆ OnExportClicked
| void QmitkFitPlotDataWidget::OnExportClicked |
( |
| ) |
const |
|
protectedslot |
Exports the table data to a user-selected CSV file.
Opens a file dialog for the user to choose a destination. Displays an error message if the file cannot be created or opened.
◆ SetPlotData
Sets the plot data to display in the table.
- Parameters
-
| [in] | data | Pointer to the ModelFitPlotData to display. |
◆ SetXName
| void QmitkFitPlotDataWidget::SetXName |
( |
const std::string & |
xName | ) |
|
|
slot |
Sets the display name for the x-axis column header.
- Parameters
-
| [in] | xName | The name for the x-axis. |
◆ StreamModelToString()
| std::string QmitkFitPlotDataWidget::StreamModelToString |
( |
| ) |
const |
|
protected |
Serializes the internal model data to a CSV-formatted string.
- Returns
- The model content as a CSV string.
◆ m_Controls
| std::unique_ptr<Ui::QmitkFitPlotDataWidget> QmitkFitPlotDataWidget::m_Controls |
|
protected |
◆ m_InternalModel
The documentation for this class was generated from the following file: