Does Slicer support 2d slice view shift between different pics whit mouse left key pressed and drag up and down?

like radioAnt supported. we found that many doctors want to use Slicer with left mouse button pressed and drag up and down to shift betweeen 2d dicom pics.

1 Like

Yes,this is a good ideal.

1 Like

yes, I wondering if we can add python code in .slicerrc.py file? that will be very convenient for doctor

This is very doable, either with some kind of code that overrides event processing, or more correctly by introducing a new mouse mode, like the window/level or fiducial placement modes.

At least for me, Slicer already provides a very efficient way to rapidly explore a slice stack (volume) using the shift key and mousing over orthogonal views. But if people are used to other interfaces they are free to customize.

I want to report a bug, using ‘shift’ and mouse moves in single max view , the pics won’t shift

Shift + mouse-move does not shift the current slice but all the others. So, when the view is maximized then you will not see any effect. You can still use the mouse wheel, cursor arrow keys, or page up/down keys to shift the current slice.

The reason for the different behavior is that 3D Slicer is a 3D-oriented software, so you don’t need to blindly browse slices by dragging in current view, but you can directly choose Slicer position in an orthogonal view. That said, to make slice browsing more convenient when only a single slice is displayed and to make Slicer more familiar to people who got used to use 2D-oriented image viewers, such as RadiANT, I agree that it would be a good idea to add a new mouse mode for slice browsing by left-click-and-drag.

1 Like

that will be great for doctors who familar with 2D dicom viewer to change to 3D Slicer, because some time they just need 2D mode for reading pics fast.

will slicer add this left-click-and-drag shift fun in future version?

What’s wrong with the slider just at the top of each slice view widget ?
slider

The other way round :

If I switch to other viewing software, I would have preferred the slider bar instead, and perhaps requested it.

Doctors… doctors… they should really adapt to what’s available.

1 Like

LOL, I can’t agree more, but left-click-and-drag to shift is realllllly convenient

Probably not unless there’s a funded project that needs it or someone contributes the feature.

ok,let me try, I want to contribute the feature

I have finished this function, I will push my code this days.

1 Like

ok
Left Mouse ‘click-and-drag’ to shift between 2d pics test ok by simzhangbest · Pull Request #6497 · Slicer/Slicer (github.com)
I have pull requsts ,but not approved, you can watch my code in the linke above, it’s not perfect, because when you use mouse to drag ,the direction changes won’t response rapidly, so is there any way to modify the function “ProcessIncDecSlice”, call for your help


the key point in my code ,I think the deltaY should be caculated in other ways. can you offer me some suggestions?
@lassoan @pieper @chir.set