Public Slots | Public Member Functions | Protected Member Functions | List of all members
QwtPolarPanner Class Reference

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

#include <qwt_polar_panner.h>

Inheritance diagram for QwtPolarPanner:
Inheritance graph
[legend]

Public Slots

virtual void movePlot (int dx, int dy)
 

Public Member Functions

QwtPolarCanvascanvas ()
 
const QwtPolarCanvascanvas () const
 
QwtPolarPlotplot ()
 
const QwtPolarPlotplot () const
 
 QwtPolarPanner (QwtPolarCanvas *)
 Create a plot panner for a polar plot canvas. More...
 
virtual ~QwtPolarPanner ()
 Destructor. More...
 
- Public Member Functions inherited from QwtPanner
const QCursor cursor () const
 
virtual bool eventFilter (QObject *, QEvent *) QWT_OVERRIDE
 Event filter. More...
 
void getAbortKey (int &key, Qt::KeyboardModifiers &) const
 Get the abort key and modifiers. More...
 
void getMouseButton (Qt::MouseButton &button, Qt::KeyboardModifiers &) const
 Get mouse button and modifiers used for panning. More...
 
bool isEnabled () const
 
bool isOrientationEnabled (Qt::Orientation) const
 
Qt::Orientations orientations () const
 Return the orientation, where panning is enabled. More...
 
 QwtPanner (QWidget *parent)
 
void setAbortKey (int key, Qt::KeyboardModifiers=Qt::NoModifier)
 
void setCursor (const QCursor &)
 
void setEnabled (bool)
 En/disable the panner. More...
 
void setMouseButton (Qt::MouseButton, Qt::KeyboardModifiers=Qt::NoModifier)
 
void setOrientations (Qt::Orientations)
 
virtual ~QwtPanner ()
 Destructor. More...
 

Protected Member Functions

virtual void widgetMousePressEvent (QMouseEvent *) QWT_OVERRIDE
 
- Protected Member Functions inherited from QwtPanner
virtual QBitmap contentsMask () const
 Calculate a mask for the contents of the panned widget. More...
 
virtual QPixmap grab () const
 
virtual void paintEvent (QPaintEvent *) QWT_OVERRIDE
 Paint event. More...
 
virtual void widgetKeyPressEvent (QKeyEvent *)
 
virtual void widgetKeyReleaseEvent (QKeyEvent *)
 
virtual void widgetMouseMoveEvent (QMouseEvent *)
 
virtual void widgetMouseReleaseEvent (QMouseEvent *)
 

Additional Inherited Members

- Signals inherited from QwtPanner
void moved (int dx, int dy)
 
void panned (int dx, int dy)
 

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

Definition at line 30 of file qwt_polar_panner.h.

Constructor & Destructor Documentation

◆ QwtPolarPanner()

QwtPolarPanner::QwtPolarPanner ( QwtPolarCanvas canvas)
explicit

Create a plot panner for a polar plot canvas.

Definition at line 16 of file qwt_polar_panner.cpp.

◆ ~QwtPolarPanner()

QwtPolarPanner::~QwtPolarPanner ( )
virtual

Destructor.

Definition at line 24 of file qwt_polar_panner.cpp.

Member Function Documentation

◆ canvas() [1/2]

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

Definition at line 29 of file qwt_polar_panner.cpp.

◆ canvas() [2/2]

const QwtPolarCanvas* QwtPolarPanner::canvas ( ) const

◆ movePlot

void QwtPolarPanner::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()

Definition at line 68 of file qwt_polar_panner.cpp.

◆ plot() [1/2]

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

Definition at line 41 of file qwt_polar_panner.cpp.

◆ plot() [2/2]

const QwtPolarPlot* QwtPolarPanner::plot ( ) const

◆ widgetMousePressEvent()

void QwtPolarPanner::widgetMousePressEvent ( QMouseEvent *  event)
protectedvirtual

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

Parameters
eventMouse event

Reimplemented from QwtPanner.

Definition at line 108 of file qwt_polar_panner.cpp.


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