16 #include <vtkVolume.h>
17 #include <vtkAbstractVolumeMapper.h>
18 #include <vtkPlaneCollection.h>
19 #include <vtkVolumeMapper.h>
53 void ImageMapperMonitor::clipPlanesChangedSlot()
63 for (
unsigned i=0; i<mPlanes.size(); ++i)
65 mVolume->GetMapper()->RemoveClippingPlane(mPlanes[i]);
77 mPlanes =
mImage->getAllClipPlanes();
78 for (
unsigned i=0; i<mPlanes.size(); ++i)
80 mVolume->GetMapper()->AddClippingPlane(mPlanes[i]);
98 mapper->SetCropping(
mImage->getCropping());
102 mapper->SetCroppingRegionPlanes(bb_d.begin());