[vtkusers] Show tooltip

C P cp.vtk.user at googlemail.com
Fri Dec 2 08:56:03 EST 2016


Dear vtk users,

how can I show a tooltip at some 2D position on the screen? I checked the
vtkTooltipItem class but I do not know how to make it show something. I
cannot add it to the vtkRenderer like a 2D actors. I tired this but it
doesn't work (in Oython):

tooltip = vtk.vtkTooltipItem()
tooltip.SetText("some text")
tooltip.SetVisible(1)

How is it done? Thanks.

Best
CP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161202/133d0e81/attachment.html>


More information about the vtkusers mailing list