LeGoffLoic / Nodz

Nodz : Visualize your data - Free nodes based graph generator.
MIT License
421 stars 108 forks source link

allow creation of subclasses of NodeItem for better draw customization #14

Open coderbone opened 7 years ago

coderbone commented 7 years ago

I am currently subclassing Nodz to do some custom drawing and would like to use a subclass of NodeItem so that even more custom drawing can be done. To do this I propose splitting the line in createNode that actually instantiates a new NodeItem into it's own member function so that a subclass of Nodz can provide it's own implementation and return apropos subclass instances. Similar treatment would be applied Plug/Socket/Connection for full customization.

Any objections?

predat commented 7 years ago

👍

coderbone commented 7 years ago

I've put in PR #15