[vtkusers] set name to actor and display it with mouse hover

Bill Lorensen bill.lorensen at gmail.com
Tue Jun 19 14:39:12 EDT 2018


Try this
https://lorensen.github.io/VTKExamples/site/Cxx/Widgets/BalloonWidget/


On Tue, Jun 19, 2018, 6:56 AM smurphy <sebastien.murphy at gmail.com> wrote:

> Hello,
>
> I would like to assign names to individual actors and that the actor name
> gets displayed temporarily when the mouse is hovered over it.
>
> The closest example I could find is this one:
>
> https://www.vtk.org/Wiki/VTK/Examples/Python/Interaction/HighlightAPickedActor
>
> Instead of clicking and the sphere turning red, I would like for a text to
> be displayed next to the mouse (e.g  "this is sphere number 1"). Ideally
> when hovering, but on click is also fine.
>
> Is this, or something equivalent, possible in vtk? (I would later also try
> it in vtk.js)
>
> Thanks,
> Sebastien
>
>
>
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180619/b7f69efa/attachment.html>


More information about the vtkusers mailing list