+ add convenience method recomputeFeature()
+ make method recompute() protected
This commit is contained in:
@@ -94,7 +94,7 @@ App::DocumentObjectExecReturn *DrawHatch::execute(void)
|
||||
DrawViewPart* parent = getSourceView();
|
||||
if (parent) {
|
||||
parent->touch();
|
||||
parent->recompute();
|
||||
parent->recomputeFeature();
|
||||
}
|
||||
return App::DocumentObject::StdReturn;
|
||||
}
|
||||
|
||||
@@ -305,7 +305,7 @@ App::DocumentObject * DrawProjGroup::addProjection(const char *viewProjType)
|
||||
|
||||
addView(view); //from DrawViewCollection - add to ProjGroup Views
|
||||
moveToCentre();
|
||||
view->recompute();
|
||||
view->recomputeFeature();
|
||||
}
|
||||
|
||||
return view;
|
||||
@@ -641,7 +641,7 @@ void DrawProjGroup::updateChildren(double scale)
|
||||
if(std::abs(view->Scale.getValue() - scale) > FLT_EPSILON) {
|
||||
view->Scale.setValue(scale);
|
||||
}
|
||||
view->recompute();
|
||||
view->recomputeFeature();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ void TaskProjGroup::viewToggled(bool toggle)
|
||||
changed = true;
|
||||
}
|
||||
if (changed) {
|
||||
multiView->recompute();
|
||||
multiView->recomputeFeature();
|
||||
if (multiView->ScaleType.isValue("Automatic")) {
|
||||
double scale = multiView->Scale.getValue();
|
||||
setFractionalScale(scale);
|
||||
@@ -229,7 +229,7 @@ void TaskProjGroup::scaleTypeChanged(int index)
|
||||
return;
|
||||
}
|
||||
|
||||
multiView->recompute();
|
||||
multiView->recomputeFeature();
|
||||
Gui::Command::updateActive();
|
||||
}
|
||||
|
||||
@@ -304,7 +304,7 @@ void TaskProjGroup::scaleManuallyChanged(int i)
|
||||
double scale = (double) a / (double) b;
|
||||
Gui::Command::doCommand(Gui::Command::Doc, "App.activeDocument().%s.Scale = %f", multiView->getNameInDocument()
|
||||
, scale);
|
||||
multiView->recompute();
|
||||
multiView->recomputeFeature();
|
||||
Gui::Command::updateActive();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user