qwt_plot_opengl_canvas.h
Go to the documentation of this file.
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2  * Qwt Widget Library
3  * Copyright (C) 1997 Josef Wilgen
4  * Copyright (C) 2002 Uwe Rathmann
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the Qwt License, Version 1.0
8  *****************************************************************************/
9 
10 #ifndef QWT_PLOT_OPENGL_CANVAS_H
11 #define QWT_PLOT_OPENGL_CANVAS_H
12 
13 #include "qwt_global.h"
15 #include <qopenglwidget.h>
16 
17 class QwtPlot;
18 
19 class QWT_EXPORT QwtPlotOpenGLCanvas: public QOpenGLWidget, public QwtPlotAbstractGLCanvas
20 {
21  Q_OBJECT
22 
23  Q_PROPERTY( QFrame::Shadow frameShadow READ frameShadow WRITE setFrameShadow )
24  Q_PROPERTY( QFrame::Shape frameShape READ frameShape WRITE setFrameShape )
25  Q_PROPERTY( int lineWidth READ lineWidth WRITE setLineWidth )
26  Q_PROPERTY( int midLineWidth READ midLineWidth WRITE setMidLineWidth )
27  Q_PROPERTY( int frameWidth READ frameWidth )
28  Q_PROPERTY( QRect frameRect READ frameRect DESIGNABLE false )
29 
30  Q_PROPERTY( double borderRadius READ borderRadius WRITE setBorderRadius )
31 
32 public:
33  explicit QwtPlotOpenGLCanvas( QwtPlot * = NULL );
34  explicit QwtPlotOpenGLCanvas( const QSurfaceFormat &, QwtPlot * = NULL);
35  virtual ~QwtPlotOpenGLCanvas();
36 
37  Q_INVOKABLE virtual void invalidateBackingStore();
38  Q_INVOKABLE QPainterPath borderPath( const QRect & ) const;
39 
40  virtual bool event( QEvent * );
41 
42 public Q_SLOTS:
43  void replot();
44 
45 protected:
46  virtual void paintEvent( QPaintEvent * );
47 
48  virtual void initializeGL();
49  virtual void paintGL();
50  virtual void resizeGL( int width, int height );
51 
52 private:
53  void init( const QSurfaceFormat & );
54  virtual void clearBackingStore();
55 
56  class PrivateData;
57  PrivateData *d_data;
58 };
59 
60 #endif
#define QWT_EXPORT
Definition: qwt_global.h:38
A 2-D plotting widget.
Definition: qwt_plot.h:74


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17