VTK
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 
30 #include "vtkRenderingVolumeOpenGLModule.h" // For export macro
32 
33 class vtkVolume;
34 class vtkRenderer;
36 
37 class VTKRENDERINGVOLUMEOPENGL_EXPORT vtkOpenGLRayCastImageDisplayHelper
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44 
45  void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
46  int imageMemorySize[2],
47  int imageViewportSize[2],
48  int imageInUseSize[2],
49  int imageOrigin[2],
50  float requestedDepth,
51  unsigned char *image );
52 
53  void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
54  int imageMemorySize[2],
55  int imageViewportSize[2],
56  int imageInUseSize[2],
57  int imageOrigin[2],
58  float requestedDepth,
59  unsigned short *image );
60 
61  void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
63  float requestedDepth );
64 
65 protected:
68 
69  void RenderTextureInternal( vtkVolume *vol, vtkRenderer *ren,
70  int imageMemorySize[2],
71  int imageViewportSize[2],
72  int imageInUseSize[2],
73  int imageOrigin[2],
74  float requestedDepth,
75  int imageScalarType,
76  void *image );
77 
78 private:
80  void operator=(const vtkOpenGLRayCastImageDisplayHelper&) VTK_DELETE_FUNCTION;
81 };
82 
83 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:50
abstract specification for renderers
Definition: vtkRenderer.h:63
helper class that draws the image to the screen
virtual void RenderTexture(vtkVolume *vol, vtkRenderer *ren, int imageMemorySize[2], int imageViewportSize[2], int imageInUseSize[2], int imageOrigin[2], float requestedDepth, unsigned char *image)=0
a simple class to control print indentation
Definition: vtkIndent.h:39
OpenGL subclass that draws the image to the screen.
static vtkRayCastImageDisplayHelper * New()
helper class for a ray cast image