qwt_plot_glcanvas.h
Go to the documentation of this file.
00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
00002  * Qwt Widget Library
00003  * Copyright (C) 1997   Josef Wilgen
00004  * Copyright (C) 2002   Uwe Rathmann
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the Qwt License, Version 1.0
00008  *****************************************************************************/
00009 
00010 #ifndef QWT_PLOT_GLCANVAS_H
00011 #define QWT_PLOT_GLCANVAS_H
00012 
00013 #include "qwt_global.h"
00014 #include "qwt_plot_abstract_canvas.h"
00015 #include <qgl.h>
00016 
00017 class QwtPlot;
00018 
00042 class QWT_EXPORT QwtPlotGLCanvas: public QGLWidget, public QwtPlotAbstractGLCanvas
00043 {
00044     Q_OBJECT
00045 
00046     Q_PROPERTY( QFrame::Shadow frameShadow READ frameShadow WRITE setFrameShadow )
00047     Q_PROPERTY( QFrame::Shape frameShape READ frameShape WRITE setFrameShape )
00048     Q_PROPERTY( int lineWidth READ lineWidth WRITE setLineWidth )
00049     Q_PROPERTY( int midLineWidth READ midLineWidth WRITE setMidLineWidth )
00050     Q_PROPERTY( int frameWidth READ frameWidth )
00051     Q_PROPERTY( QRect frameRect READ frameRect DESIGNABLE false )
00052 
00053     Q_PROPERTY( double borderRadius READ borderRadius WRITE setBorderRadius )
00054 
00055 public:
00056     explicit QwtPlotGLCanvas( QwtPlot * = NULL );
00057     explicit QwtPlotGLCanvas( const QGLFormat &, QwtPlot * = NULL );
00058     virtual ~QwtPlotGLCanvas();
00059 
00060     Q_INVOKABLE virtual void invalidateBackingStore();
00061     Q_INVOKABLE QPainterPath borderPath( const QRect & ) const;
00062 
00063     virtual bool event( QEvent * );
00064 
00065 public Q_SLOTS:
00066     void replot();
00067 
00068 protected:
00069     virtual void paintEvent( QPaintEvent * );
00070 
00071     virtual void initializeGL();
00072     virtual void paintGL();
00073     virtual void resizeGL( int width, int height );
00074 
00075 private:
00076         virtual void clearBackingStore();
00077 
00078     class PrivateData;
00079     PrivateData *d_data;
00080 };
00081 
00082 #endif


plotjuggler
Author(s): Davide Faconti
autogenerated on Wed Jul 3 2019 19:28:05