! 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
| 1170 | \see draw |
| 1171 | */ |
| 1172 | void 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 |
no test coverage detected