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 "vtkRenderingVolumeOpenGL2Module.h" // For export macro
32
34class vtkOpenGLHelper;
35class vtkRenderer;
37class vtkVolume;
38class vtkWindow;
39
40class VTKRENDERINGVOLUMEOPENGL2_EXPORT vtkOpenGLRayCastImageDisplayHelper
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
47
49 int imageMemorySize[2],
50 int imageViewportSize[2],
51 int imageInUseSize[2],
52 int imageOrigin[2],
53 float requestedDepth,
54 unsigned char *image );
55
57 int imageMemorySize[2],
58 int imageViewportSize[2],
59 int imageInUseSize[2],
60 int imageOrigin[2],
61 float requestedDepth,
62 unsigned short *image );
63
66 float requestedDepth );
67
69
70protected:
73
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
83 // used for copying to framebuffer
86
87
88
89private:
91 void operator=(const vtkOpenGLRayCastImageDisplayHelper&) VTK_DELETE_FUNCTION;
92};
93
94#endif
helper class for a ray cast image
a simple class to control print indentation
Definition: vtkIndent.h:40
OpenGL subclass that draws the image to the screen.
void RenderTexture(vtkVolume *vol, vtkRenderer *ren, vtkFixedPointRayCastImage *image, float requestedDepth)
virtual void ReleaseGraphicsResources(vtkWindow *win)
Derived class should implemen this if needed.
void RenderTexture(vtkVolume *vol, vtkRenderer *ren, int imageMemorySize[2], int imageViewportSize[2], int imageInUseSize[2], int imageOrigin[2], float requestedDepth, unsigned short *image)
void RenderTexture(vtkVolume *vol, vtkRenderer *ren, int imageMemorySize[2], int imageViewportSize[2], int imageInUseSize[2], int imageOrigin[2], float requestedDepth, unsigned char *image)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void RenderTextureInternal(vtkVolume *vol, vtkRenderer *ren, int imageMemorySize[2], int imageViewportSize[2], int imageInUseSize[2], int imageOrigin[2], float requestedDepth, int imageScalarType, void *image)
static vtkOpenGLRayCastImageDisplayHelper * New()
helper class that draws the image to the screen
abstract specification for renderers
Definition: vtkRenderer.h:64
abstracts an OpenGL texture object.
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:51
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
@ image
Definition: vtkX3D.h:374