First click-and-drag on 3D view

Hi all,
After a first 3D loading, the volume is well displayed and I want to use the mouse to rotate the 3D view.

I do not know why but the first click-and-drag event with the mouse moves one of the ROI side (I control one of the colored points of my ROI) even if my click is not over the node. After releasing the left button, the next click-and-drag allows me to rotate the 3D view.

Is there any function to call in the slicerrc file to avoid the phenomenum?

Best

It sounds like you are volume rendering with the cropping ROI enabled? You can turn off the visibility and it won’t be visible or selectable.

image

If that’s not it, post a screenshot and provide the exact steps.

Hello @pierper,
Yes this is true, but I want to chane the camera rotation without disabling the Display ROI.

I agree it can be inconvenient that the ROI widget grabs all the mouse events, but for now I think you just need to be aware of it, and either turn it off when not using it or maybe zoom out a bit with the mouse wheel before rotating.

I think @ada refers to the bug that the first interaction in a 3D view after displaying a ROI adjusts that ROI.

As a workaround, you can click once in the 3D view before you click-and-drag the first time you show an annotation ROI.

Since a workaround exists and we will add much better ROI widget to markups module, I don’t think we will fix this bug.

Yes @lassoan it is exactly what you are describing. I understand.

Nevertheless, is it possible to automatically create a “fake” click on the 3D view with python (as the user could do) ?
For my use, it could be useful to automatically “fake” some mouse clicks

It would be just a workaround, but if you really need to you could use this testing method.

1 Like