Drag and drop actors

Is there a way to “drag and drop” a 2D actor? I’ve seen this question come up multiple times in older forum threads, but I haven’t seen any with a posted solution.

To be clear, I don’t need to rotate, pan, zoom, etc. I’d like to be able to mouse click on one actor of many within a window, drag that actor to a new location in the render window, and drop it in this location, which essentially would be come its new origin.

Hi, Alister,

Please, check this example: https://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/MoveActor .



Thanks, Paulo! This is what I was looking for.

1 Like

Updating the link to the example: https://kitware.github.io/vtk-examples/site/Cxx/Visualization/MoveActor