VTK  9.0.3
vtkOpenGLRayCastImageDisplayHelper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLRayCastImageDisplayHelper.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
27 #ifndef vtkOpenGLRayCastImageDisplayHelper_h
28 #define vtkOpenGLRayCastImageDisplayHelper_h
29 
31 #include "vtkRenderingVolumeOpenGL2Module.h" // For export macro
32 
34 class vtkOpenGLHelper;
35 class vtkRenderer;
36 class vtkTextureObject;
37 class vtkVolume;
38 class vtkWindow;
39 
40 class VTKRENDERINGVOLUMEOPENGL2_EXPORT vtkOpenGLRayCastImageDisplayHelper
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
48  void RenderTexture(vtkVolume* vol, vtkRenderer* ren, int imageMemorySize[2],
49  int imageViewportSize[2], int imageInUseSize[2], int imageOrigin[2], float requestedDepth,
50  unsigned char* image) override;
51 
52  void RenderTexture(vtkVolume* vol, vtkRenderer* ren, int imageMemorySize[2],
53  int imageViewportSize[2], int imageInUseSize[2], int imageOrigin[2], float requestedDepth,
54  unsigned short* image) override;
55 
57  float requestedDepth) override;
58 
59  void ReleaseGraphicsResources(vtkWindow* win) override;
60 
61 protected:
64 
65  void RenderTextureInternal(vtkVolume* vol, vtkRenderer* ren, int imageMemorySize[2],
66  int imageViewportSize[2], int imageInUseSize[2], int imageOrigin[2], float requestedDepth,
67  int imageScalarType, void* image);
68 
69  // used for copying to framebuffer
72 
73 private:
75  void operator=(const vtkOpenGLRayCastImageDisplayHelper&) = delete;
76 };
77 
78 #endif
helper class for a ray cast image
a simple class to control print indentation
Definition: vtkIndent.h:34
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
Definition: vtkRenderer.h:68
abstracts an OpenGL texture object.
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:45
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
@ image
Definition: vtkX3D.h:380