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

Method paint

QtNodeEditor/src/NodePainter.cpp:25–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23using QtNodes::FlowScene;
24
25void
26NodePainter::
27paint(QPainter* painter,
28 Node & node,
29 FlowScene const& scene)
30{
31 NodeGeometry const& geom = node.nodeGeometry();
32
33 NodeState const& state = node.nodeState();
34
35 NodeGraphicsObject const & graphicsObject = node.nodeGraphicsObject();
36
37 geom.recalculateSize(painter->font());
38
39 //--------------------------------------------
40 NodeDataModel const * model = node.nodeDataModel();
41
42 drawNodeRect(painter, geom, model, graphicsObject);
43
44 drawConnectionPoints(painter, geom, state, model, scene);
45
46 drawFilledConnectionPoints(painter, geom, state, model);
47
48 drawEntryLabels(painter, geom, state, model);
49
50 drawResizeRect(painter, geom, model);
51
52 drawValidationRect(painter, geom, model, graphicsObject);
53
54 /// call custom painter
55 if (auto painterDelegate = model->painterDelegate())
56 {
57 painterDelegate->paint(painter, geom, model);
58 }
59}
60
61
62void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected