! Returns a \ref QCPDataRange which spans the entire data selection, including possible intermediate segments which are not part of the original data selection. */
| 2531 | intermediate segments which are not part of the original data selection. |
| 2532 | */ |
| 2533 | QCPDataRange QCPDataSelection::span() const |
| 2534 | { |
| 2535 | if (isEmpty()) |
| 2536 | return QCPDataRange(); |
| 2537 | else |
| 2538 | return QCPDataRange(mDataRanges.first().begin(), mDataRanges.last().end()); |
| 2539 | } |
| 2540 | |
| 2541 | /*! |
| 2542 | Adds the given \a dataRange to this data selection. This is equivalent to the += operator but |