MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / applyTo

Method applyTo

qcustomplot/qcustomplot.cpp:10146–10150  ·  view source on GitHub ↗

! Applies the pen and the brush of this scatter style to \a painter. If this scatter style has an undefined pen (\ref isPenDefined), sets the pen of \a painter to \a defaultPen instead. This function is used by plottables (or any class that wants to draw scatters) just before a number of scatters with this style shall be drawn with the \a painter. \see drawShape */

Source from the content-addressed store, hash-verified

10144 \see drawShape
10145*/
10146void QCPScatterStyle::applyTo(QCPPainter *painter, const QPen &defaultPen) const
10147{
10148 painter->setPen(mPenDefined ? mPen : defaultPen);
10149 painter->setBrush(mBrush);
10150}
10151
10152/*!
10153 Draws the scatter shape with \a painter at position \a pos.

Callers 3

drawLegendIconMethod · 0.80
drawScatterPlotMethod · 0.80
drawStatisticalBoxMethod · 0.80

Calls 2

setPenMethod · 0.80
setBrushMethod · 0.80

Tested by

no test coverage detected