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

Method getFinalScatterStyle

qcustomplot/qcustomplot.cpp:10424–10436  ·  view source on GitHub ↗

! Returns the scatter style that the parent plottable shall use for selected scatter points. The plottable's original (unselected) scatter style must be passed as \a unselectedStyle. Depending on the setting of \ref setUsedScatterProperties, the returned scatter style is a mixture of this selecion decorator's scatter style (\ref setScatterStyle), and \a unselectedStyle. \see applyPen,

Source from the content-addressed store, hash-verified

10422 \see applyPen, applyBrush, setScatterStyle
10423*/
10424QCPScatterStyle QCPSelectionDecorator::getFinalScatterStyle(const QCPScatterStyle &unselectedStyle) const
10425{
10426 QCPScatterStyle result(unselectedStyle);
10427 result.setFromOther(mScatterStyle, mUsedScatterProperties);
10428
10429 // if style shall inherit pen from plottable (has no own pen defined), give it the selected
10430 // plottable pen explicitly, so it doesn't use the unselected plottable pen when used in the
10431 // plottable:
10432 if (!result.isPenDefined())
10433 result.setPen(mPen);
10434
10435 return result;
10436}
10437
10438/*!
10439 Copies all properties (e.g. color, fill, scatter style) of the \a other selection decorator to

Callers 1

drawMethod · 0.80

Calls 2

setFromOtherMethod · 0.80
setPenMethod · 0.80

Tested by

no test coverage detected