MCPcopy Create free account
hub / github.com/KDE/labplot / painterPath

Method painterPath

src/backend/worksheet/plots/cartesian/ErrorBar.cpp:90–100  ·  view source on GitHub ↗

! * 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

Source from the content-addressed store, hash-verified

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 */
90QPainterPath 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 ##################################

Callers 3

updateErrorBarsMethod · 0.80
updateErrorBarsMethod · 0.80
updateErrorBarsMethod · 0.80

Calls 2

painterPathForXMethod · 0.80
painterPathForYMethod · 0.80

Tested by

no test coverage detected