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

Method dataRange

qcustomplot/qcustomplot.cpp:2517–2527  ·  view source on GitHub ↗

! Returns the data range with the specified \a index. If the data selection is simplified (the usual state of the selection, see \ref simplify), the ranges are sorted by ascending data point index. \see dataRangeCount */

Source from the content-addressed store, hash-verified

2515 \see dataRangeCount
2516*/
2517QCPDataRange QCPDataSelection::dataRange(int index) const
2518{
2519 if (index >= 0 && index < mDataRanges.size())
2520 {
2521 return mDataRanges.at(index);
2522 } else
2523 {
2524 qDebug() << Q_FUNC_INFO << "index out of range:" << index;
2525 return QCPDataRange();
2526 }
2527}
2528
2529/*!
2530 Returns a \ref QCPDataRange which spans the entire data selection, including possible

Callers 5

qcustomplot.cppFile · 0.45
intersectionMethod · 0.45
mouseDoubleClickEventMethod · 0.45
mouseReleaseEventMethod · 0.45
setColorScaleMethod · 0.45

Calls 2

atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected