Signals | Public Member Functions | Private Member Functions | Private Attributes
PlotLegend Class Reference

#include <plotlegend.h>

Inheritance diagram for PlotLegend:
Inheritance graph
[legend]

List of all members.

Signals

void legendSizeChanged (int point_size)

Public Member Functions

QRectF hideButtonRect () const
 PlotLegend (QwtPlot *parent)
const QwtPlotItemprocessMousePressEvent (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

Detailed Description

Definition at line 8 of file plotlegend.h.


Constructor & Destructor Documentation

PlotLegend::PlotLegend ( QwtPlot parent) [inline]

Definition at line 12 of file plotlegend.h.


Member Function Documentation

void PlotLegend::draw ( QPainter *  painter,
const QwtScaleMap xMap,
const QwtScaleMap yMap,
const QRectF &  canvasRect 
) const [override, private, virtual]

Draw the legend

Parameters:
painterPainter
xMapx Scale Map
yMapy Scale Map
canvasRectContents 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

Parameters:
painterQt Painter
plotItemPlot item, represented by the entry
dataAttributes of the legend entry
rectBounding 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.


Member Data Documentation

Definition at line 36 of file plotlegend.h.

Definition at line 35 of file plotlegend.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Wed Jul 3 2019 19:28:05