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());
vtkSmartPointer< class vtkVolume > vtkVolumePtr
static ImageMapperMonitorPtr create(vtkVolumePtr volume, ImagePtr image)
virtual void applyCropping()
boost::shared_ptr< class Image > ImagePtr
boost::shared_ptr< class ImageMapperMonitor > ImageMapperMonitorPtr
vtkSmartPointer< class vtkVolumeMapper > vtkVolumeMapperPtr
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,xmax,ymin,ymax,zmin,zmax}, in order to simplify communication with vtk.
virtual void applyClipping()
ImageMapperMonitor(vtkVolumePtr volume, ImagePtr image)
Namespace for all CustusX production code.
virtual void clearClipping()