MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / dataValueRange

Method dataValueRange

3rdparty/qcustomplot/qcustomplot.cpp:28221–28235  ·  view source on GitHub ↗

inherits documentation from base class */

Source from the content-addressed store, hash-verified

28219
28220/* inherits documentation from base class */
28221QCPRange QCPErrorBars::dataValueRange(int index) const
28222{
28223 if (mDataPlottable)
28224 {
28225 const double value = mDataPlottable->interface1D()->dataMainValue(index);
28226 if (index >= 0 && index < mDataContainer->size() && mErrorType == etValueError)
28227 return {value-mDataContainer->at(index).errorMinus, value+mDataContainer->at(index).errorPlus};
28228 else
28229 return {value, value};
28230 } else
28231 {
28232 qDebug() << Q_FUNC_INFO << "no data plottable set";
28233 return {};
28234 }
28235}
28236
28237/* inherits documentation from base class */
28238QPointF QCPErrorBars::dataPixelPosition(int index) const

Callers

nothing calls this directly

Calls 3

dataMainValueMethod · 0.45
sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected