Hey,
I want to set the center of my reslice widget cursor, using the position where we clicked with the mouse in a reslice actor (one of the three views in the ResliceCursorWidget ),
I did this
obj.interactor.onLeftButtonPress(async (callData) => {
const pos = callData.position;
const arr = [pos[0], pos[1], pos[2]];
widget.setCenter(arr);
})
I figured out that we can’t do a setCenter
using the position value, because the widget center value is different from the click position at certain location.
I don’t know how to setCenter the widget correctly thank you for your help