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

Method NodeGeometry

QtNodeEditor/src/NodeGeometry.cpp:22–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20using QtNodes::Node;
21
22NodeGeometry::
23NodeGeometry(std::unique_ptr<NodeDataModel> const &dataModel)
24 : _width(50)
25 , _height(50)
26 , _inputPortWidth(4)
27 , _outputPortWidth(4)
28 , _entryHeight(1)
29 , _spacing(1)
30 , _hovered(false)
31 , _draggingPos(-1000, -1000)
32 , _dataModel(dataModel)
33 , _fontMetrics(QFont())
34 , _boldFontMetrics(QFont())
35 , _ports_layout(PortLayout::Vertical )
36{
37 QFont f;
38 f.setPointSize(12);
39 _boldFontMetrics = QFontMetrics(f);
40}
41
42unsigned int
43NodeGeometry::nSources() const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected