MCPcopy Create free account
hub / github.com/collin80/SavvyCAN / replot

Method replot

qcustomplot.cpp:1172–1186  ·  view source on GitHub ↗

! If the layer mode (\ref setMode) is set to \ref lmBuffered, this method allows replotting only the layerables on this specific layer, without the need to replot all other layers (as a call to \ref QCustomPlot::replot would do). If the layer mode is \ref lmLogical however, this method simply calls \ref QCustomPlot::replot on the parent QCustomPlot instance. QCustomPlot also makes su

Source from the content-addressed store, hash-verified

1170 \see draw
1171*/
1172void QCPLayer::replot()
1173{
1174 if (mMode == lmBuffered && !mParentPlot->hasInvalidatedPaintBuffers())
1175 {
1176 if (!mPaintBuffer.isNull())
1177 {
1178 mPaintBuffer.data()->clear(Qt::transparent);
1179 drawToPaintBuffer();
1180 mPaintBuffer.data()->setInvalidated(false);
1181 mParentPlot->update();
1182 } else
1183 qDebug() << Q_FUNC_INFO << "no valid paint buffer associated with this layer";
1184 } else if (mMode == lmLogical)
1185 mParentPlot->replot();
1186}
1187
1188/*! \internal
1189

Callers 15

moveSelectionMethod · 0.80
mouseMoveEventMethod · 0.80
wheelEventMethod · 0.80
processRectSelectionMethod · 0.80
updateDetailsWindowMethod · 0.80
createGraphMethod · 0.80
showEventMethod · 0.80
updatedFramesMethod · 0.80
gotCenterTimeIDMethod · 0.80
axisLabelDoubleClickMethod · 0.80
resetViewMethod · 0.80
zoomInMethod · 0.80

Calls 8

setInvalidatedMethod · 0.80
drawToPaintBufferMethod · 0.80
atMethod · 0.80
clearMethod · 0.45
dataMethod · 0.45
updateMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected