QwtPolarCanvas Class Reference

Canvas of a QwtPolarPlot. More...

#include <qwt_polar_canvas.h>

List of all members.

Public Types

enum  PaintAttribute { PaintCached = 1 }

Public Member Functions

 QwtPolarCanvas (QwtPolarPlot *)
virtual ~QwtPolarCanvas ()
QwtPolarPlotplot ()
const QwtPolarPlotplot () const
void setPaintAttribute (PaintAttribute, bool on=true)
bool testPaintAttribute (PaintAttribute) const
QPixmap * paintCache ()
const QPixmap * paintCache () const
void invalidatePaintCache ()

Protected Member Functions

virtual void paintEvent (QPaintEvent *)
virtual void resizeEvent (QResizeEvent *)
virtual void drawContents (QPainter *)
void drawCanvas (QPainter *, const QwtDoubleRect &)

Protected Attributes

PrivateData * d_data

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 Enumeration Documentation

Paint attributes.

  • PaintCached
    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.

The default setting enables PaintCached

See also:
setPaintAttribute(), testPaintAttribute(), paintCache()

Constructor & Destructor Documentation

QwtPolarCanvas::QwtPolarCanvas ( QwtPolarPlot plot  )  [explicit]

Constructor.

QwtPolarCanvas::~QwtPolarCanvas (  )  [virtual]

Destructor.


Member Function Documentation

void QwtPolarCanvas::drawCanvas ( QPainter *  painter,
const QwtDoubleRect &  canvasRect 
) [protected]

Draw the the canvas

Paints all plot items to the canvasRect, using QwtPolarPlot::drawCanvas and updates the paint cache.

See also:
QwtPolarPlot::drawCanvas, setPaintAttributes(), testPaintAttributes()
void QwtPolarCanvas::drawContents ( QPainter *  painter  )  [protected, virtual]

Redraw the canvas.

void QwtPolarCanvas::invalidatePaintCache (  ) 

Invalidate the internal paint cache.

const QPixmap * QwtPolarCanvas::paintCache (  )  const

Return the paint cache, might be null.

QPixmap * QwtPolarCanvas::paintCache (  ) 

Return the paint cache, might be null.

void QwtPolarCanvas::paintEvent ( QPaintEvent *  event  )  [protected, virtual]

Paint event.

const QwtPolarPlot * QwtPolarCanvas::plot (  )  const

Return parent plot widget.

QwtPolarPlot * QwtPolarCanvas::plot (  ) 

Return parent plot widget.

void QwtPolarCanvas::resizeEvent ( QResizeEvent *  event  )  [protected, virtual]

Resize event.

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

Changing the paint attributes.

Parameters:
attribute Paint attribute
on On/Off

The default setting enables PaintCached

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

Test wether a paint attribute is enabled

Parameters:
attribute Paint attribute
Returns:
true if the attribute is enabled
See also:
setPaintAttribute()

Generated on 10 Apr 2012 for Qwt Polar User's Guide by  doxygen 1.6.1