QWT 7.0.1
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | Protected Member Functions | List of all members
QwtPolarCachePanner Class Reference

QwtPolarPanner 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)
 Adjust the zoomed area according to dx/dy.
 

Public Member Functions

 QwtPolarCachePanner (QwtPolarCanvas *)
 Create a plot panner for a polar plot canvas.
 
virtual ~QwtPolarCachePanner ()
 Destructor.
 
QwtPolarPlotplot ()
 
const QwtPolarPlotplot () const
 
QwtPolarCanvascanvas ()
 
const QwtPolarCanvascanvas () const
 
- Public Member Functions inherited from QwtCachePanner
 QwtCachePanner (QWidget *parent)
 Creates an panner that is enabled for the left mouse button.
 
virtual ~QwtCachePanner ()
 Destructor.
 
void setEnabled (bool)
 En/disable the panner.
 
bool isEnabled () const
 
void setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier)
 Change the mouse button and modifiers used for panning The defaults are Qt::LeftButton and Qt::NoModifier.
 
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 The defaults are Qt::Key_Escape and Qt::NoModifiers.
 
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 The default is the cursor of the parent widget.
 
const QCursor cursor () const
 
void setOrientations (Qt::Orientations)
 Set the orientations, where panning is enabled The default value is in both directions: Qt::Horizontal | Qt::Vertical.
 
Qt::Orientations orientations () const
 Return the orientation, where panning is enabled.
 
bool isOrientationEnabled (Qt::Orientation) const
 
virtual bool eventFilter (QObject *, QEvent *) QWT_OVERRIDE
 Event filter.
 

Protected Member Functions

virtual void widgetMousePressEvent (QMouseEvent *) QWT_OVERRIDE
 Block panning when the plot zoom factor is >= 1.0.
 
- 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 *) QWT_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

QwtPolarPanner provides panning of a polar plot canvas.

QwtPolarPanner is a panner for a QwtPolarCanvas, that adjusts the visible area after dropping the canvas on its new position.

Together with QwtPolarMagnifier individual ways of navigating on a QwtPolarPlot widget can be implemented easily.

See also
QwtPolarMagnifier

Member Function Documentation

◆ canvas() [1/2]

QwtPolarCanvas * QwtPolarCachePanner::canvas ( )
Returns
observed plot canvas

◆ canvas() [2/2]

const QwtPolarCanvas * QwtPolarCachePanner::canvas ( ) const
Returns
observed plot canvas

◆ movePlot

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

Adjust the zoomed area according to dx/dy.

Parameters
dxPixel offset in x direction
dyPixel offset in y direction
See also
QwtPanner::panned(), QwtPolarPlot::zoom()

◆ plot() [1/2]

QwtPolarPlot * QwtPolarCachePanner::plot ( )
Returns
observed plot

◆ plot() [2/2]

const QwtPolarPlot * QwtPolarCachePanner::plot ( ) const
Returns
observed plot

◆ widgetMousePressEvent()

void QwtPolarCachePanner::widgetMousePressEvent ( QMouseEvent *  event)
protectedvirtual

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: