VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
boeckb
code
depot
group-kitware
vtk
build-release
Utilities
Doxygen
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
26
#ifndef vtkOpenGLRayCastImageDisplayHelper_h
27
#define vtkOpenGLRayCastImageDisplayHelper_h
28
29
#include "vtkRenderingVolumeOpenGL2Module.h"
// For export macro
30
#include "
vtkRayCastImageDisplayHelper.h
"
31
32
class
vtkFixedPointRayCastImage
;
33
class
vtkOpenGLHelper
;
34
class
vtkRenderer
;
35
class
vtkTextureObject
;
36
class
vtkVolume
;
37
class
vtkWindow
;
38
39
class
VTKRENDERINGVOLUMEOPENGL2_EXPORT
vtkOpenGLRayCastImageDisplayHelper
40
:
public
vtkRayCastImageDisplayHelper
41
{
42
public
:
43
static
vtkOpenGLRayCastImageDisplayHelper
*
New
();
44
vtkTypeMacro(
vtkOpenGLRayCastImageDisplayHelper
,
vtkRayCastImageDisplayHelper
);
45
virtual
void
PrintSelf
(ostream& os,
vtkIndent
indent);
46
47
void
RenderTexture
(
vtkVolume
*vol,
vtkRenderer
*ren,
48
int
imageMemorySize[2],
49
int
imageViewportSize[2],
50
int
imageInUseSize[2],
51
int
imageOrigin[2],
52
float
requestedDepth,
53
unsigned
char
*
image
);
54
55
void
RenderTexture
(
vtkVolume
*vol,
vtkRenderer
*ren,
56
int
imageMemorySize[2],
57
int
imageViewportSize[2],
58
int
imageInUseSize[2],
59
int
imageOrigin[2],
60
float
requestedDepth,
61
unsigned
short
*
image
);
62
63
void
RenderTexture
(
vtkVolume
*vol,
vtkRenderer
*ren,
64
vtkFixedPointRayCastImage
*
image
,
65
float
requestedDepth );
66
67
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*win);
68
69
protected
:
70
vtkOpenGLRayCastImageDisplayHelper
();
71
~
vtkOpenGLRayCastImageDisplayHelper
();
72
73
void
RenderTextureInternal(
vtkVolume
*vol,
vtkRenderer
*ren,
74
int
imageMemorySize[2],
75
int
imageViewportSize[2],
76
int
imageInUseSize[2],
77
int
imageOrigin[2],
78
float
requestedDepth,
79
int
imageScalarType,
80
void
*
image
);
81
82
// used for copying to framebuffer
83
vtkTextureObject
*
TextureObject
;
84
vtkOpenGLHelper
*
ShaderProgram
;
85
86
87
88
private
:
89
vtkOpenGLRayCastImageDisplayHelper
(
const
vtkOpenGLRayCastImageDisplayHelper
&);
// Not implemented.
90
void
operator=(
const
vtkOpenGLRayCastImageDisplayHelper
&);
// Not implemented.
91
};
92
93
#endif
vtkVolume
represents a volume (data & properties) in a rendered scene
Definition:
vtkVolume.h:49
vtkRayCastImageDisplayHelper::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition:
vtkRayCastImageDisplayHelper.h:80
vtkRenderer
abstract specification for renderers
Definition:
vtkRenderer.h:63
vtkRayCastImageDisplayHelper::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkRayCastImageDisplayHelper
helper class that draws the image to the screen
Definition:
vtkRayCastImageDisplayHelper.h:38
vtkOpenGLRayCastImageDisplayHelper::TextureObject
vtkTextureObject * TextureObject
Definition:
vtkOpenGLRayCastImageDisplayHelper.h:83
vtkWindow
window superclass for vtkRenderWindow
Definition:
vtkWindow.h:36
vtkOpenGLRayCastImageDisplayHelper::ShaderProgram
vtkOpenGLHelper * ShaderProgram
Definition:
vtkOpenGLRayCastImageDisplayHelper.h:84
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
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkOpenGLRayCastImageDisplayHelper
OpenGL subclass that draws the image to the screen.
Definition:
vtkOpenGLRayCastImageDisplayHelper.h:36
vtkRayCastImageDisplayHelper::New
static vtkRayCastImageDisplayHelper * New()
vtkRayCastImageDisplayHelper.h
vtkTextureObject
abstracts an OpenGL texture object.
Definition:
vtkTextureObject.h:39
vtkX3D::image
Definition:
vtkX3D.h:374
vtkOpenGLHelper
Definition:
vtkOpenGLHelper.h:30
vtkFixedPointRayCastImage
helper class for a ray cast image
Definition:
vtkFixedPointRayCastImage.h:38
Generated by
1.8.9.1