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 
26 #ifndef vtkOpenGLRayCastImageDisplayHelper_h
27 #define vtkOpenGLRayCastImageDisplayHelper_h
28 
29 #include "vtkRenderingVolumeOpenGL2Module.h" // For export macro
31 
33 class vtkOpenGLHelper;
34 class vtkRenderer;
35 class vtkTextureObject;
36 class vtkVolume;
37 class vtkWindow;
38 
39 class VTKRENDERINGVOLUMEOPENGL2_EXPORT vtkOpenGLRayCastImageDisplayHelper
41 {
42 public:
45  virtual void PrintSelf(ostream& os, vtkIndent indent);
46 
47  void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
48  int imageMemorySize[2],
49  int imageViewportSize[2],
50  int imageInUseSize[2],
51  int imageOrigin[2],
52  float requestedDepth,
53  unsigned char *image );
54 
55  void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
56  int imageMemorySize[2],
57  int imageViewportSize[2],
58  int imageInUseSize[2],
59  int imageOrigin[2],
60  float requestedDepth,
61  unsigned short *image );
62 
63  void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
65  float requestedDepth );
66 
67  virtual void ReleaseGraphicsResources(vtkWindow *win);
68 
69 protected:
72 
73  void RenderTextureInternal( vtkVolume *vol, vtkRenderer *ren,
74  int imageMemorySize[2],
75  int imageViewportSize[2],
76  int imageInUseSize[2],
77  int imageOrigin[2],
78  float requestedDepth,
79  int imageScalarType,
80  void *image );
81 
82  // used for copying to framebuffer
85 
86 
87 
88 private:
90  void operator=(const vtkOpenGLRayCastImageDisplayHelper&); // Not implemented.
91 };
92 
93 #endif
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:49
virtual void ReleaseGraphicsResources(vtkWindow *)
abstract specification for renderers
Definition: vtkRenderer.h:63
virtual void PrintSelf(ostream &os, vtkIndent indent)
helper class that draws the image to the screen
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
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:38
OpenGL subclass that draws the image to the screen.
static vtkRayCastImageDisplayHelper * New()
abstracts an OpenGL texture object.
helper class for a ray cast image