| 23 | using QtNodes::FlowScene; |
| 24 | |
| 25 | void |
| 26 | NodePainter:: |
| 27 | paint(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 | |
| 62 | void |
nothing calls this directly
no outgoing calls
no test coverage detected