Dear VTK users,
Long time no see . I’ve restarted using VTK in Python and I’m currently fighting with vtkDistanceWidget…
I have linked it to a vtkDistanceRepresentation2D and I’m trying to use it in a 3D window where I have a bunch of actors.
While my actors are immersed in a scene where distances and positions are expressed in meters (world coordinates), I would like to be able to intercept the behavior of vtkDistanceWidget while dragging the mouse and convert the text it displays into another unit of measurement (cm, feet, whatever).
Does anyone know if something like this is possible? Which event should I intercept? How do I access the text in the vtkDistanceWidget and modify its content? If I intercept the InteractionEvent will I block the original InteractionEvent user by vtkDistanceWidget?
Thank you in advance for any and all suggestions.
Andrea.