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

Method limitIteratorsToDataRange

src/qt/qcustomplot.h:3163–3169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3161*/
3162template <class DataType>
3163void QCPDataContainer<DataType>::limitIteratorsToDataRange(const_iterator &begin, const_iterator &end, const QCPDataRange &dataRange) const
3164{
3165 QCPDataRange iteratorRange(begin-constBegin(), end-constBegin());
3166 iteratorRange = iteratorRange.bounded(dataRange.bounded(this->dataRange()));
3167 begin = constBegin()+iteratorRange.begin();
3168 end = constBegin()+iteratorRange.end();
3169}
3170
3171/*! \internal
3172

Callers 4

getVisibleDataBoundsMethod · 0.80
getCurveLinesMethod · 0.80
getScattersMethod · 0.80
drawMethod · 0.80

Calls 4

dataRangeMethod · 0.95
boundedMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected