[ITK] [ITK-users] Mouse release and mapping (x, y) to slice (i, j)

Francois Budin francois.budin at kitware.com
Mon Nov 7 09:04:04 EST 2016


Hello Abdelkhalek,

Your question seem to be related to VTK, not ITK. You may want to contact
the VTK mailing list. You can register to the VTK mailing lists from this
page:
http://www.vtk.org/mailing-lists/

Hope this helps,
Francois

On Mon, Nov 7, 2016 at 8:53 AM, Abdelkhalek Bakkari <
bakkari.abdelkhalek at hotmail.fr> wrote:

> Dear ITK users,
>
>
>
> I am using QT and VTK. I created a mouse release method to use it inside a
> QVTKWidget :
>
> void MyQVTKWidget::mouseReleaseEvent(QMouseEvent* event)
>
> {
>
> if (pMainWindow){
>
>     ((MainWindow *)pMainWindow)->myMouseReleaseEvent(event);}
>
>     // call the super class to avoid troubles
>
>     QVTKWidget::mouseReleaseEvent(event);
>
> }
>
> Now, I would like to map (x,y) to slice (i,j). Generally, mouse position
> should be mapped into ( i, j) of current slice. It depends on the zoom
> factor, aspect ratio of the slice and the window size.
>
>
> But, I am wondering about how can I solve this issue.
>
>
>
> Thanks in advance!
> Best regards,
>
>
> Abdelkhalek Bakkari
> Ph.D candidate in Computer Science
> Institute of Applied Computer Science
> Lodz University of Technology, Poland
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20161107/9b480ea1/attachment-0001.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list