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