cumbia-qtcontrols 1.x
Qt widgets on top of the cumbia C++ library
|
plot canvas painting can be delegated to this object More...
#include <quplotcanvaspaintercomponent.h>
Public Member Functions | |
QuPlotCanvasPainterComponent () | |
QString | name () const |
returns the name of the component: "canvas_painter" | |
void | attachToPlot (QuPlotBase *) |
in this method you would call QwtPlot::attach for the QwtPlotItem items in the component | |
void | connectToPlot (QuPlotBase *) |
in this method you would create Qt signal/slot connections | |
void | update (QPainter *p, const QuPlotBase *plot, const QList< QwtPlotCurve * >curves, const CuData &options) |
draws the canvas of the plot, writing the name of the curves, the zoom hint or other text on the background | |
![]() | |
virtual | ~QuPlotComponent () |
plot canvas painting can be delegated to this object
This class is used to decorate the plot and display text on the canvas. QuPlotBase::drawCanvas uses this component.
QuPlotCanvasPainterComponent::QuPlotCanvasPainterComponent | ( | ) |
|
inlinevirtual |
in this method you would call QwtPlot::attach for the QwtPlotItem items in the component
Implements QuPlotComponent.
|
inlinevirtual |
in this method you would create Qt signal/slot connections
Implements QuPlotComponent.
|
virtual |
returns the name of the component: "canvas_painter"
Implements QuPlotComponent.
Referenced by QuPlotBase::init().
void QuPlotCanvasPainterComponent::update | ( | QPainter * | p, |
const QuPlotBase * | plot, | ||
const QList< QwtPlotCurve * > | curves, | ||
const CuData & | options ) |
draws the canvas of the plot, writing the name of the curves, the zoom hint or other text on the background
p | the QPainter |
plot | the QuPlotBase |
curves | the list of QwtPlotCurve items |
options | the options to configure the update |
Referenced by QuPlotBase::drawCanvas().