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

Method dataRange

src/qt/qcustomplot.cpp:2512–2522  ·  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

2510 \see dataRangeCount
2511*/
2512QCPDataRange QCPDataSelection::dataRange(int index) const
2513{
2514 if (index >= 0 && index < mDataRanges.size())
2515 {
2516 return mDataRanges.at(index);
2517 } else
2518 {
2519 qDebug() << Q_FUNC_INFO << "index out of range:" << index;
2520 return QCPDataRange();
2521 }
2522}
2523
2524/*!
2525 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

sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected