Qwt Polar User's Guide  1.0.1
Public Types | Public Member Functions | Protected Member Functions
QwtPolarCanvas Class Reference

#include <qwt_polar_canvas.h>

List of all members.

Public Types

enum  PaintAttribute { BackingStore = 0x01 }
typedef QFlags< PaintAttributePaintAttributes

Public Member Functions

 QwtPolarCanvas (QwtPolarPlot *)
virtual ~QwtPolarCanvas ()
QwtPolarPlotplot ()
const QwtPolarPlotplot () 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 Member Functions

virtual void paintEvent (QPaintEvent *)
virtual void resizeEvent (QResizeEvent *)

Detailed Description

Canvas of a QwtPolarPlot.

The canvas is the widget, where all polar items are painted to.

Note:
In opposite to QwtPlot all axes are painted on the canvas.
See also:
QwtPolarPlot

Member Typedef Documentation

Paint attributes.


Member Enumeration Documentation

Paint attributes.

The default setting enables BackingStore

See also:
setPaintAttribute(), testPaintAttribute(), backingStore()
Enumerator:
BackingStore 

Paint double buffered and reuse the content of the pixmap buffer for some spontaneous repaints that happen when a plot gets unhidden, deiconified or changes the focus.


Constructor & Destructor Documentation

QwtPolarCanvas::QwtPolarCanvas ( QwtPolarPlot plot) [explicit]

Constructor.

QwtPolarCanvas::~QwtPolarCanvas ( ) [virtual]

Destructor.


Member Function Documentation

const QPixmap * QwtPolarCanvas::backingStore ( ) const
Returns:
Backing store, might be null
void QwtPolarCanvas::invalidateBackingStore ( )

Invalidate the internal backing store.

QwtPointPolar QwtPolarCanvas::invTransform ( const QPoint &  pos) const

Translate a point from widget into plot coordinates

Parameters:
posPoint in widget coordinates of the plot canvas
Returns:
Point in plot coordinates
See also:
transform()
void QwtPolarCanvas::paintEvent ( QPaintEvent *  event) [protected, virtual]

Paint event

Parameters:
eventPaint event
QwtPolarPlot * QwtPolarCanvas::plot ( )
Returns:
Parent plot widget
const QwtPolarPlot * QwtPolarCanvas::plot ( ) const
Returns:
Parent plot widget
void QwtPolarCanvas::resizeEvent ( QResizeEvent *  event) [protected, virtual]

Resize event

Parameters:
eventResize event
void QwtPolarCanvas::setPaintAttribute ( PaintAttribute  attribute,
bool  on = true 
)

Changing the paint attributes.

Parameters:
attributePaint attribute
onOn/Off

The default setting enables BackingStore

See also:
testPaintAttribute(), paintCache()
bool QwtPolarCanvas::testPaintAttribute ( PaintAttribute  attribute) const

Test wether a paint attribute is enabled

Parameters:
attributePaint attribute
Returns:
true if the attribute is enabled
See also:
setPaintAttribute()
QPoint QwtPolarCanvas::transform ( const QwtPointPolar &  polarPos) const

Translate a point from plot into widget coordinates

Parameters:
polarPosPoint in plot coordinates
Returns:
Point in widget coordinates
See also:
transform()