I’m successfully clipping a volume render using the mapper’s (
AddClippingPlane, passing a fully configured
plane = vtk.vtkPlane() plane.SetOrigin(0,125,0) plane.SetNormal(0.,1.,0.) volume_mapper.AddClippingPlane(plane)
What I would like to do now is to update the plane with the
vtkImplicitPlaneWidget2. I suppose I have to add an observer to update the plane. I’ve got 2 questions:
- does using the
AddClippingPlane(plane)keep a reference to the
volume_mapperso that if the plane changes also the
volume_mapperis aware of it, or do I have to remove the plane and add the new one?
- What event should I observe? I did not really manage to understand how to observe the widget’s events unless I observe (basically) all mouse events and then translate the event to widget events.