OHIF / react-vtkjs-viewport

VTK.js image viewport component in React

Home Page:https://react-vtkjs-viewport.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I change the mouse scrolling step in 2D MPR(VTK extension)

lannyyip opened this issue · comments

As I need the 2D MPR function to view the OCT images of small organs, the spacing information is set rightly and images can be viewed under 2D MPR mode. But when I scroll mouse, the crosshairs move greatly (about 1mm in real world). This brings great inconvinience to operations.

Questions: How can I change the scroll steps in 2D MPR(VTK extension)? I tried to find answers in code, but failed. I found that VTKplugin repository, step is set to spacing value, which is the right behavior I expected, but can not find any clue in Viewers repository and react-vtkjs-viewport repository.
Could you please give me a hand on this. Thank you!

Lanny

I found the place the change the step. It could be hardcoded to a certain value, but not easy to set to spacing.