qwt_plot_glcanvas.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_GLCANVAS_H
11 #define QWT_PLOT_GLCANVAS_H
12 
13 #include "qwt_global.h"
15 #include <qgl.h>
16 
17 class QwtPlot;
18 
42 class QWT_EXPORT QwtPlotGLCanvas: public QGLWidget, public QwtPlotAbstractGLCanvas
43 {
44  Q_OBJECT
45 
46  Q_PROPERTY( QFrame::Shadow frameShadow READ frameShadow WRITE setFrameShadow )
47  Q_PROPERTY( QFrame::Shape frameShape READ frameShape WRITE setFrameShape )
48  Q_PROPERTY( int lineWidth READ lineWidth WRITE setLineWidth )
49  Q_PROPERTY( int midLineWidth READ midLineWidth WRITE setMidLineWidth )
50  Q_PROPERTY( int frameWidth READ frameWidth )
51  Q_PROPERTY( QRect frameRect READ frameRect DESIGNABLE false )
52 
53  Q_PROPERTY( double borderRadius READ borderRadius WRITE setBorderRadius )
54 
55 public:
56  explicit QwtPlotGLCanvas( QwtPlot * = NULL );
57  explicit QwtPlotGLCanvas( const QGLFormat &, QwtPlot * = NULL );
58  virtual ~QwtPlotGLCanvas();
59 
60  Q_INVOKABLE virtual void invalidateBackingStore();
61  Q_INVOKABLE QPainterPath borderPath( const QRect & ) const;
62 
63  virtual bool event( QEvent * );
64 
65 public Q_SLOTS:
66  void replot();
67 
68 protected:
69  virtual void paintEvent( QPaintEvent * );
70 
71  virtual void initializeGL();
72  virtual void paintGL();
73  virtual void resizeGL( int width, int height );
74 
75 private:
76  virtual void clearBackingStore();
77 
78  class PrivateData;
79  PrivateData *d_data;
80 };
81 
82 #endif
#define QWT_EXPORT
Definition: qwt_global.h:38
An alternative canvas for a QwtPlot derived from QGLWidget.
A 2-D plotting widget.
Definition: qwt_plot.h:74


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