QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
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
25class QWT_EXPORT QwtPolarCanvas : public QFrame
26{
27 Q_OBJECT
28
29public:
36 {
42 BackingStore = 0x01
43 };
44
45 Q_DECLARE_FLAGS(PaintAttributes, PaintAttribute)
46
47
50 ~QwtPolarCanvas() override;
51
53 QwtPolarPlot* plot();
55 const QwtPolarPlot* plot() const;
56
58 void setPaintAttribute(PaintAttribute, bool on = true);
60 bool testPaintAttribute(PaintAttribute) const;
61
63 const QPixmap* backingStore() const;
65 void invalidateBackingStore();
66
68 QwtPointPolar invTransform(const QPoint&) const;
70 QPoint transform(const QwtPointPolar&) const;
71
72protected:
74 virtual void paintEvent(QPaintEvent*) override;
76 virtual void resizeEvent(QResizeEvent*) override;
77
78private:
79 QWT_DECLARE_PRIVATE(QwtPolarCanvas)
80};
81
82Q_DECLARE_OPERATORS_FOR_FLAGS(QwtPolarCanvas::PaintAttributes)
83
84#endif
A point in polar coordinates
Definition qwt_point_polar.h:45
Canvas of a QwtPolarPlot
Definition qwt_polar_canvas.h:26
PaintAttribute
Paint attributes
Definition qwt_polar_canvas.h:36
~QwtPolarCanvas() override
Destructor
A plotting widget, displaying a polar coordinate system
Definition qwt_polar_plot.h:46