17 #include <QFileDialog> 18 #include <QMessageBox> 87 std::ostringstream stream;
88 stream.imbue(std::locale(
"C"));
92 for (
int col = 0; col < colCount; ++col)
104 for (
int row = 0; row < rowCount; ++row)
112 for (
int col = 0; col < colCount; ++col)
124 mitkThrow() <<
"Missing implementation for multiple fits.";
134 QApplication::clipboard()->setText(QString::fromStdString(this->
streamModelToString()), QClipboard::Clipboard);
140 QString fileName = QFileDialog::getSaveFileName(
nullptr, tr(
"Save fit parameter to csv file"));
142 if (fileName.isEmpty())
144 QMessageBox::critical(
nullptr, tr(
"No file selected!"),
145 tr(
"Cannot export pixel dump. Please selected a file."));
151 std::ios_base::openmode iOpenFlag = std::ios_base::out | std::ios_base::trunc;
152 file.open(fileName.toStdString().c_str(), iOpenFlag);
156 QMessageBox::critical(
nullptr, tr(
"Cannot create/open selected file!"),
157 tr(
"Cannot open or create the selected file. Export will be aborted. Selected file name: ") +
int columnCount(const QModelIndex &parent=QModelIndex()) const override
int rowCount(const QModelIndex &parent=QModelIndex()) const override
const mitk::PointSet * getPositionBookmarks() const
const FitVectorType & getFits() const
void setFits(const FitVectorType &fits)
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
Data structure which stores a set of points. Superclass of mitk::Mesh.
void setCurrentPosition(const mitk::Point3D ¤tPos)
mitk::Point3D getCurrentPosition() const
void setPositionBookmarks(const mitk::PointSet *bookmarks)
static const char * replace[]
This is a dictionary to replace long names of classes, modules, etc. to shorter versions in the conso...
QVariant data(const QModelIndex &index, int role) const override