<div><div class="gmail_quote">On Mon, Feb 22, 2010 at 2:33 PM, Jeff Baumes <span dir="ltr">&lt;<a href="mailto:jeff.baumes@kitware.com">jeff.baumes@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
You may want to take a look at vtkLabelPlacementMapper, which will<br>
only render a subset of non-overlapping labels. From doxygen:<br>
<br>
vtkLabelPlacementMapper<br>
Places and renders non-overlapping labels. To use this mapper, first<br>
send your data through vtkPointSetToLabelHierarchy, which takes a set<br>
of points, associates special arrays to the points (label, priority,<br>
etc.), and produces a prioritized spatial tree of labels. This mapper<br>
then takes that hierarchy (or hierarchies) as input, and every frame<br>
will decide which labels and/or icons to place in order of priority,<br>
and will render only those labels/icons. A label render strategy is<br>
used to render the labels, and can use e.g. FreeType or Qt for<br>
rendering.<br>
<font color="#888888"><br>
Jeff<br>
</font><div><div></div><div class="h5"></div></div></blockquote></div><br></div><div>Rakesh,</div><div><br></div><div>I made an example shell:</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/LabelPlacementMapper">http://www.vtk.org/Wiki/VTK/Examples/LabelPlacementMapper</a><div>
<br></div><div>If you get it to work and could complete/fix the example, that would be great!</div><div><br clear="all">Thanks,<br><br>David</div></div>