[FEM] fix pipeline recompute issue

- after a simulation was run, the pipelines and its childs are recomputed but its shape coloring is not updated.

- also update XML documentation
- also remove comment in tasks.py for now
This commit is contained in:
Uwe
2022-08-08 02:04:07 +02:00
parent b397633f27
commit ee127273c1
6 changed files with 62 additions and 27 deletions

View File

@@ -129,6 +129,25 @@ void ViewProviderFemPostPipeline::onSelectionChanged(const Gui::SelectionChanges
}
}
void ViewProviderFemPostPipeline::updateColorBars()
{
// take all visible childs and update its shape coloring
auto children = claimChildren();
for (auto& child : children) {
if (child->Visibility.getValue()) {
auto vpObject = dynamic_cast<FemGui::ViewProviderFemPostObject *>(
Gui::Application::Instance->getViewProvider(child));
if (vpObject)
vpObject->updateMaterial();
}
}
// if pipeline is visible, update it
if (this->isVisible())
updateMaterial();
}
void ViewProviderFemPostPipeline::transformField(char *FieldName, double FieldFactor)
{
Fem::FemPostPipeline *obj = static_cast<Fem::FemPostPipeline *>(getObject());