inherits documentation from base class */
| 27346 | |
| 27347 | /* inherits documentation from base class */ |
| 27348 | QCPRange QCPErrorBars::dataValueRange(int index) const |
| 27349 | { |
| 27350 | if (mDataPlottable) |
| 27351 | { |
| 27352 | const double value = mDataPlottable->interface1D()->dataMainValue(index); |
| 27353 | if (index >= 0 && index < mDataContainer->size() && mErrorType == etValueError) |
| 27354 | return QCPRange(value-mDataContainer->at(index).errorMinus, value+mDataContainer->at(index).errorPlus); |
| 27355 | else |
| 27356 | return QCPRange(value, value); |
| 27357 | } else |
| 27358 | { |
| 27359 | qDebug() << Q_FUNC_INFO << "no data plottable set"; |
| 27360 | return QCPRange(); |
| 27361 | } |
| 27362 | } |
| 27363 | |
| 27364 | /* inherits documentation from base class */ |
| 27365 | QPointF QCPErrorBars::dataPixelPosition(int index) const |
nothing calls this directly
no test coverage detected