Once I have added lineWidget in resliceCursorWidget in the example on the web vtk.js I want to be able to move it in 3d view on the cube like in the lineWidget example on the vtk.js web vtk.js
LineWidget is locked on the 2d views and I can only move it in 2d, I can only move LineWidget in X and Y but not in z.
What do I have to configure in linewidget or resliceCursorWidget to allow 3D movement?
You have to change the manipulator normal. You may want to set the normal to the same than the camera normal.
Alternatively you can also change the manipulator type (default is a plane manipulator). You might want to consider the new vtkPickerManipulator that would make your line handles stick to “any” of the 3 planes (you have to configure the picklist of the picker manipulator though)
But when I add LineWidget in one of the views the other two are blocked and I can’t interact neither with ResliceCursorWidget nor with LineWidget in any of them, I can only interact in the view where I added LineWidget.
I think it has something to do with grabFocus and releaseFocus but I’m not sure and I don’t know how to fix it.