How does the MouseCameraTrackballRollManipulator set the center of rotation? When I use it in vtkResliceCursorWidget, the rotation center is in the upper left corner or the lower left corner.
You should be able to call rollManipulator.setCenter([x, y, z])
to set the center of the roll.
Hello, I tried to set the center of rotation through setCenter([50.0,50.0,50.0]), but it didn’t work.
my code:
One rotates by the lower left corner, and one rotates by the upper left corner
Try interactorStyleManipulator.setCenterOfRotation([x, y, z])
instead. That sets the manipulator’s center, which is why calling setCenter directly isn’t working.
Thanks a lot, it works