[apps/*/curve_view] Remove samplingRatio()

The resolution() method is useful to get a horizontal step equivalent to
the width of a pixel. A higher sampling ratio (or resolution) had been
introduced in the following commit.
[apps] In curve view, avoid white vertical lines in integral curves due to pixel rounding
This commit is contained in:
Ruben Dashyan
2019-07-11 11:33:30 +02:00
committed by EmilieNumworks
parent 7cbc489052
commit c80baae1e9
5 changed files with 2 additions and 12 deletions

View File

@@ -84,7 +84,7 @@ InteractiveCurveViewRangeDelegate::Range FunctionGraphController::computeYRange(
range.max = xMax;
return range;
}
float step = (xMax - xMin) / curveView()->resolution();
float step = (xMax - xMin) / curveView()->resolution() / 2;
for (int i=0; i<functionStore()->numberOfActiveFunctions(); i++) {
ExpiringPointer<Function> f = functionStore()->modelForRecord(functionStore()->activeRecordAtIndex(i));
/* Scan x-range from the middle to the extrema in order to get balanced