16 #ifndef vtkOpenGLGPUVolumeRayCastMapper_h 17 #define vtkOpenGLGPUVolumeRayCastMapper_h 20 #include "vtkRenderingVolumeOpenGL2Module.h" 76 vtkGetMacro(CurrentPass,
int);
86 vtkSetVector2Macro(NoiseTextureSize,
int);
94 void SetPartitions(
unsigned short x,
unsigned short y,
unsigned short z);
113 void ReleaseGraphicsResources(
vtkWindow *window) VTK_OVERRIDE;
120 int independentComponents);
130 double vtkNotUsed(datasetBounds)[6],
131 double vtkNotUsed(scalarRange)[2],
132 int vtkNotUsed(noOfComponents),
133 unsigned int vtkNotUsed(numberOfLevels)) VTK_OVERRIDE {};
138 unsigned int vtkNotUsed(
level)) VTK_OVERRIDE {}
141 int vtkNotUsed(noOfComponents)) VTK_OVERRIDE {}
154 int independentComponents);
165 void ComputeReductionFactor(
double allocatedTime);
171 ratio[0] = ratio[1] = ratio[2] = 1.0;
198 void SetShaderParametersRenderPass(
vtkVolume* vol);
207 double ReductionFactor;
218 int NoiseTextureSize[2];
225 #endif // vtkOpenGLGPUVolumeRayCastMapper_h abstract interface for implicit functions
virtual void GPURender(vtkRenderer *, vtkVolume *)
Handled in the subclass - the actual render method.
represents a volume (data & properties) in a rendered scene
vtkTypeUInt32 vtkMTimeType
Creates and manages the volume texture rendered by vtkOpenGLGPUVolumeRayCastMapper.
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.
abstract specification for renderers
window superclass for vtkRenderWindow
OpenGL subclass that draws the image to the screen.
a simple class to control print indentation
topologically and geometrically regular array of data
void RenderBlock(vtkRenderer *vtkNotUsed(ren), vtkVolume *vtkNotUsed(vol), unsigned int vtkNotUsed(level)) override
void PostRender(vtkRenderer *vtkNotUsed(ren), int vtkNotUsed(noOfComponents)) override
represents the common properties for rendering a volume.
abstracts an OpenGL texture object.
create a window for renderers to draw into
int IsRenderSupported(vtkRenderWindow *vtkNotUsed(window), vtkVolumeProperty *vtkNotUsed(property)) override
Based on hardware and properties, we may or may not be able to render using 3D texture mapping...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GetReductionRatio(double *ratio) override
Ray casting performed on the GPU.
static vtkGPUVolumeRayCastMapper * New()
vtkNew< vtkInformation > LastRenderPassInfo
Caches the vtkOpenGLRenderPass::RenderPasses() information.
The ShaderProgram uses one or more Shader objects.