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

Cary lorey developement.unity at gmail.com
Mon May 20 14:08:34 EDT 2013


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130520/606ccb98/attachment.htm>


More information about the Insight-users mailing list