MCPcopy Create free account
hub / github.com/ZhuYanzhen1/miniFOC / getFinalScatterStyle

Method getFinalScatterStyle

tools/qcustomplot.cpp:11137–11149  ·  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

11135 \see applyPen, applyBrush, setScatterStyle
11136*/
11137QCPScatterStyle QCPSelectionDecorator::getFinalScatterStyle(const QCPScatterStyle &unselectedStyle) const
11138{
11139 QCPScatterStyle result(unselectedStyle);
11140 result.setFromOther(mScatterStyle, mUsedScatterProperties);
11141
11142 // if style shall inherit pen from plottable (has no own pen defined), give it the selected
11143 // plottable pen explicitly, so it doesn't use the unselected plottable pen when used in the
11144 // plottable:
11145 if (!result.isPenDefined())
11146 result.setPen(mPen);
11147
11148 return result;
11149}
11150
11151/*!
11152 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