34 #ifndef CXVOLUMETRICREP_H_
35 #define CXVOLUMETRICREP_H_
37 #include "cxResourceVisualizationExport.h"
69 virtual void setImage(
ImagePtr image) = 0;
71 virtual bool hasImage(
ImagePtr image)
const = 0;
74 virtual void setMaxVolumeSize(
long maxVoxels) = 0;
76 void internalVolumeChanged();
99 virtual QString
getType()
const {
return "VolumetricRep"; }
100 virtual void setImage(
ImagePtr image);
102 virtual bool hasImage(
ImagePtr image)
const;
104 void setMaxVolumeSize(
long maxVoxels);
105 void setUseGPUVolumeRayCastMapper();
106 void setUseVolumeTextureMapper();
110 virtual void addRepActorsToViewRenderer(
ViewPtr view);
111 virtual void removeRepActorsFromViewRenderer(
ViewPtr view);
122 void transformChangedSlot();
123 void vtkImageDataChangedSlot();
vtkSmartPointer< class vtkVolume > vtkVolumePtr
vtkVolumeMapperPtr mMapper
boost::shared_ptr< class Image > ImagePtr
long mMaxVoxels
always resample volume below this size.
boost::shared_ptr< class View > ViewPtr
cx::VolumePropertyPtr mVolumeProperty
boost::shared_ptr< class ImageMapperMonitor > ImageMapperMonitorPtr
Default implementation of Rep.
vtkSmartPointer< class vtkVolumeMapper > vtkVolumeMapperPtr
virtual vtkVolumePtr getVtkVolume()
get the images vtkVolume
virtual QString getType() const
boost::shared_ptr< class VolumeProperty > VolumePropertyPtr
virtual ~VolumetricBaseRep()
static VolumetricRepPtr New(QString uid="")
boost::shared_ptr< class VolumetricRep > VolumetricRepPtr
cx::ImageMapperMonitorPtr mMonitor
helper object for visualizing clipping/cropping