gvFreeLayout and bb attribute

gvFreeLayout apparently doesn't clear completely the root Agraph_t*, since I get multiple 'boxes' (actually invisible, given resulting colors).
I do call gvFreeLayout between successive gvLayout,gvRender. I think could be a problem in libxdot. Here is the result of operation sequence

first call:
0xa0b540 _draw_ c 7 -#ffffff C 7 -#ffffff P 4 0 0 0 198 234 198 234 0
...

second call:
0xa0b540 _draw_ c 7 -#ffffff C 7 -#ffffff P 4 0 0 0 108 198 108 198 0 c 7 -#ffffff C 7 -#ffffff P 4 0 0 0 198 234 198 234 0
...

third call:
0xa0b540 _draw_ c 7 -#ffffff C 7 -#ffffff P 4 0 0 0 36 54 36 54 0 c 7 -#ffffff C 7 -#ffffff P 4 0 0 0 108 198 108 198 0 c 7 -#ffffff C 7 -#ffffff P 4 0 0 0 198 234 198 234 0
...

i.e. new bb boxes get inserted before older ones.

I have a workaround, but I'm concerned by memory limits in libxdot.

Thanks for your attention, Carlo

Can you be more specific as

Can you be more specific as to what you are doing? Are you rendering into xdot format and then using libxdot to parse the result? Thanks.

gvFreeLayout

Yes, I render to xdot then use libxdot to translate in Qt graphics objects. I'm working on getting smooth animations, 'folding' nodes.

Those multiple 'boxes' on root caused some part disapper, depending on order...

The problem shows even in a much simplified test, where the graph isn't changed at all.

The problem involves an

The problem involves an undocumented feature which allows an application to specify a background image. I will decide how to specify the feature. Meanwhile, you can avoid the problem by calling

    agset (g, "_draw_","");

before calling gvLayout().

gvFreeLayout

Thanks so much for your help

Carlo

Recent comments