qwt_polar_canvas.h
Go to the documentation of this file.
1 /******************************************************************************
2  * QwtPolar Widget Library
3  * Copyright (C) 2008 Uwe Rathmann
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the Qwt License, Version 1.0
7  *****************************************************************************/
8 
9 #ifndef QWT_POLAR_CANVAS_H
10 #define QWT_POLAR_CANVAS_H
11 
12 #include "qwt_global.h"
13 #include "qwt_point_polar.h"
14 #include <qframe.h>
15 
16 class QPainter;
17 class QwtPolarPlot;
18 
27 class QWT_EXPORT QwtPolarCanvas : public QFrame
28 {
29  Q_OBJECT
30 
31  public:
41  {
47  BackingStore = 0x01
48  };
49 
50  Q_DECLARE_FLAGS( PaintAttributes, PaintAttribute )
51 
52  explicit QwtPolarCanvas( QwtPolarPlot* );
53  virtual ~QwtPolarCanvas();
54 
55  QwtPolarPlot* plot();
56  const QwtPolarPlot* plot() const;
57 
58  void setPaintAttribute( PaintAttribute, bool on = true );
59  bool testPaintAttribute( PaintAttribute ) const;
60 
61  const QPixmap* backingStore() const;
62  void invalidateBackingStore();
63 
64  QwtPointPolar invTransform( const QPoint& ) const;
65  QPoint transform( const QwtPointPolar& ) const;
66 
67  protected:
68  virtual void paintEvent( QPaintEvent* ) QWT_OVERRIDE;
69  virtual void resizeEvent( QResizeEvent* ) QWT_OVERRIDE;
70 
71  private:
72  class PrivateData;
74 };
75 
76 Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPolarCanvas::PaintAttributes )
77 
78 #endif
QwtPolarPlot
A plotting widget, displaying a polar coordinate system.
Definition: qwt_polar_plot.h:46
QwtPolarCanvas
Canvas of a QwtPolarPlot.
Definition: qwt_polar_canvas.h:27
qwt_global.h
QwtPointPolar
A point in polar coordinates.
Definition: qwt_point_polar.h:28
QwtPolarCanvas::m_data
PrivateData * m_data
Definition: qwt_polar_canvas.h:72
qwt_point_polar.h
QwtPolarCanvas::PrivateData
Definition: qwt_polar_canvas.cpp:59
QwtPolarCanvas::PaintAttribute
PaintAttribute
Paint attributes.
Definition: qwt_polar_canvas.h:40
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 Mon Nov 11 2024 03:23:46