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>
&nbsp;&nbsp;&nbsp; int x,y;<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; vtkInteractorStyle * istyle = (vtkInteractorStyle *) caller;<br>
&nbsp;&nbsp;&nbsp; vtkRenderWindowInteractor * iren = istyle-&gt;GetInteractor();<br>
&nbsp;&nbsp;&nbsp; iren-&gt;GetMousePosition(&amp;x,&amp;y);&nbsp;&nbsp;&nbsp; <br>
}<br>
// whit style interactor<br>
<br>
&nbsp;&nbsp;&nbsp; vtkInteractorStyle * istyle = vtkInteractorStyle::New();<br>
&nbsp;&nbsp;&nbsp; vtkCallbackCommand * LMouseUp = vtkCallbackCommand::New();<br>
&nbsp;&nbsp;&nbsp; LMouseUp-&gt;SetCallback(OnLButtonUp);<br>
&nbsp;&nbsp;&nbsp; istyle-&gt;AddObserver(vtkCommand::LeftButtonReleaseEvent,LMouseUp);<br>
&nbsp;&nbsp;&nbsp; this-&gt;m_InteractorRender-&gt;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