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 
30 
31 class vtkVolume;
32 class vtkRenderer;
34 
36 {
37 public:
40  virtual void PrintSelf(ostream& os, vtkIndent indent);
41 
42  void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
43  int imageMemorySize[2],
44  int imageViewportSize[2],
45  int imageInUseSize[2],
46  int imageOrigin[2],
47  float requestedDepth,
48  unsigned char *image );
49 
50  void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
51  int imageMemorySize[2],
52  int imageViewportSize[2],
53  int imageInUseSize[2],
54  int imageOrigin[2],
55  float requestedDepth,
56  unsigned short *image );
57 
58  void RenderTexture( vtkVolume *vol, vtkRenderer *ren,
60  float requestedDepth );
61 
62 protected:
65 
66  void RenderTextureInternal( vtkVolume *vol, vtkRenderer *ren,
67  int imageMemorySize[2],
68  int imageViewportSize[2],
69  int imageInUseSize[2],
70  int imageOrigin[2],
71  float requestedDepth,
72  int imageScalarType,
73  void *image );
74 
75 private:
77  void operator=(const vtkOpenGLRayCastImageDisplayHelper&); // Not implemented.
78 };
79 
80 #endif
81 
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:48
#define VTK_VOLUMERENDERING_EXPORT
abstract specification for renderers
Definition: vtkRenderer.h:69
virtual void PrintSelf(ostream &os, vtkIndent indent)
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:37
OpenGL subclass that draws the image to the screen.
static vtkRayCastImageDisplayHelper * New()
helper class for a ray cast image