Loading...
Searching...
No Matches
qwt_polar_canvas.h
/******************************************************************************
* QwtPolar Widget Library
* Copyright (C) 2008 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
*****************************************************************************/
#ifndef QWT_POLAR_CANVAS_H
#define QWT_POLAR_CANVAS_H
#include "qwt_global.h"
#include "qwt_point_polar.h"
#include <qframe.h>
class QPainter;
class QwtPolarPlot;
class QWT_EXPORT QwtPolarCanvas : public QFrame
{
Q_OBJECT
public:
enum PaintAttribute
{
BackingStore = 0x01
};
Q_DECLARE_FLAGS( PaintAttributes, PaintAttribute )
explicit QwtPolarCanvas( QwtPolarPlot* );
virtual ~QwtPolarCanvas();
QwtPolarPlot* plot();
const QwtPolarPlot* plot() const;
void setPaintAttribute( PaintAttribute, bool on = true );
bool testPaintAttribute( PaintAttribute ) const;
const QPixmap* backingStore() const;
void invalidateBackingStore();
QwtPointPolar invTransform( const QPoint& ) const;
QPoint transform( const QwtPointPolar& ) const;
protected:
virtual void paintEvent( QPaintEvent* ) QWT_OVERRIDE;
virtual void resizeEvent( QResizeEvent* ) QWT_OVERRIDE;
private:
class PrivateData;
PrivateData* m_data;
};
Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPolarCanvas::PaintAttributes )
#endif
QwtPointPolar
A point in polar coordinates.
Definition qwt_point_polar.h:29
QwtPolarCanvas
Canvas of a QwtPolarPlot.
Definition qwt_polar_canvas.h:28
QwtPolarCanvas::PaintAttributes
QFlags< PaintAttribute > PaintAttributes
Definition qwt_polar_canvas.h:50
QwtPolarCanvas::PaintAttribute
PaintAttribute
Paint attributes.
Definition qwt_polar_canvas.h:41
QwtPolarPlot
A plotting widget, displaying a polar coordinate system.
Definition qwt_polar_plot.h:47