inherits documentation from base class */
| 28219 | |
| 28220 | /* inherits documentation from base class */ |
| 28221 | QCPRange QCPErrorBars::dataValueRange(int index) const |
| 28222 | { |
| 28223 | if (mDataPlottable) |
| 28224 | { |
| 28225 | const double value = mDataPlottable->interface1D()->dataMainValue(index); |
| 28226 | if (index >= 0 && index < mDataContainer->size() && mErrorType == etValueError) |
| 28227 | return {value-mDataContainer->at(index).errorMinus, value+mDataContainer->at(index).errorPlus}; |
| 28228 | else |
| 28229 | return {value, value}; |
| 28230 | } else |
| 28231 | { |
| 28232 | qDebug() << Q_FUNC_INFO << "no data plottable set"; |
| 28233 | return {}; |
| 28234 | } |
| 28235 | } |
| 28236 | |
| 28237 | /* inherits documentation from base class */ |
| 28238 | QPointF QCPErrorBars::dataPixelPosition(int index) const |
nothing calls this directly
no test coverage detected