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

David Doria daviddoria at gmail.com
Tue May 21 07:54:02 EDT 2013


On Mon, May 20, 2013 at 5:53 PM, Cary lorey
<developement.unity at gmail.com> wrote:
> thank you for your reply, I tried this example but I have not found a
> solution to recover the parameters : x, y, length and width of the
> widgetborder.
> I actually need these parameters (x,y,h,w)because I have a method to detect
> a region of interest with the mouse handling and need x, y, h, w of the
> widgetboder.
>
> have you an idea please ?thank you

That example shows how to get the upper right and lower left corners -
you can easily get the width and height from that. If you have further
questions on this, please send them to the VTK mailing list.

David


More information about the Insight-users mailing list