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

Method recalcShapeAndBoundingRect

src/backend/worksheet/plots/cartesian/RunChart.cpp:388–398  ·  view source on GitHub ↗

! recalculates the outer bounds and the shape of the curve. */

Source from the content-addressed store, hash-verified

386 recalculates the outer bounds and the shape of the curve.
387 */
388void RunChartPrivate::recalcShapeAndBoundingRect() {
389 if (suppressRecalc)
390 return;
391
392 prepareGeometryChange();
393 m_shape = QPainterPath();
394 m_shape.addPath(dataCurve->graphicsItem()->shape());
395 m_shape.addPath(centerCurve->graphicsItem()->shape());
396
397 m_boundingRectangle = m_shape.boundingRect();
398}
399
400// ##############################################################################
401// ################## Serialization/Deserialization ###########################

Callers 1

loadThemeConfigMethod · 0.45

Calls 3

shapeMethod · 0.45
graphicsItemMethod · 0.45
boundingRectMethod · 0.45

Tested by

no test coverage detected