|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
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 );
void updateVtkImageDataSlot()
static ImageMapperMonitorPtr create(vtkVolumePtr volume, ImagePtr image)
Namespace for all CustusX production code.
void vtkImageDataChanged(QString uid=QString())
emitted when the vktimagedata are invalidated and must be retrieved anew.
void setMaxVolumeSize(long maxVoxels)
set max volume size for rendering. Must be set before setImage()
void setUseVolumeTextureMapper()
virtual void removeRepActorsFromViewRenderer(ViewPtr view)
vtkVolumeMapperPtr mMapper
vtkSmartPointer< class vtkVolume > vtkVolumePtr
virtual bool hasImage(ImagePtr image) const
check if the reps has the image
vtkSmartPointer< class vtkVolumeTextureMapper3D > vtkVolumeTextureMapper3DPtr
void transformChanged()
emitted when transform is changed
void vtkImageDataChangedSlot()
void transformChangedSlot()
virtual void setImage(ImagePtr image)
set the reps image
boost::shared_ptr< class Image > ImagePtr
boost::shared_ptr< class View > ViewPtr
void setUseGPUVolumeRayCastMapper()
virtual ImagePtr getImage()
get the reps image
long mMaxVoxels
always resample volume below this size.
virtual void addRepActorsToViewRenderer(ViewPtr view)
vtkSmartPointer< class vtkGPUVolumeRayCastMapper > vtkGPUVolumeRayCastMapperPtr
cx::VolumePropertyPtr mVolumeProperty
cx::ImageMapperMonitorPtr mMonitor
helper object for visualizing clipping/cropping