Some questions about 3D medical image reconstruction and segmentation

Segmentation of 3D images by mouse sketching,
my train of thought
Uploading: ~H7W0G67NOIVAG@L`OWTFKY.png…
The Cropping method of vtk ValueMapper performs 3D image segmentation. How do I get the parameters of the SetCroppingRegionPlanes function and the SetCroppingFlags function through the mouse?
If the above method is not feasible, How can I do.

Segmentation of 3D images by mouse sketching,
my train of thought


The Cropping method of vtk ValueMapper performs 3D image segmentation. How do I get the parameters of the SetCroppingRegionPlanes function and the SetCroppingFlags function through the mouse?
If the above method is not feasible, How can I do.

Did you consider the ImageCroppingWidget example?

Thank you, the method is good, and I’ve abandoned the previous method, it’s so poor to work and implement.