[Paraview] Problems with displaying labels floating over data points

Nenad Vujicic nenadus at gmail.com
Wed May 9 17:53:33 EDT 2012


Hello everyone,

I have a set of points over which I would like to have floating labels
rendered from values defined in per-point attribute array. If I select
these points and turn on "Point Labels", on Selection Inspector
docking panel, I get exactly what I need, but, I would like to have
these labels not bound to currently selected points.

I figured out that these labels are drawn using
vtkDataLabelRepresentation class, but I was unable to apply this
representation to points I extracted from plugin. My idea was to
create a filter, which will extract all points I'm interested in, and
to catch adding new representation
object to Server Manager and current view and replace it with
pqDataRepresentation which points to vtkDataLabelRepresentation.
Unfortunately, it didn't work. I also tried with patching
vtkPVCompositeRepresentation to have always turned on these labels,
but it failed too.

Does anyone have idea how I could add these labels?

Thanks to everyone!

Nenad.


More information about the ParaView mailing list