[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 17:53:30 EDT 2013


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


2013/5/20 David Doria <daviddoria at gmail.com>

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


More information about the Insight-users mailing list