inherits documentation from base class */
| 27429 | |
| 27430 | /* inherits documentation from base class */ |
| 27431 | QCPRange QCPErrorBars::dataValueRange(int index) const |
| 27432 | { |
| 27433 | if (mDataPlottable) |
| 27434 | { |
| 27435 | const double value = mDataPlottable->interface1D()->dataMainValue(index); |
| 27436 | if (index >= 0 && index < mDataContainer->size() && mErrorType == etValueError) |
| 27437 | return QCPRange(value-mDataContainer->at(index).errorMinus, value+mDataContainer->at(index).errorPlus); |
| 27438 | else |
| 27439 | return QCPRange(value, value); |
| 27440 | } else |
| 27441 | { |
| 27442 | qDebug() << Q_FUNC_INFO << "no data plottable set"; |
| 27443 | return QCPRange(); |
| 27444 | } |
| 27445 | } |
| 27446 | |
| 27447 | /* inherits documentation from base class */ |
| 27448 | QPointF QCPErrorBars::dataPixelPosition(int index) const |
nothing calls this directly
no test coverage detected