|QCPPaintBufferPixmap (const QSize &size, double devicePixelRatio)|
|void||clear (const QColor &color) override|
|virtual void||draw (QCPPainter *painter) const override|
|virtual QCPPainter *||startPainting () override|
|Public Member Functions inherited from QCPAbstractPaintBuffer|
|QCPAbstractPaintBuffer (const QSize &size, double devicePixelRatio)|
|double||devicePixelRatio () const|
|virtual void||donePainting ()|
|bool||invalidated () const|
|void||setDevicePixelRatio (double ratio)|
|void||setInvalidated (bool invalidated=true)|
|void||setSize (const QSize &size)|
|QSize||size () const|
|virtual void||reallocateBuffer () override|
|Protected Attributes inherited from QCPAbstractPaintBuffer|
A paint buffer based on QPixmap, using software raster rendering.
Constructor & Destructor Documentation
Member Function Documentation
Fills the entire buffer with the provided color. To have an empty transparent buffer, use the named color
This method must not be called if there is currently a painter (acquired with startPainting) active.
Reallocates the internal buffer with the currently configured size (setSize) and device pixel ratio, if applicable (setDevicePixelRatio). It is called as soon as any of those properties are changed on this paint buffer.
- Subclasses of QCPAbstractPaintBuffer must call their reimplementation of this method in their constructor, to perform the first allocation (this can not be done by the base class because calling pure virtual methods in base class constructors is not possible).
Returns a QCPPainter which is ready to draw to this buffer. The ownership and thus the responsibility to delete the painter after the painting operations are complete is given to the caller of this method.
Once you are done using the painter, delete the painter and call donePainting.
This method may return 0, if a painter couldn't be activated on the buffer. This usually indicates a problem with the respective painting backend.
The documentation for this class was generated from the following files: