! Sets which data ranges of this plottable are selected. Selected data ranges are drawn differently (e.g. color) in the plot. This can be controlled via the selection decorator (see \ref selectionDecorator). The entire selection mechanism for plottables is handled automatically when \ref QCustomPlot::setInteractions contains iSelectPlottables. You only need to call this function when
| 10838 | \see setSelectable, selectTest |
| 10839 | */ |
| 10840 | void QCPAbstractPlottable::setSelection(QCPDataSelection selection) |
| 10841 | { |
| 10842 | selection.enforceType(mSelectable); |
| 10843 | if (mSelection != selection) |
| 10844 | { |
| 10845 | mSelection = selection; |
| 10846 | emit selectionChanged(selected()); |
| 10847 | emit selectionChanged(mSelection); |
| 10848 | } |
| 10849 | } |
| 10850 | |
| 10851 | /*! |
| 10852 | Use this method to set an own QCPSelectionDecorator (subclass) instance. This allows you to |
nothing calls this directly
no test coverage detected