QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | Protected Member Functions | List of all members
QwtPolarCachePanner Class Reference

QwtPolarCachePanner provides panning of a polar plot canvas. More...

#include <qwt_polar_cache_panner.h>

Inheritance diagram for QwtPolarCachePanner:
QwtCachePanner

Public Slots

virtual void movePlot (int dx, int dy)
 Move the plot.
 

Public Member Functions

 QwtPolarCachePanner (QwtPolarCanvas *)
 Constructor.
 
virtual ~QwtPolarCachePanner ()
 Destructor.
 
QwtPolarPlotplot ()
 Get the plot.
 
const QwtPolarPlotplot () const
 Get the plot (const version)
 
QwtPolarCanvascanvas ()
 Get the canvas.
 
const QwtPolarCanvascanvas () const
 Get the canvas (const version)
 
- Public Member Functions inherited from QwtCachePanner
 QwtCachePanner (QWidget *parent)
 Creates a panner that is enabled for the left mouse button.
 
virtual ~QwtCachePanner ()
 Destructor .
 
void setEnabled (bool)
 En/disable the panner.
 
bool isEnabled () const
 Return whether the panner is enabled.
 
void setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier)
 Change the mouse button and modifiers used for panning.
 
void getMouseButton (Qt::MouseButton &button, Qt::KeyboardModifiers &) const
 Get mouse button and modifiers used for panning.
 
void setAbortKey (int key, Qt::KeyboardModifiers=Qt::NoModifier)
 Change the abort key.
 
void getAbortKey (int &key, Qt::KeyboardModifiers &) const
 Get the abort key and modifiers.
 
void setCursor (const QCursor &)
 Change the cursor that is active while panning.
 
const QCursor cursor () const
 Return the cursor that is active while panning.
 
void setOrientations (Qt::Orientations)
 Set the orientations where panning is enabled.
 
Qt::Orientations orientations () const
 Return the orientation where panning is enabled.
 
bool isOrientationEnabled (Qt::Orientation) const
 Check if an orientation is enabled.
 
virtual bool eventFilter (QObject *, QEvent *) override
 Event filter.
 

Protected Member Functions

virtual void widgetMousePressEvent (QMouseEvent *) override
 Handle mouse press events.
 
- Protected Member Functions inherited from QwtCachePanner
virtual void widgetMouseReleaseEvent (QMouseEvent *)
 Handle a mouse release event for the observed widget.
 
virtual void widgetMouseMoveEvent (QMouseEvent *)
 Handle a mouse move event for the observed widget.
 
virtual void widgetKeyPressEvent (QKeyEvent *)
 Handle a key press event for the observed widget.
 
virtual void widgetKeyReleaseEvent (QKeyEvent *)
 Handle a key release event for the observed widget.
 
virtual void paintEvent (QPaintEvent *) override
 Paint event.
 
virtual QBitmap contentsMask () const
 Calculate a mask for the contents of the panned widget.
 
virtual QPixmap grab () const
 Grab the widget into a pixmap.
 

Additional Inherited Members

- Signals inherited from QwtCachePanner
void panned (int dx, int dy)
 Signal emitted when panning is done.
 
void moved (int dx, int dy)
 Signal emitted while the widget moved, but panning is not finished.
 

Detailed Description

QwtPolarCachePanner provides panning of a polar plot canvas.

Constructor & Destructor Documentation

◆ QwtPolarCachePanner()

QwtPolarCachePanner::QwtPolarCachePanner ( QwtPolarCanvas canvas)
explicit

Constructor.

Create a plot panner for a polar plot canvas.

◆ ~QwtPolarCachePanner()

QwtPolarCachePanner::~QwtPolarCachePanner ( )
virtual

Destructor.

Destructor

.

Member Function Documentation

◆ canvas() [1/2]

QwtPolarCanvas * QwtPolarCachePanner::canvas ( )

Get the canvas.

Get the observed plot canvas.

◆ canvas() [2/2]

const QwtPolarCanvas * QwtPolarCachePanner::canvas ( ) const

Get the canvas (const version)

Get the observed plot canvas (const version)

◆ movePlot

void QwtPolarCachePanner::movePlot ( int  dx,
int  dy 
)
virtualslot

Move the plot.

Adjust the zoomed area according to dx/dy.

◆ plot() [1/2]

QwtPolarPlot * QwtPolarCachePanner::plot ( )

Get the plot.

Get the observed plot.

◆ plot() [2/2]

const QwtPolarPlot * QwtPolarCachePanner::plot ( ) const

Get the plot (const version)

Get the observed plot (const version)

◆ widgetMousePressEvent()

void QwtPolarCachePanner::widgetMousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Handle mouse press events.

Block panning when the plot zoom factor is >= 1.0.

Parameters
eventMouse event

Reimplemented from QwtCachePanner.


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