VTK
dox
Rendering
VolumeOpenGL2
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
31
#include "
vtkRayCastImageDisplayHelper.h
"
32
33
class
vtkFixedPointRayCastImage
;
34
class
vtkOpenGLHelper
;
35
class
vtkRenderer
;
36
class
vtkTextureObject
;
37
class
vtkVolume
;
38
class
vtkWindow
;
39
40
class
VTKRENDERINGVOLUMEOPENGL2_EXPORT
vtkOpenGLRayCastImageDisplayHelper
41
:
public
vtkRayCastImageDisplayHelper
42
{
43
public
:
44
static
vtkOpenGLRayCastImageDisplayHelper
*
New
();
45
vtkTypeMacro(
vtkOpenGLRayCastImageDisplayHelper
,
vtkRayCastImageDisplayHelper
);
46
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
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
)
override
;
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
)
override
;
63
64
void
RenderTexture
(
vtkVolume
*vol,
vtkRenderer
*ren,
65
vtkFixedPointRayCastImage
*
image
,
66
float
requestedDepth )
override
;
67
68
void
ReleaseGraphicsResources
(
vtkWindow
*win)
override
;
69
70
protected
:
71
vtkOpenGLRayCastImageDisplayHelper
();
72
~
vtkOpenGLRayCastImageDisplayHelper
()
override
;
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
83
// used for copying to framebuffer
84
vtkTextureObject
*
TextureObject
;
85
vtkOpenGLHelper
*
ShaderProgram
;
86
87
88
89
private
:
90
vtkOpenGLRayCastImageDisplayHelper
(
const
vtkOpenGLRayCastImageDisplayHelper
&) =
delete
;
91
void
operator=(
const
vtkOpenGLRayCastImageDisplayHelper
&) =
delete
;
92
};
93
94
#endif
vtkVolume
represents a volume (data & properties) in a rendered scene
Definition:
vtkVolume.h:50
vtkRayCastImageDisplayHelper.h
vtkFixedPointRayCastImage
helper class for a ray cast image
Definition:
vtkFixedPointRayCastImage.h:39
vtkRayCastImageDisplayHelper
helper class that draws the image to the screen
Definition:
vtkRayCastImageDisplayHelper.h:39
vtkRayCastImageDisplayHelper::RenderTexture
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
vtkX3D::image
Definition:
vtkX3D.h:374
vtkRayCastImageDisplayHelper::New
static vtkRayCastImageDisplayHelper * New()
vtkWindow
window superclass for vtkRenderWindow
Definition:
vtkWindow.h:37
vtkOpenGLHelper
Definition:
vtkOpenGLHelper.h:30
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkTextureObject
abstracts an OpenGL texture object.
Definition:
vtkTextureObject.h:44
vtkOpenGLRayCastImageDisplayHelper::TextureObject
vtkTextureObject * TextureObject
Definition:
vtkOpenGLRayCastImageDisplayHelper.h:84
vtkRayCastImageDisplayHelper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOpenGLRayCastImageDisplayHelper::ShaderProgram
vtkOpenGLHelper * ShaderProgram
Definition:
vtkOpenGLRayCastImageDisplayHelper.h:85
vtkRenderer
abstract specification for renderers
Definition:
vtkRenderer.h:63
vtkOpenGLRayCastImageDisplayHelper
OpenGL subclass that draws the image to the screen.
Definition:
vtkOpenGLRayCastImageDisplayHelper.h:40
vtkRayCastImageDisplayHelper::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
Derived class should implemen this if needed.
Definition:
vtkRayCastImageDisplayHelper.h:85
Generated by
1.8.16