QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
qwt_polar_canvas.h
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>
15class QPainter;
16class QwtPolarPlot;
17
35class QWT_EXPORT QwtPolarCanvas : public QFrame
36{
37 Q_OBJECT
38
39 public:
54 {
67 BackingStore = 0x01
68 };
69
70 Q_DECLARE_FLAGS( PaintAttributes, PaintAttribute )
71
72
73 explicit QwtPolarCanvas( QwtPolarPlot* );
75 virtual ~QwtPolarCanvas();
76
78 QwtPolarPlot* plot();
80 const QwtPolarPlot* plot() const;
81
83 void setPaintAttribute( PaintAttribute, bool on = true );
85 bool testPaintAttribute( PaintAttribute ) const;
86
88 const QPixmap* backingStore() const;
90 void invalidateBackingStore();
91
93 QwtPointPolar invTransform( const QPoint& ) const;
95 QPoint transform( const QwtPointPolar& ) const;
96
97 protected:
99 virtual void paintEvent( QPaintEvent* ) override;
101 virtual void resizeEvent( QResizeEvent* ) override;
102
103 private:
104 class PrivateData;
105 PrivateData* m_data;
106};
107
108Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPolarCanvas::PaintAttributes )
109
110#endif
A point in polar coordinates.
Definition qwt_point_polar.h:52
Canvas of a QwtPolarPlot.
Definition qwt_polar_canvas.h:36
PaintAttribute
Paint attributes.
Definition qwt_polar_canvas.h:54
A plotting widget, displaying a polar coordinate system.
Definition qwt_polar_plot.h:61