VTK  9.4.20241219
vtkOpenGLRayCastImageDisplayHelper.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3
15#ifndef vtkOpenGLRayCastImageDisplayHelper_h
16#define vtkOpenGLRayCastImageDisplayHelper_h
17
19#include "vtkRenderingVolumeOpenGL2Module.h" // For export macro
20
21VTK_ABI_NAMESPACE_BEGIN
23class vtkOpenGLHelper;
24class vtkRenderer;
26class vtkVolume;
27class vtkWindow;
28
29class VTKRENDERINGVOLUMEOPENGL2_EXPORT vtkOpenGLRayCastImageDisplayHelper
31{
32public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
37 void RenderTexture(vtkVolume* vol, vtkRenderer* ren, int imageMemorySize[2],
38 int imageViewportSize[2], int imageInUseSize[2], int imageOrigin[2], float requestedDepth,
39 unsigned char* image) override;
40
41 void RenderTexture(vtkVolume* vol, vtkRenderer* ren, int imageMemorySize[2],
42 int imageViewportSize[2], int imageInUseSize[2], int imageOrigin[2], float requestedDepth,
43 unsigned short* image) override;
44
46 float requestedDepth) override;
47
49
50protected:
53
54 void RenderTextureInternal(vtkVolume* vol, vtkRenderer* ren, int imageMemorySize[2],
55 int imageViewportSize[2], int imageInUseSize[2], int imageOrigin[2], float requestedDepth,
56 int imageScalarType, void* image);
57
58 // used for copying to framebuffer
61
62private:
64 void operator=(const vtkOpenGLRayCastImageDisplayHelper&) = delete;
65};
66
67VTK_ABI_NAMESPACE_END
68#endif
helper class for a ray cast image
a simple class to control print indentation
Definition vtkIndent.h:108
OpenGL subclass that draws the image to the screen.
void RenderTexture(vtkVolume *vol, vtkRenderer *ren, int imageMemorySize[2], int imageViewportSize[2], int imageInUseSize[2], int imageOrigin[2], float requestedDepth, unsigned short *image) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void RenderTexture(vtkVolume *vol, vtkRenderer *ren, int imageMemorySize[2], int imageViewportSize[2], int imageInUseSize[2], int imageOrigin[2], float requestedDepth, unsigned char *image) override
void ReleaseGraphicsResources(vtkWindow *win) override
Derived class should implement this if needed.
void RenderTextureInternal(vtkVolume *vol, vtkRenderer *ren, int imageMemorySize[2], int imageViewportSize[2], int imageInUseSize[2], int imageOrigin[2], float requestedDepth, int imageScalarType, void *image)
static vtkOpenGLRayCastImageDisplayHelper * New()
void RenderTexture(vtkVolume *vol, vtkRenderer *ren, vtkFixedPointRayCastImage *image, float requestedDepth) override
helper class that draws the image to the screen
abstract specification for renderers
abstracts an OpenGL texture object.
represents a volume (data & properties) in a rendered scene
Definition vtkVolume.h:130
window superclass for vtkRenderWindow
Definition vtkWindow.h:48