paceholder / nodeeditor

Qt Node Editor. Dataflow programming framework
BSD 3-Clause "New" or "Revised" License
2.92k stars 794 forks source link

How to create node control-flow-based ? #387

Closed ChivenZhang closed 1 year ago

ChivenZhang commented 1 year ago

I want to use this solution, but I am confused about whether this framework can create control-flow based node. The pictures below show two different types: data-flow based / control-flow based.

200W@F8ZT`COH}X9LGB~T1H

F4OT5AT(}$Q3OVEU30REEQK

kundezui commented 1 year ago

Hello. Do you know if the shape and position of the node ports in QtNodes can be changed? For example, change the circular port to a rectangular port, move the circular port embedded in the edge of the node to the outside of the node, etc. If it can be changed, which function in the file needs to be rewritten?

paceholder commented 1 year ago

@ChivenZhang could you please describe how exactly this "control flow port" works? Does it launch the recalculation upon arriving a signal? And the other ports do not to such an operation?

QiuYilin commented 1 year ago

In my option,you can easily use NodeEditor to modify the interactive GUI of various flow graphs, but you need to create additional underlying logic to implement control flow, including the execution order of all nodes. The existing DataflowModel just realizes the function of data dissemination between nodes

I want to use this solution, but I am confused about whether this framework can create control-flow based node. The pictures below show two different types: data-flow based / control-flow based.

200W@F8ZT`COH}X9LGB~T1H

F4OT5AT(}$Q3OVEU30REEQK

ChivenZhang commented 1 year ago

got it. Thanks