#include <qwt_plot_canvas.h>
Signals | |
| void | mousePressed (const QMouseEvent &e) |
| void | mouseReleased (const QMouseEvent &e) |
| void | mouseMoved (const QMouseEvent &e) |
Public Member Functions | |
| void | enableOutline (bool tf) |
| bool | outlineEnabled () const |
| void | setOutlinePen (const QPen &p) |
| const QPen & | outlinePen () const |
| void | setOutlineStyle (Qwt::Shape os) |
| Qwt::Shape | outlineStyle () const |
Protected Member Functions | |
| QwtPlotCanvas (QwtPlot *) | |
| virtual void | frameChanged () |
| virtual void | drawContents (QPainter *) |
| virtual void | mousePressEvent (QMouseEvent *e) |
| virtual void | mouseReleaseEvent (QMouseEvent *e) |
| virtual void | mouseMoveEvent (QMouseEvent *e) |
Private Member Functions | |
| void | drawOutline (QPainter &p) |
Private Attributes | |
| Q_OBJECT friend class | QwtPlot |
| bool | d_outlineEnabled |
| bool | d_outlineActive |
| bool | d_mousePressed |
| Qwt::Shape | d_outline |
| QPen | d_pen |
| QPoint | d_entryPoint |
| QPoint | d_lastPoint |
Definition at line 24 of file qwt_plot_canvas.h.
|
|
Sets a cross cursor, and an invisible red outline.
Definition at line 21 of file qwt_plot_canvas.cpp. |
|
|
Redraw the canvas.
Definition at line 44 of file qwt_plot_canvas.cpp. References d_outlineActive, drawOutline(), and QwtPaintBuffer::painter(). |
|
|
draw an outline Definition at line 258 of file qwt_plot_canvas.cpp. References Qwt::Cross, d_entryPoint, d_lastPoint, d_outline, d_pen, QwtPainter::drawLine(), QwtPainter::drawRect(), Qwt::Ellipse, Qwt::HLine, Qwt::Rect, and Qwt::VLine. Referenced by drawContents(), enableOutline(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and setOutlineStyle(). |
|
|
Enables or disables outline drawing. When the outline feature is enabled, a shape will be drawn in the plotting region when the user presses or drags the mouse. It can be used to implement crosshairs, mark a selected region, etc.
Definition at line 151 of file qwt_plot_canvas.cpp. References d_mousePressed, d_outlineActive, d_outlineEnabled, and drawOutline(). Referenced by QwtPlot::enableOutline(). |
|
|
Requires layout updates of the parent plot.
Definition at line 33 of file qwt_plot_canvas.cpp. |
|
|
A signal which is emitted when the mouse is moved in the canvas.
Referenced by mouseMoveEvent(). |
|
|
mouseMoveEvent
Definition at line 124 of file qwt_plot_canvas.cpp. References d_lastPoint, d_outlineActive, drawOutline(), and mouseMoved(). |
|
|
A signal which is emitted when the mouse is pressed in the canvas.
Referenced by mousePressEvent(). |
|
|
mousePressEvent
Definition at line 73 of file qwt_plot_canvas.cpp. References d_entryPoint, d_lastPoint, d_mousePressed, d_outlineActive, d_outlineEnabled, drawOutline(), and mousePressed(). |
|
|
A signal which is emitted when a mouse button has been released in the canvas.
Referenced by mouseReleaseEvent(). |
|
|
mouseReleaseEvent
Definition at line 106 of file qwt_plot_canvas.cpp. References d_mousePressed, d_outlineActive, drawOutline(), and mouseReleased(). |
|
|
Definition at line 172 of file qwt_plot_canvas.cpp. References d_outlineEnabled. Referenced by QwtPlot::outlineEnabled(). |
|
|
Definition at line 250 of file qwt_plot_canvas.cpp. References d_pen. Referenced by QwtPlot::outlinePen(). |
|
|
Definition at line 229 of file qwt_plot_canvas.cpp. References d_outline, and Qwt::Shape. Referenced by QwtPlot::outlineStyle(). |
|
|
Specify a pen for the outline.
Definition at line 240 of file qwt_plot_canvas.cpp. References d_pen. Referenced by QwtPlot::setOutlinePen(). |
|
|
Specify the style of the outline. The outline style determines which kind of shape is drawn in the plotting region when the user presses a mouse button or drags the mouse. Valid Styles are:
Definition at line 208 of file qwt_plot_canvas.cpp. References d_outline, d_outlineActive, and drawOutline(). Referenced by QwtPlot::setOutlineStyle(). |
|
|
Definition at line 79 of file qwt_plot_canvas.h. Referenced by drawOutline(), and mousePressEvent(). |
|
|
Definition at line 80 of file qwt_plot_canvas.h. Referenced by drawOutline(), mouseMoveEvent(), and mousePressEvent(). |
|
|
Definition at line 75 of file qwt_plot_canvas.h. Referenced by enableOutline(), mousePressEvent(), and mouseReleaseEvent(). |
|
|
Definition at line 76 of file qwt_plot_canvas.h. Referenced by drawOutline(), outlineStyle(), and setOutlineStyle(). |
|
|
Definition at line 74 of file qwt_plot_canvas.h. Referenced by drawContents(), enableOutline(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and setOutlineStyle(). |
|
|
Definition at line 73 of file qwt_plot_canvas.h. Referenced by enableOutline(), mousePressEvent(), and outlineEnabled(). |
|
|
Definition at line 78 of file qwt_plot_canvas.h. Referenced by drawOutline(), outlinePen(), and setOutlinePen(). |
|
|
Definition at line 27 of file qwt_plot_canvas.h. |
1.3.2