<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Guys,<div><br></div><div>I am testing VTK 6.2 in a Qt 5.5 application. Now the display of the render is good, covers the complete area of the qtwidget, but I was playing the  vtkRenderWindowInteractor to retrieve the move position over the vtk render, and the mouse position in Y is wrong.</div><div><br></div><div>I have a class deviated of <span style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px;">vtkInteractorStyleImage.</span></div><div><br></div><div>and when I want to read the mouse position I used:</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(112, 61, 170);">vtkRenderWindowInteractor<span style="color: #000000"> *interactor = </span><span style="color: #bb2ca2">this</span><span style="color: #000000">-></span><span style="color: #3d1d81">GetInteractor</span><span style="color: #000000">();</span></div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(112, 61, 170);"><span style="color: #000000"><br></span></div><div style="margin: 0px;"><div style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px; margin: 0px;">    <span style="color: #bb2ca2">int</span> pixel_x = interactor-><span style="color: #3d1d81">GetEventPosition</span>()[<span style="color: #272ad8">0</span>];</div><div style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px; margin: 0px;">    <span style="color: #bb2ca2">int</span> pixel_y = interactor-><span style="color: #3d1d81">GetEventPosition</span>()[<span style="color: #272ad8">1</span>];</div><div style="color: rgb(112, 61, 170); font-family: Menlo; font-size: 11px; margin: 0px;"><br></div><div style="margin: 0px;"><div style="margin: 0px;">the pixel position in x is correct, means that is the twice the length without retina activated.</div><div style="margin: 0px;">the pixel position in y is incorrect.</div><div style="margin: 0px;"><br></div></div><div style="margin: 0px;">I was looking others values and I found that the size of the windows are the same. </div><div style="margin: 0px;"><br></div><div style="margin: 0px;"><div style="margin: 0px; font-size: 11px; font-family: Menlo;">    <span style="color: #bb2ca2">long</span> w = interactor-><span style="color: #3d1d81">GetSize</span>()[<span style="color: #272ad8">0</span>];</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">    <span style="color: #bb2ca2">long</span> h = interactor-><span style="color: #3d1d81">GetSize</span>()[<span style="color: #272ad8">1</span>];</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px;">meaning that if the windows size without retina is for example width: 375, height: 261, with retina activated I retrieve the values:  width: 756, height: 756. I think that this is why the computation of the mouse location in Y position is wrong.</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">I was trying to follow the workflow of the QVTKWidget and vtkRenderWindowInteractor, but I didn't found any error. Someone knows where I could fix this problem. </div><div style="margin: 0px;"><br></div><div style="margin: 0px;">Where in vtk source code the retina resolution is detected?</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">Thanks in advance for any help.</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">Cheers,</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">Waldo</div></div></div></body></html>