30 #ifndef vtkGPUVolumeRayCastMapper_h 31 #define vtkGPUVolumeRayCastMapper_h 33 #include <vtkRenderingVolumeModule.h> 57 vtkSetClampMacro( AutoAdjustSampleDistances,
int, 0, 1 );
58 vtkGetMacro( AutoAdjustSampleDistances,
int );
68 vtkSetClampMacro( LockSampleDistanceToInputSpacing,
int, 0, 1 );
69 vtkGetMacro( LockSampleDistanceToInputSpacing,
int );
79 vtkSetClampMacro( UseJittering,
int, 0, 1 );
80 vtkGetMacro( UseJittering,
int );
93 vtkSetClampMacro( UseDepthPass,
int, 0, 1 );
94 vtkGetMacro( UseDepthPass,
int );
113 vtkGetMacro( SampleDistance,
float );
124 vtkSetClampMacro( ImageSampleDistance,
float, 0.1f, 100.0f );
125 vtkGetMacro( ImageSampleDistance,
float );
133 vtkSetClampMacro( MinimumImageSampleDistance,
float, 0.1f, 100.0f );
134 vtkGetMacro( MinimumImageSampleDistance,
float );
142 vtkSetClampMacro( MaximumImageSampleDistance,
float, 0.1f, 100.0f );
143 vtkGetMacro( MaximumImageSampleDistance,
float );
162 vtkGetMacro( FinalColorWindow,
float );
164 vtkGetMacro( FinalColorLevel,
float );
174 vtkGetMacro( MaxMemoryInBytes,
vtkIdType );
183 vtkSetClampMacro( MaxMemoryFraction,
float, 0.1f, 1.0f );
184 vtkGetMacro( MaxMemoryFraction,
float );
197 vtkGetMacro(ReportProgress,
bool);
216 double viewDirection[3],
245 enum { BinaryMaskType = 0, LabelMapMaskType };
253 vtkGetMacro( MaskType,
int );
254 void SetMaskTypeToBinary();
255 void SetMaskTypeToLabelMap();
267 vtkSetClampMacro(MaskBlendFactor,
float,0.0f,1.0f);
268 vtkGetMacro(MaskBlendFactor,
float);
287 vtkGetMacro(RenderToImage,
int);
298 vtkGetMacro(DepthImageScalarType,
int);
299 void SetDepthImageScalarTypeToUnsignedChar();
300 void SetDepthImageScalarTypeToUnsignedShort();
301 void SetDepthImageScalarTypeToFloat();
317 vtkGetMacro(ClampDepthToBackface,
int);
369 virtual void GetReductionRatio(
double ratio[3])=0;
395 vtkGetMacro(ColorRangeType,
int);
397 vtkGetMacro(ScalarOpacityRangeType,
int);
399 vtkGetMacro(GradientOpacityRangeType,
int);
417 double datasetBounds[6],
418 double scalarRange[2],
419 int numberOfScalarComponents,
420 unsigned int numberOfLevels)=0;
425 unsigned int level)=0;
428 int numberOfScalarComponents)=0;
435 void SetCellFlag(
int cellFlag);
479 vtkSetClampMacro(AMRMode,
int,0,1);
480 vtkGetMacro(AMRMode,
int);
510 virtual void ClipCroppingRegionPlanes();
512 double ClippedCroppingRegionPlanes[6];
virtual void GPURender(vtkRenderer *, vtkVolume *)
Handled in the subclass - the actual render method.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
helper object to manage setting and generating contour values
represents a volume (data & properties) in a rendered scene
int GradientOpacityRangeType
Abstract class for a volume mapper.
vtkImageData * TransformedInput
virtual void GetDepthImage(vtkImageData *)
Low level API to export the depth texture as vtkImageData in RenderToImage mode.
virtual void GetColorImage(vtkImageData *)
Low level API to export the color texture as vtkImageData in RenderToImage mode.
int ScalarOpacityRangeType
abstract specification for renderers
vtkIdType MaxMemoryInBytes
void Render(vtkRenderer *ren, vtkVolume *vol) override=0
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
window superclass for vtkRenderWindow
a simple class to control print indentation
float ImageSampleDistance
topologically and geometrically regular array of data
float MaximumImageSampleDistance
vtkContourValues * DepthPassContourValues
represents the common properties for rendering a volume.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int IsRenderSupported(vtkRenderWindow *vtkNotUsed(window), vtkVolumeProperty *vtkNotUsed(property))
Based on hardware and properties, we may or may not be able to render using 3D texture mapping.
create a window for renderers to draw into
int GeneratingCanonicalView
float MinimumImageSampleDistance
static vtkAlgorithm * New()
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkImageData * LastInput
This is needed only to check if the input data has been changed since the last Render() call.
int LockSampleDistanceToInputSpacing
Ray casting performed on the GPU.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageData * CanonicalViewImageData
int AutoAdjustSampleDistances