[vtkusers] Infovis: Changing layout strategy parameters

Jeff Baumes jeff.baumes at kitware.com
Thu Dec 18 09:48:48 EST 2008


> Why do the docs say "The strong recommendation is that you do not change
> this parameter" for things like initial temperature and cool down rate on
> layout strategies like Fast2D?

You certainly may play around with these parameters. Those values were
just found to be "good" in practice, where the layout is part of an
interactive application and you want the layout to complete relatively
quickly.

> Instead of changing these parameters, is there a way to tell the layout
> strategy to give the graph another "kick" from the current state (rather
> than from the initial random layout) once it thinks the layout is complete?

Try this: call Modified() on the vtkGraphLayout instance, then update
the pipeline again. It should not start from scratch, but should
instead start with the current positions of the graph.

Jeff



More information about the vtkusers mailing list