Hi, i’m try to convert this code that was build for 3DSlicer 3.6 to the newest 3DSlicer 4.10.2, but i have some issues to define the interactor.
Can you help me?
This is a part of the function that needs the interactor:
def HandleClickInRedSlice(self):
if not self.Selecting:
return
coordinates = self.RedSliceInteractor.GetLastEventPosition()
ctrlKey = self.RedSliceInteractor.GetControlKey()
I’m trying to observe the mouse left-click on the Red Slice of 3DSlicer, and i have also to check if Ctrl-key is pressed and to take the coordinates on the image of the point pressed
Hi, i’m trying to update this code (build for 3DSlicer 3.6) for 3DSlicer 4.10.2 but i have some issues with the interactor. I want to observe the “LeftButtonReleaseEvent” when i press only on the Red Slice Viewer (in 3DSlicer).
Thanks for your suggestion. There’s a way to run a function when i create only one markup node with mouse-click? I tried to do something with AddObserver, but i found some issues.