vtkCocoaRenderWindow::SetPosition origin is not coherent with other render windows
vtkCocoaRenderWindow::SetPosition is using the standard cocoa API to position itself and it works great but it is not coherent with the other render windows implementation.
Indeed, cocoa is lower-left based, while all other impl are upper left based:
- Xorg: https://tronche.com/gui/x/xlib/introduction/overview.html: Upper left
- Windows: http://www.jasinskionline.com/windowsapi/ref/s/setwindowpos.html: Upper left
- SDL: https://wiki.libsdl.org/SDL_SetWindowPosition: Upper left
- Cocoa: https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CocoaDrawingGuide/Transforms/Transforms.html: Lower left
One could argue that VTK is merely using standard method in their respective framework to set the position however, since most VTK based cross platform application rely on VTK factory to create the right render window, it requires developers to add a special case for MacOS, which is not great.
The fix should be simple enough (just invert the Y coordinates) but I want to make sure this is fine before moving forward. Also I may be missing something with this, not a cocoa dev here.
@seanm @dgobbi @jaswant.panchumarti @SeunOdutola @cory.quammen