FEM: Backward compatibility for post pipeline and multiple fixes

This commit is contained in:
Stefan Tröger
2024-12-22 15:45:17 +01:00
committed by Benjamin Nauck
parent 53a7e5ab34
commit c8a4ff0a70
16 changed files with 220 additions and 136 deletions

View File

@@ -481,10 +481,8 @@ void TaskPostFunction::applyPythonCode()
// ***************************************************************************
// Frames
TaskPostFrames::TaskPostFrames(ViewProviderFemPostObject* view, QWidget* parent)
: TaskPostBox(view,
Gui::BitmapFactory().pixmap("FEM_PostFrames"),
tr("Result Frames"),
parent), ui(new Ui_TaskPostFrames)
: TaskPostBox(view, Gui::BitmapFactory().pixmap("FEM_PostFrames"), tr("Result Frames"), parent)
, ui(new Ui_TaskPostFrames)
{
// we load the views widget
proxy = new QWidget(this);
@@ -498,12 +496,13 @@ TaskPostFrames::TaskPostFrames(ViewProviderFemPostObject* view, QWidget* parent)
auto unit = pipeline->getFrameUnit();
auto steps = pipeline->getFrameValues();
for (unsigned long i=0; i<steps.size(); i++) {
QTableWidgetItem *idx = new QTableWidgetItem(QString::number(i));
QTableWidgetItem *value = new QTableWidgetItem(Base::Quantity(steps[i], unit).getUserString());
for (unsigned long i = 0; i < steps.size(); i++) {
QTableWidgetItem* idx = new QTableWidgetItem(QString::number(i));
QTableWidgetItem* value = new QTableWidgetItem(
QString::fromStdString(Base::Quantity(steps[i], unit).getUserString()));
int rowIdx = ui->FrameTable->rowCount();
ui->FrameTable->insertRow (rowIdx);
ui->FrameTable->insertRow(rowIdx);
ui->FrameTable->setItem(rowIdx, 0, idx);
ui->FrameTable->setItem(rowIdx, 1, value);
}
@@ -530,14 +529,12 @@ void TaskPostFrames::onSelectionChanged()
}
void TaskPostFrames::applyPythonCode()
{
// we apply the views widgets python code
}
// ***************************************************************************
// in the following, the different filters sorted alphabetically
// ***************************************************************************
@@ -549,7 +546,8 @@ TaskPostBranch::TaskPostBranch(ViewProviderFemPostBranchFilter* view, QWidget* p
: TaskPostBox(view,
Gui::BitmapFactory().pixmap("FEM_PostBranchFilter"),
tr("Branch behaviour"),
parent), ui(new Ui_TaskPostBranch)
parent)
, ui(new Ui_TaskPostBranch)
{
// we load the views widget
proxy = new QWidget(this);
@@ -590,14 +588,12 @@ void TaskPostBranch::onOutputIndexChanged(int idx)
}
void TaskPostBranch::applyPythonCode()
{
// we apply the views widgets python code
}
// ***************************************************************************
// data along line filter
TaskPostDataAlongLine::TaskPostDataAlongLine(ViewProviderFemPostDataAlongLine* view,