The measurement function of markups is currently right click to indicate the end, I want to change it to middle click to end, right click to rotate the model. I didn’t find anywhere in markups about mouse event handling, how I should do that.
you can read the code of vtkSlicerMarkupsWidget,may be help
Ok, thanks. I’ll read it
You can use the SetEventTranslation
method to change keyboard and mouse event mapping to widget events. You can find examples on this forum and in the script repository.
Yes, I have found this way. Thank you very much for your answer
1 Like