| 613 | public: |
| 614 | explicit QCPPaintBufferPixmap(const QSize &size, double devicePixelRatio); |
| 615 | virtual ~QCPPaintBufferPixmap() Q_DECL_OVERRIDE; |
| 616 | |
| 617 | // reimplemented virtual methods: |
| 618 | virtual QCPPainter *startPainting() Q_DECL_OVERRIDE; |
| 619 | virtual void draw(QCPPainter *painter) const Q_DECL_OVERRIDE; |
| 620 | void clear(const QColor &color) Q_DECL_OVERRIDE; |
| 621 | |
| 622 | protected: |
| 623 | // non-property members: |
| 624 | QPixmap mBuffer; |
| 625 | |
| 626 | // reimplemented virtual methods: |
| 627 | virtual void reallocateBuffer() Q_DECL_OVERRIDE; |
| 628 | }; |
| 629 | |
| 630 | |
| 631 | #ifdef QCP_OPENGL_PBUFFER |
| 632 | class QCP_LIB_DECL QCPPaintBufferGlPbuffer : public QCPAbstractPaintBuffer |
| 633 | { |
| 634 | public: |
| 635 | explicit QCPPaintBufferGlPbuffer(const QSize &size, double devicePixelRatio, int multisamples); |
| 636 | virtual ~QCPPaintBufferGlPbuffer() Q_DECL_OVERRIDE; |
| 637 | |
| 638 | // reimplemented virtual methods: |
| 639 | virtual QCPPainter *startPainting() Q_DECL_OVERRIDE; |
| 640 | virtual void draw(QCPPainter *painter) const Q_DECL_OVERRIDE; |
| 641 | void clear(const QColor &color) Q_DECL_OVERRIDE; |
| 642 | |
| 643 | protected: |
| 644 | // non-property members: |
| 645 | QGLPixelBuffer *mGlPBuffer; |
| 646 | int mMultisamples; |
| 647 | |
| 648 | // reimplemented virtual methods: |
| 649 | virtual void reallocateBuffer() Q_DECL_OVERRIDE; |
| 650 | }; |
| 651 | #endif // QCP_OPENGL_PBUFFER |
| 652 | |
| 653 | |
| 654 | #ifdef QCP_OPENGL_FBO |
| 655 | class QCP_LIB_DECL QCPPaintBufferGlFbo : public QCPAbstractPaintBuffer |
| 656 | { |
| 657 | public: |
| 658 | explicit QCPPaintBufferGlFbo(const QSize &size, double devicePixelRatio, QWeakPointer<QOpenGLContext> glContext, QWeakPointer<QOpenGLPaintDevice> glPaintDevice); |
| 659 | virtual ~QCPPaintBufferGlFbo() Q_DECL_OVERRIDE; |
| 660 | |
| 661 | // reimplemented virtual methods: |
| 662 | virtual QCPPainter *startPainting() Q_DECL_OVERRIDE; |
| 663 | virtual void donePainting() Q_DECL_OVERRIDE; |
| 664 | virtual void draw(QCPPainter *painter) const Q_DECL_OVERRIDE; |
| 665 | void clear(const QColor &color) Q_DECL_OVERRIDE; |
| 666 | |
| 667 | protected: |
| 668 | // non-property members: |
| 669 | QWeakPointer<QOpenGLContext> mGlContext; |
| 670 | QWeakPointer<QOpenGLPaintDevice> mGlPaintDevice; |
| 671 | QOpenGLFramebufferObject *mGlFrameBuffer; |
| 672 |
no test coverage detected