28 const std::vector<double>& dis_values)
31 this->tableWidget->setRowCount(nPoints);
32 QList<QString> indexlist;
34 for (std::size_t i = 0; i < nPoints; i++)
36 indexlist.push_back(QString::number(i));
37 QTableWidgetItem* newItem =
new QTableWidgetItem(
"");
38 tableWidget->setItem(i, 0, newItem);
40 QStringList vHeaders(indexlist);
41 tableWidget->setVerticalHeaderLabels(vHeaders);
43 std::size_t nValues(dis_values.size());
44 for (std::size_t i = 0; i < nValues; i++)
46 tableWidget->item(
static_cast<int>(dis_nodes[i]), 0)
47 ->setText(QString::number(dis_values[i]));
68 std::vector<std::pair<std::size_t, double>> linear_values;
70 std::size_t nRows = tableWidget->rowCount();
71 for (std::size_t i = 0; i < nRows; i++)
73 QString row_text(tableWidget->item(i, 0)->text());
74 if (row_text.length() > 0)
76 linear_values.emplace_back(i, row_text.toDouble());
81 this->done(QDialog::Accepted);