MCPcopy Create free account
hub / github.com/LUX-Core/lux / dataValueRange

Method dataValueRange

src/qt/qcustomplot.cpp:27348–27362  ·  view source on GitHub ↗

inherits documentation from base class */

Source from the content-addressed store, hash-verified

27346
27347/* inherits documentation from base class */
27348QCPRange QCPErrorBars::dataValueRange(int index) const
27349{
27350 if (mDataPlottable)
27351 {
27352 const double value = mDataPlottable->interface1D()->dataMainValue(index);
27353 if (index >= 0 && index < mDataContainer->size() && mErrorType == etValueError)
27354 return QCPRange(value-mDataContainer->at(index).errorMinus, value+mDataContainer->at(index).errorPlus);
27355 else
27356 return QCPRange(value, value);
27357 } else
27358 {
27359 qDebug() << Q_FUNC_INFO << "no data plottable set";
27360 return QCPRange();
27361 }
27362}
27363
27364/* inherits documentation from base class */
27365QPointF 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