MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / readPoint

Method readPoint

pj_plotting/core/src/PointSeriesXY.cpp:222–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222QPointF PointSeriesXY::readPoint(const PairSlot& slot) const {
223 if (slot.x_chunk == nullptr || slot.y_chunk == nullptr) {
224 return invalidPoint();
225 }
226 if (slot.x_row >= slot.x_chunk->stats.row_count || slot.y_row >= slot.y_chunk->stats.row_count) {
227 return invalidPoint();
228 }
229 return {
230 readY(*slot.x_chunk, x_source_.column_index, slot.x_row),
231 readY(*slot.y_chunk, y_source_.column_index, slot.y_row),
232 };
233}
234
235} // namespace PJ

Callers

nothing calls this directly

Calls 2

readYFunction · 0.85
invalidPointFunction · 0.70

Tested by

no test coverage detected