#include <plotlegend.h>

Signals | |
| void | legendSizeChanged (int point_size) |
Public Member Functions | |
| QRectF | hideButtonRect () const |
| PlotLegend (QwtPlot *parent) | |
| const QwtPlotItem * | processMousePressEvent (QMouseEvent *mouse_event) |
| bool | processWheelEvent (QWheelEvent *ev) |
Private Member Functions | |
| virtual void | draw (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &rect) const override |
| virtual void | drawLegendData (QPainter *painter, const QwtPlotItem *, const QwtLegendData &, const QRectF &) const override |
Private Attributes | |
| bool | _collapsed |
| QwtPlot * | _parent_plot |
Definition at line 8 of file plotlegend.h.
| PlotLegend::PlotLegend | ( | QwtPlot * | parent | ) | [inline] |
Definition at line 12 of file plotlegend.h.
| void PlotLegend::draw | ( | QPainter * | painter, |
| const QwtScaleMap & | xMap, | ||
| const QwtScaleMap & | yMap, | ||
| const QRectF & | canvasRect | ||
| ) | const [override, private, virtual] |
Draw the legend
| painter | Painter |
| xMap | x Scale Map |
| yMap | y Scale Map |
| canvasRect | Contents rectangle of the canvas in painter coordinates |
Reimplemented from QwtPlotLegendItem.
Definition at line 17 of file plotlegend.cpp.
| void PlotLegend::drawLegendData | ( | QPainter * | painter, |
| const QwtPlotItem * | plotItem, | ||
| const QwtLegendData & | data, | ||
| const QRectF & | rect | ||
| ) | const [override, private, virtual] |
Draw an entry on the legend
| painter | Qt Painter |
| plotItem | Plot item, represented by the entry |
| data | Attributes of the legend entry |
| rect | Bounding rectangle for the entry |
Reimplemented from QwtPlotLegendItem.
Definition at line 48 of file plotlegend.cpp.
| QRectF PlotLegend::hideButtonRect | ( | ) | const |
Definition at line 7 of file plotlegend.cpp.
| void PlotLegend::legendSizeChanged | ( | int | point_size | ) | [signal] |
| const QwtPlotItem * PlotLegend::processMousePressEvent | ( | QMouseEvent * | mouse_event | ) |
Definition at line 117 of file plotlegend.cpp.
| bool PlotLegend::processWheelEvent | ( | QWheelEvent * | ev | ) |
Definition at line 94 of file plotlegend.cpp.
bool PlotLegend::_collapsed [private] |
Definition at line 36 of file plotlegend.h.
QwtPlot* PlotLegend::_parent_plot [private] |
Definition at line 35 of file plotlegend.h.