Classes | Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
QwtPolarCanvas Class Reference

Canvas of a QwtPolarPlot. More...

#include <qwt_polar_canvas.h>

Inheritance diagram for QwtPolarCanvas:
Inheritance graph
[legend]

Classes

class  PrivateData
 

Public Types

enum  PaintAttribute { BackingStore = 0x01 }
 Paint attributes. More...
 

Public Member Functions

const QPixmap * backingStore () const
 
void invalidateBackingStore ()
 Invalidate the internal backing store. More...
 
QwtPointPolar invTransform (const QPoint &) const
 
QwtPolarPlotplot ()
 
const QwtPolarPlotplot () const
 
 QwtPolarCanvas (QwtPolarPlot *)
 Constructor. More...
 
void setPaintAttribute (PaintAttribute, bool on=true)
 Changing the paint attributes. More...
 
bool testPaintAttribute (PaintAttribute) const
 
QPoint transform (const QwtPointPolar &) const
 
virtual ~QwtPolarCanvas ()
 Destructor. More...
 

Protected Member Functions

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

Private Attributes

PrivateDatam_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

Definition at line 27 of file qwt_polar_canvas.h.

Member Enumeration Documentation

◆ PaintAttribute

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.

Definition at line 40 of file qwt_polar_canvas.h.

Constructor & Destructor Documentation

◆ QwtPolarCanvas()

QwtPolarCanvas::QwtPolarCanvas ( QwtPolarPlot plot)
explicit

Constructor.

Definition at line 77 of file qwt_polar_canvas.cpp.

◆ ~QwtPolarCanvas()

QwtPolarCanvas::~QwtPolarCanvas ( )
virtual

Destructor.

Definition at line 91 of file qwt_polar_canvas.cpp.

Member Function Documentation

◆ backingStore()

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

Definition at line 170 of file qwt_polar_canvas.cpp.

◆ invalidateBackingStore()

void QwtPolarCanvas::invalidateBackingStore ( )

Invalidate the internal backing store.

Definition at line 176 of file qwt_polar_canvas.cpp.

◆ invTransform()

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()

Definition at line 267 of file qwt_polar_canvas.cpp.

◆ paintEvent()

void QwtPolarCanvas::paintEvent ( QPaintEvent *  event)
protectedvirtual

Paint event

Parameters
eventPaint event

Definition at line 186 of file qwt_polar_canvas.cpp.

◆ plot() [1/2]

const QwtPolarPlot * QwtPolarCanvas::plot ( )
Returns
Parent plot widget

Definition at line 97 of file qwt_polar_canvas.cpp.

◆ plot() [2/2]

const QwtPolarPlot* QwtPolarCanvas::plot ( ) const

◆ resizeEvent()

void QwtPolarCanvas::resizeEvent ( QResizeEvent *  event)
protectedvirtual

Resize event

Parameters
eventResize event

Definition at line 251 of file qwt_polar_canvas.cpp.

◆ setPaintAttribute()

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()

Definition at line 118 of file qwt_polar_canvas.cpp.

◆ testPaintAttribute()

bool QwtPolarCanvas::testPaintAttribute ( PaintAttribute  attribute) const

Test whether a paint attribute is enabled

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

Definition at line 164 of file qwt_polar_canvas.cpp.

◆ transform()

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()

Definition at line 310 of file qwt_polar_canvas.cpp.

Member Data Documentation

◆ m_data

PrivateData* QwtPolarCanvas::m_data
private

Definition at line 72 of file qwt_polar_canvas.h.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51