[Insight-users] How to handle x, y, w and h of a rectangle with the mouse with vtk?

David Doria daviddoria at gmail.com
Mon May 20 14:21:41 EDT 2013


On Mon, May 20, 2013 at 2:08 PM, Cary lorey
<developement.unity at gmail.com> wrote:
> Hello,
>
> I use vtkContext2D class to draw a rectangle, I want to draw the rectangle
> with the mouse ( not pass the parameters(x,y,w,h) in the code) and retrieve
> each change the new coordinates (x, y) as well as the length and width of
> the rectangle to redraw.
>
> Can you help me please!
>
> thank you in advance.

As this is a VTK question, it should be sent to the vtk-users mailing
list (rather than ITK): http://www.vtk.org/mailman/listinfo/vtkusers

However, I believe this is what you're looking for:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/Border

David


More information about the Insight-users mailing list