<!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.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi</FONT></DIV>
<DIV><FONT face=Arial size=2>Use GetEventPosition method instead of
GetMousePosition.</FONT></DIV>
<DIV><FONT face=Arial size=2>HTH</FONT></DIV>
<DIV><FONT face=Arial size=2>Vidyadhar</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=icebishop@gmail.com href="mailto:icebishop@gmail.com">Diego
Parada</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, September 14, 2005 6:13
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] capture mouse
position</DIV>
<DIV><BR></DIV>Hi;<BR><BR>I can't get the mouse positon, the code
is:<BR><BR>//replace the vtkCommand<BR>void OnLButtonUp(vtkObject *caller,
unsigned long eid, void *clientdata, void
*calldata)<BR>{<BR> int x,y;<BR>
<BR> vtkInteractorStyle * istyle = (vtkInteractorStyle *)
caller;<BR> vtkRenderWindowInteractor * iren =
istyle->GetInteractor();<BR>
iren->GetMousePosition(&x,&y); <BR>}<BR>// whit
style interactor<BR><BR> vtkInteractorStyle * istyle =
vtkInteractorStyle::New();<BR> vtkCallbackCommand * LMouseUp
= vtkCallbackCommand::New();<BR>
LMouseUp->SetCallback(OnLButtonUp);<BR>
istyle->AddObserver(vtkCommand::LeftButtonReleaseEvent,LMouseUp);<BR>
this->m_InteractorRender->SetInteractorStyle(istyle);<BR><BR>the code
runs but not capture the mouse position<BR><BR>the application is made in VC++
6.0 MFC<BR><BR><BR>Thanks<BR clear=all><BR>-- <BR>Diego Armando Parada
Cuervo<BR>Estudiante de Ingeniería de Sistemas y Computación<BR>Universidad
Pedagógica y Tecnológica de Colombia </BLOCKQUOTE></BODY></HTML>