MCPcopy Create free account
hub / github.com/CloudCompare/CloudCompare / drawToPaintBuffer

Method drawToPaintBuffer

qCC/extern/QCustomPlot/qcustomplot.cpp:1166–1182  ·  view source on GitHub ↗

! \internal Draws the contents of this layer into the paint buffer which is associated with this layer. The association is established by the parent QCustomPlot, which manages all paint buffers (see \ref QCustomPlot::setupPaintBuffers). \see draw */

Source from the content-addressed store, hash-verified

1164 \see draw
1165*/
1166void QCPLayer::drawToPaintBuffer()
1167{
1168 if (QSharedPointer<QCPAbstractPaintBuffer> pb = mPaintBuffer.toStrongRef())
1169 {
1170 if (QCPPainter *painter = pb->startPainting())
1171 {
1172 if (painter->isActive())
1173 draw(painter);
1174 else
1175 qDebug() << Q_FUNC_INFO << "paint buffer returned inactive painter";
1176 delete painter;
1177 pb->donePainting();
1178 } else
1179 qDebug() << Q_FUNC_INFO << "paint buffer returned nullptr painter";
1180 } else
1181 qDebug() << Q_FUNC_INFO << "no valid paint buffer associated with this layer";
1182}
1183
1184/*!
1185 If the layer mode (\ref setMode) is set to \ref lmBuffered, this method allows replotting only

Callers 1

replotMethod · 0.80

Calls 3

drawFunction · 0.85
startPaintingMethod · 0.80
donePaintingMethod · 0.80

Tested by

no test coverage detected