Screen position from RAS coordinates

slicer.util.clickAndDrag() includes a code snippet that uses an interactor to show the screen position on left mouse click. Is there a way to get the screen position from RAS coordinates in the Red slice? I want to import ROIs from another program and draw them in slicer with simulated mouse clicks.

I found rasToDisplay which does what I want.

1 Like