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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:24