Nelarius / imnodes

A small, dependency-free node editor for dear imgui
MIT License
2.01k stars 244 forks source link

[Feature] Add contained_node #87

Open nvglucifer opened 3 years ago

nvglucifer commented 3 years ago

image

Inspiration from ANKHOR FlowSheet. image

bryanbendall commented 3 years ago

That looks really good and I could see it being handy to have. Are you working on it or is it a concept?

nvglucifer commented 3 years ago

This is a feature request. I made first picture with paint.

Nelarius commented 3 years ago

Interesting suggestion, thanks for sharing the visualization 🙂 Adding node grouping to the library is something I would be open to, especially if the implementation can be done with minimal changes to imnodes.h -- one of my goals is to keep the usage of the library quite simple. I would also be open to prs related to this feature 👍

dyze commented 1 year ago

Hi, If keeping imnodes as simple as possible is one of the main goals, I would more go to the direction of adding more basic capabilities in order to indirectly achieve more complex use cases as grouping. I'm currently figuring out how to develop such grouping on my side, and to achieve this, I feel the need of getting informed when a node is moving or has been moved. I could then add a node to a group or remove it from a group. I believe such callback is quite simple to add (to ClickInteractionUpdate()?) and would benefit a lot of use cases, but letting imnodes quite simple. Does it make sense? Regards