MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / setTangentAverage

Method setTangentAverage

qcustomplot/qcustomplot.cpp:16510–16515  ·  view source on GitHub ↗

! Controls over how many data points the slope shall be averaged, when brackets shall be aligned with the data (if \ref setTangentToData is true). From the position of the bracket, \a pointCount points towards the selected data range will be taken into account. The smallest value of \a pointCount is 1, which is effectively equivalent to disabling \ref setTangentToData. */

Source from the content-addressed store, hash-verified

16508 disabling \ref setTangentToData.
16509*/
16510void QCPSelectionDecoratorBracket::setTangentAverage(int pointCount)
16511{
16512 mTangentAverage = pointCount;
16513 if (mTangentAverage < 1)
16514 mTangentAverage = 1;
16515}
16516
16517/*!
16518 Draws the bracket shape with \a painter. The parameter \a direction is either -1 or 1 and

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected