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 
32 class vtkActor;
34 class vtkOpenGLTexture;
35 class vtkRenderer;
36 class vtkVolume;
37 class vtkWindow;
38 class vtkTextureObject;
39 
40 class VTKRENDERINGVOLUMEOPENGL2_EXPORT vtkOpenGLRayCastImageDisplayHelper
42 {
43 public:
46  virtual void PrintSelf(ostream& os, vtkIndent indent);
47 
48  void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
49  int imageMemorySize[2],
50  int imageViewportSize[2],
51  int imageInUseSize[2],
52  int imageOrigin[2],
53  float requestedDepth,
54  unsigned char *image );
55 
56  void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
57  int imageMemorySize[2],
58  int imageViewportSize[2],
59  int imageInUseSize[2],
60  int imageOrigin[2],
61  float requestedDepth,
62  unsigned short *image );
63 
64  void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
66  float requestedDepth );
67 
68  virtual void ReleaseGraphicsResources(vtkWindow *win);
69 
70 protected:
73 
74  void RenderTextureInternal( vtkVolume *vol, vtkRenderer *ren,
75  int imageMemorySize[2],
76  int imageViewportSize[2],
77  int imageInUseSize[2],
78  int imageOrigin[2],
79  float requestedDepth,
80  int imageScalarType,
81  void *image );
82 
86 
87 private:
89  void operator=(const vtkOpenGLRayCastImageDisplayHelper&); // Not implemented.
90 };
91 
92 #endif
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:49
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: vtkgl.h:11341
virtual void ReleaseGraphicsResources(vtkWindow *)
abstract specification for renderers
Definition: vtkRenderer.h:63
virtual void PrintSelf(ostream &os, vtkIndent indent)
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:632
helper class that draws the image to the screen
OpenGL texture map.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:33
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