MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / cubicPath

Function cubicPath

QtNodeEditor/src/ConnectionPainter.cpp:20–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20static
21QPainterPath
22cubicPath(ConnectionGeometry const& geom)
23{
24 QPointF const& source = geom.source();
25 QPointF const& sink = geom.sink();
26
27 auto c1c2 = geom.pointsC1C2();
28
29 // cubic spline
30 QPainterPath cubic(source);
31
32 cubic.cubicTo(c1c2.first, c1c2.second, sink);
33
34 return cubic;
35}
36
37
38QPainterPath

Callers 5

getPainterStrokeMethod · 0.85
debugDrawingFunction · 0.85
drawSketchLineFunction · 0.85
drawHoveredOrSelectedFunction · 0.85
drawNormalLineFunction · 0.85

Calls 2

sourceMethod · 0.80
sinkMethod · 0.80

Tested by

no test coverage detected