This PR is just for the record and you can choose which parts you also agree with.
This is a very tedious update and may not have been well thought out in some cases.
Mainly because the original uses too many unnecessary functions in the port creation section, so my idea is to manage the port section directly with a std::vector.
This update also implements dynamic ports and writes them as dynamic_port2 examples.
The indexed examples were all tested successfully on windows, including but not limited to copy and paste, save and load, and data passing.
Here are the main changes.
use initModelFormId() to addNode() or loadNode()
using NodeDataType = QString;
add NodePorts
use _inputPorts and _outputPorts to manage the port
This PR is just for the record and you can choose which parts you also agree with.
This is a very tedious update and may not have been well thought out in some cases.
Mainly because the original uses too many unnecessary functions in the port creation section, so my idea is to manage the port section directly with a
std::vector
.This update also implements dynamic ports and writes them as
dynamic_port2
examples.The indexed examples were all tested successfully on windows, including but not limited to copy and paste, save and load, and data passing.
Here are the main changes.
initModelFormId()
toaddNode()
orloadNode()
using NodeDataType = QString;
NodePorts
_inputPorts
and_outputPorts
to manage the port