[FEM] fix line filter resolution

- when the resolution changes, the data must be refreshed for visualization and the plot
This commit is contained in:
Uwe
2022-06-12 18:18:26 +02:00
parent a08a6a8acf
commit 391ed3db8a

View File

@@ -729,6 +729,12 @@ void TaskPostDataAlongLine::point2Changed(double) {
void TaskPostDataAlongLine::resolutionChanged(int val) {
static_cast<Fem::FemPostDataAlongLineFilter*>(getObject())->Resolution.setValue(val);
// recompute the feature
static_cast<Fem::FemPostDataAlongLineFilter*>(getObject())->recomputeFeature();
// axis data must be refreshed
static_cast<Fem::FemPostDataAlongLineFilter*>(getObject())->GetAxisData();
// eventually a full recompute is necessary
getView()->getObject()->getDocument()->recompute();
}
void TaskPostDataAlongLine::pointCallback(void* ud, SoEventCallback* n)