! * calculates and returns the painter path for the error bars. * The error bars are placed at the points in logical coordinates \c points. * The transformation to the scene coordinates is done via \c cSystem that is owned by the parent plot owning the error bar object. * Some plot types like histogram, bar plot, etc. can have different orientations (vertical vs. horizontal) which is provided
| 88 | * the error is specified for the y-dimentions for such plot types and is drawn either vertically or horizontally depending on the orientation of the plot. |
| 89 | */ |
| 90 | QPainterPath ErrorBar::painterPath(const QVector<QPointF>& points, const CartesianCoordinateSystem* cSystem, WorksheetElement::Orientation orientation) const { |
| 91 | Q_D(const ErrorBar); |
| 92 | auto path = QPainterPath(); |
| 93 | |
| 94 | if (d->dimension == Dimension::XY) |
| 95 | d->painterPathForX(path, points, cSystem); |
| 96 | |
| 97 | d->painterPathForY(path, points, cSystem, orientation); |
| 98 | |
| 99 | return path; |
| 100 | } |
| 101 | |
| 102 | // ############################################################################## |
| 103 | // ########################## getter methods ################################## |
no test coverage detected