Hi everybody, I was wondering if somebody knows how to obtain the screen position of an mitk render window e.g. the 3D render window (stdmulti.widget4, 3d) I've already tried to obtain the position the following two ways
1: vtkRenderWindow *renderWindow = mitk::BaseRenderer::GetRenderWindowByName("stdmulti.widget4"); auto pos = renderWindow->GetPosition(); std::cout << "posx " << pos[0] << "posy " << pos[1] << std::endl; 2: mitk::IRenderWindowPart *renderWindowPart = GetRenderWindowPart(); auto qrwin = renderWindowPart->GetQmitkRenderWindow("3d"); auto qpoint = qrwin ->pos(); std::cout << "posx1 " << pos[0] << "posy1 " << pos[1] << std::endl; Both ways result produce coordinates (0,0) every time, which should not be the case? Any help would be appreciated, Matthias
_______________________________________________ mitk-users mailing list mitk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mitk-users