inherits documentation from base class */
| 28186 | |
| 28187 | /* inherits documentation from base class */ |
| 28188 | QCPRange QCPErrorBars::dataValueRange(int index) const |
| 28189 | { |
| 28190 | if (mDataPlottable) |
| 28191 | { |
| 28192 | const double value = mDataPlottable->interface1D()->dataMainValue(index); |
| 28193 | if (index >= 0 && index < mDataContainer->size() && mErrorType == etValueError) |
| 28194 | return {value-mDataContainer->at(index).errorMinus, value+mDataContainer->at(index).errorPlus}; |
| 28195 | else |
| 28196 | return {value, value}; |
| 28197 | } else |
| 28198 | { |
| 28199 | qDebug() << Q_FUNC_INFO << "no data plottable set"; |
| 28200 | return {}; |
| 28201 | } |
| 28202 | } |
| 28203 | |
| 28204 | /* inherits documentation from base class */ |
| 28205 | QPointF QCPErrorBars::dataPixelPosition(int index) const |
nothing calls this directly
no test coverage detected