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;
97 virtual QString
getType()
const {
return "VolumetricRep"; }
98 virtual void setImage(
ImagePtr image);
100 virtual bool hasImage(
ImagePtr image)
const;
102 void setMaxVolumeSize(
long maxVoxels);
103 void setUseGPUVolumeRayCastMapper();
104 void setUseVolumeTextureMapper();
108 virtual void addRepActorsToViewRenderer(
ViewPtr view);
109 virtual void removeRepActorsFromViewRenderer(
ViewPtr view);
120 void transformChangedSlot();
121 void vtkImageDataChangedSlot();
122 void updateVtkImageDataSlot();
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