15 #include <vtkPiecewiseFunction.h> 16 #include <vtkColorTransferFunction.h> 17 #include <vtkVolumeProperty.h> 19 #include <vtkSmartVolumeMapper.h> 22 #include <vtkGPUVolumeRayCastMapper.h> 25 #include <vtkImageData.h> 26 #include <vtkVolume.h> 27 #include <vtkRenderer.h> 28 #include <vtkMatrix4x4.h> 63 mMapper->SetBlendModeToComposite();
75 #ifndef CX_VTK_OPENGL2 76 mapper->SetPreferredMethodToNVidia();
78 mMapper->SetBlendModeToComposite();
85 view->getRenderer()->AddVolume(
mVolume);
90 view->getRenderer()->RemoveVolume(
mVolume);
111 mMapper->SetInputData( (vtkImageData*)NULL );
vtkSmartPointer< class vtkGPUVolumeRayCastMapper > vtkGPUVolumeRayCastMapperPtr
vtkSmartPointer< class vtkVolume > vtkVolumePtr
void transformChangedSlot()
virtual void addRepActorsToViewRenderer(ViewPtr view)
vtkVolumeMapperPtr mMapper
virtual void removeRepActorsFromViewRenderer(ViewPtr view)
static ImageMapperMonitorPtr create(vtkVolumePtr volume, ImagePtr image)
void transformChanged()
emitted when transform is changed
boost::shared_ptr< class Image > ImagePtr
long mMaxVoxels
always resample volume below this size.
boost::shared_ptr< class View > ViewPtr
cx::VolumePropertyPtr mVolumeProperty
virtual ImagePtr getImage()
get the reps image
void updateVtkImageDataSlot()
virtual bool hasImage(ImagePtr image) const
check if the reps has the image
virtual void setImage(ImagePtr image)
set the reps image
void setUseGPUVolumeRayCastMapper()
void vtkImageDataChanged(QString uid=QString())
emitted when the vktimagedata are invalidated and must be retrieved anew.
void setUseVolumeTextureMapper()
vtkSmartPointer< class vtkVolumeTextureMapper3D > vtkVolumeTextureMapper3DPtr
void setMaxVolumeSize(long maxVoxels)
set max volume size for rendering. Must be set before setImage()
cx::ImageMapperMonitorPtr mMonitor
helper object for visualizing clipping/cropping
void vtkImageDataChangedSlot()
Namespace for all CustusX production code.