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

Method findBegin

qcustomplot/qcustomplot.cpp:27506–27519  ·  view source on GitHub ↗

inherits documentation from base class */

Source from the content-addressed store, hash-verified

27504
27505/* inherits documentation from base class */
27506int QCPErrorBars::findBegin(double sortKey, bool expandedRange) const
27507{
27508 if (mDataPlottable)
27509 {
27510 if (mDataContainer->isEmpty())
27511 return 0;
27512 int beginIndex = mDataPlottable->interface1D()->findBegin(sortKey, expandedRange);
27513 if (beginIndex >= mDataContainer->size())
27514 beginIndex = mDataContainer->size()-1;
27515 return beginIndex;
27516 } else
27517 qDebug() << Q_FUNC_INFO << "no data plottable set";
27518 return 0;
27519}
27520
27521/* inherits documentation from base class */
27522int QCPErrorBars::findEnd(double sortKey, bool expandedRange) const

Callers 5

getVisibleDataBoundsMethod · 0.45
pointDistanceMethod · 0.45
getValueRangeMethod · 0.45
getStackedBaseValueMethod · 0.45
updatePositionMethod · 0.45

Calls 2

isEmptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected