Gronfi wrote:Hi!
My wishes:
-That every object (not the line/link of course) works like a layer itself, so inside the canvas of each of them it is possible to composite/draw another graphs.
I have an implementation of layers that I want to port to version 2.8 but they are not based on the nodes and they have the same size as the background. At the current implementation they only control 3 properties for all the controls in the layer visibility, lock and printable.They do not have an internal object list so all the code to react as needed to the layer's properties is inside my custom nodes and links and not in the layers it self.
This way I did not had to change how TSimpleGraph handles its objects making it easier for me to upgrade to newer versions. Ofcourse this makes it slower to handle a big number of objects since simple graph has to propagate the messages through all the objects to find out if they are visible instead of asking the layer and ignore the objects in the layer it self.
I'm evaluating the cost of implementing a layer logic where each layer is a container of objects as well but I'm no ware near to start coding.
Gronfi wrote:-The graphs/objects inside a layer must be clipped inside the owner layer, only the links can travel between layers without being clipped.
Ohh you want a container node that will help you to group nodes together and allow you to create units of objects I think that this would be better handled by a group node which will act as a container. A GroupNode is something I have on my drawing board at the moment but even that will not allow you to define a clipping area although it would be closer to what you want to do. Since my needs are more oriented on an ER designer it would be ill advised to have multiple clipping regions in a single diagram.
I do not pretend that I understand the reasons behind your requirements so I can only offer my objects the moment they are ready for public review, although I"m a bit skeptic about it since I never received any feed back from my last updates. I don't know what to assume is it that my code is stable enough and no one had any problems or is it that its so unstable that no one bothered to give it a second change.
Anyway since the grouping is a feature asked by a few people in this groups I'll try to work on that and I'll post it here when its ready. This will probably be one of the 2 last updates, The other one is an update to TPreview object. Everything depends on the feed back I'll get.
Regards
Jo