[vtkusers] Slow rendering by vtkLabeledDataMapper... How to increase speed??

David Doria daviddoria+vtk at gmail.com
Mon Feb 22 16:53:35 EST 2010


On Mon, Feb 22, 2010 at 2:33 PM, Jeff Baumes <jeff.baumes at kitware.com>wrote:

> You may want to take a look at vtkLabelPlacementMapper, which will
> only render a subset of non-overlapping labels. From doxygen:
>
> vtkLabelPlacementMapper
> Places and renders non-overlapping labels. To use this mapper, first
> send your data through vtkPointSetToLabelHierarchy, which takes a set
> of points, associates special arrays to the points (label, priority,
> etc.), and produces a prioritized spatial tree of labels. This mapper
> then takes that hierarchy (or hierarchies) as input, and every frame
> will decide which labels and/or icons to place in order of priority,
> and will render only those labels/icons. A label render strategy is
> used to render the labels, and can use e.g. FreeType or Qt for
> rendering.
>
> Jeff
>

Rakesh,

I made an example shell:
http://www.vtk.org/Wiki/VTK/Examples/LabelPlacementMapper

If you get it to work and could complete/fix the example, that would be
great!

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100222/1c28f33d/attachment.htm>


More information about the vtkusers mailing list