MCPcopy Create free account
hub / github.com/LUX-Core/lux / applyTo

Method applyTo

src/qt/qcustomplot.cpp:10135–10139  ·  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

10133 \see drawShape
10134*/
10135void QCPScatterStyle::applyTo(QCPPainter *painter, const QPen &defaultPen) const
10136{
10137 painter->setPen(mPenDefined ? mPen : defaultPen);
10138 painter->setBrush(mBrush);
10139}
10140
10141/*!
10142 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