+ add convenience method recomputeFeature()

+ make method recompute() protected
This commit is contained in:
wmayer
2016-11-06 17:16:50 +01:00
parent b96f3d1163
commit 06da15e643
13 changed files with 41 additions and 32 deletions

View File

@@ -94,7 +94,7 @@ App::DocumentObjectExecReturn *DrawHatch::execute(void)
DrawViewPart* parent = getSourceView();
if (parent) {
parent->touch();
parent->recompute();
parent->recomputeFeature();
}
return App::DocumentObject::StdReturn;
}

View File

@@ -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();
}
}
}

View File

@@ -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();
}