<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello all!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> My goal is to get an image x,y
coordinates by clicking on the left mouse button. I have this code for instance
:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>int *position;</FONT></DIV>
<DIV><FONT face=Arial
size=2>position=my_vtkRenderWindowInteractor->GetEventPosition();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>position[0] and position[1] contain the x,y
coordinates but, when I click using the left mouse button, the initial
interactor make an image rotation...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> How could I block this rotation
? I would want that nothing happens when I click on the left mouse button.
In this way, I can get mouse position when clicking without disturbing the
image.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> And a second question : this
method gives the real pixel coordinates of the vtkRenderWindow. Is there any
method to get direct vtkImageData pixel coordinates (which are not the
same as render window's : it depends on the image spacing and the
space between the window bondaries and the renderer... )???</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks by advance,</FONT></DIV><FONT face=Arial
size=2>
<DIV><BR>Matei </DIV>
<DIV> </DIV>
<DIV></FONT> </DIV></BODY></HTML>