61 #ifndef vtkOpenGLGPUVolumeRayCastMapper_h
62 #define vtkOpenGLGPUVolumeRayCastMapper_h
67 #include "vtkRenderingVolumeOpenGL2Module.h"
71 VTK_ABI_NAMESPACE_BEGIN
75 class vtkOpenGLTransferFunctions2D;
76 class vtkOpenGLVolumeGradientOpacityTables;
77 class vtkOpenGLVolumeOpacityTables;
78 class vtkOpenGLVolumeRGBTables;
130 vtkGetMacro(CurrentPass,
int);
145 void SetPartitions(
unsigned short x,
unsigned short y,
unsigned short z);
170 void BuildDepthPassShader(
180 double vtkNotUsed(datasetBounds)[6],
double vtkNotUsed(scalarRange)[2],
181 int vtkNotUsed(noOfComponents),
unsigned int vtkNotUsed(numberOfLevels))
override
187 unsigned int vtkNotUsed(
level))
override
211 void ComputeReductionFactor(
double allocatedTime);
242 void GetShaderTemplate(
248 void ReplaceShaderValues(
249 std::map<vtkShader::Type, vtkShader*>& shaders,
vtkRenderer* ren,
vtkVolume* vol,
int numComps);
255 void ReplaceShaderCustomUniforms(
257 void ReplaceShaderBase(
258 std::map<vtkShader::Type, vtkShader*>& shaders,
vtkRenderer* ren,
vtkVolume* vol,
int numComps);
259 void ReplaceShaderTermination(
260 std::map<vtkShader::Type, vtkShader*>& shaders,
vtkRenderer* ren,
vtkVolume* vol,
int numComps);
261 void ReplaceShaderShading(
262 std::map<vtkShader::Type, vtkShader*>& shaders,
vtkRenderer* ren,
vtkVolume* vol,
int numComps);
263 void ReplaceShaderCompute(
264 std::map<vtkShader::Type, vtkShader*>& shaders,
vtkRenderer* ren,
vtkVolume* vol,
int numComps);
265 void ReplaceShaderCropping(
266 std::map<vtkShader::Type, vtkShader*>& shaders,
vtkRenderer* ren,
vtkVolume* vol,
int numComps);
267 void ReplaceShaderClipping(
268 std::map<vtkShader::Type, vtkShader*>& shaders,
vtkRenderer* ren,
vtkVolume* vol,
int numComps);
269 void ReplaceShaderMasking(
270 std::map<vtkShader::Type, vtkShader*>& shaders,
vtkRenderer* ren,
vtkVolume* vol,
int numComps);
271 void ReplaceShaderPicking(
272 std::map<vtkShader::Type, vtkShader*>& shaders,
vtkRenderer* ren,
vtkVolume* vol,
int numComps);
273 void ReplaceShaderRTT(
274 std::map<vtkShader::Type, vtkShader*>& shaders,
vtkRenderer* ren,
vtkVolume* vol,
int numComps);
275 void ReplaceShaderRenderPass(
276 std::map<vtkShader::Type, vtkShader*>& shaders,
vtkVolume* vol,
bool prePass);
281 void SetShaderParametersRenderPass();
309 VTK_ABI_NAMESPACE_END
310 #endif // vtkOpenGLGPUVolumeRayCastMapper_h
abstract interface for implicit functions
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.
represents a volume (data & properties) in a rendered scene
vtkGenericOpenGLResourceFreeCallback * ResourceCallback
vtkTypeUInt32 vtkMTimeType
Creates and manages the volume texture rendered by vtkOpenGLGPUVolumeRayCastMapper.
std::map< int, vtkVolumeInputHelper > VolumeInputMap
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.
void PreRender(vtkRenderer *vtkNotUsed(ren), vtkVolume *vtkNotUsed(vol), double vtkNotUsed(datasetBounds)[6], double vtkNotUsed(scalarRange)[2], int vtkNotUsed(noOfComponents), unsigned int vtkNotUsed(numberOfLevels)) override
abstract specification for renderers
represent GPU shader properties
window superclass for vtkRenderWindow
OpenGL implementation of volume rendering through ray-casting.
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
virtual void GetReductionRatio(double ratio[3])=0
Return how much the dataset has to be reduced in each dimension to fit on the GPU.
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.
Ray casting performed on the GPU.
static vtkGPUVolumeRayCastMapper * New()
VolumeInputMap AssembledInputs
vtkNew< vtkInformation > LastRenderPassInfo
Caches the vtkOpenGLRenderPass::RenderPasses() information.
The ShaderProgram uses one or more Shader objects.