VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dox
build
vtk6-uph7e7
vtk6-6.2.0+dfsg1
Rendering
Parallel
vtkCompositeZPass.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkCompositeZPass.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
=========================================================================*/
33
#ifndef vtkCompositeZPass_h
34
#define vtkCompositeZPass_h
35
36
#include "
vtkRenderingParallelModule.h
"
// For export macro
37
#include "vtkRenderPass.h"
38
39
class
vtkMultiProcessController
;
40
41
class
vtkPixelBufferObject
;
42
class
vtkTextureObject
;
43
class
vtkOpenGLRenderWindow
;
44
#ifdef VTKGL2
45
namespace
vtkgl
46
{
47
class
CellBO;
48
}
49
#else
50
class
vtkShaderProgram2
;
51
#endif
52
53
class
VTKRENDERINGPARALLEL_EXPORT
vtkCompositeZPass
:
public
vtkRenderPass
54
{
55
public
:
56
static
vtkCompositeZPass
*New();
57
vtkTypeMacro
(
vtkCompositeZPass
,
vtkRenderPass
);
58
void
PrintSelf(ostream& os,
vtkIndent
indent);
59
62
virtual
void
Render(
const
vtkRenderState
*
s
);
63
66
void
ReleaseGraphicsResources(
vtkWindow
*
w
);
67
69
71
vtkGetObjectMacro
(Controller,
vtkMultiProcessController
);
72
virtual
void
SetController(
vtkMultiProcessController
*controller);
74
76
bool
IsSupported(
vtkOpenGLRenderWindow
*context);
77
78
protected
:
80
vtkCompositeZPass
();
81
83
virtual
~
vtkCompositeZPass
();
84
88
void
CreateProgram
(
vtkOpenGLRenderWindow
*context);
89
90
vtkMultiProcessController
*
Controller
;
91
92
vtkPixelBufferObject
*
PBO
;
93
vtkTextureObject
*
ZTexture
;
94
#ifdef VTKGL2
95
vtkgl::CellBO
*Program;
96
#else
97
vtkShaderProgram2
*
Program
;
98
#endif
99
float
*
RawZBuffer
;
100
size_t
RawZBufferSize
;
101
102
private
:
103
vtkCompositeZPass
(
const
vtkCompositeZPass
&);
// Not implemented.
104
void
operator=(
const
vtkCompositeZPass
&);
// Not implemented.
105
};
106
107
#endif
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition:
vtkOpenGLRenderWindow.h:37
vtkgl::CellBO
Definition:
vtkglVBOHelper.h:90
VTKRENDERINGPARALLEL_EXPORT
#define VTKRENDERINGPARALLEL_EXPORT
Definition:
vtkRenderingParallelModule.h:15
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition:
vtkSetGet.h:632
vtkWindow
window superclass for vtkRenderWindow
Definition:
vtkWindow.h:33
vtkRenderState
Context in which a vtkRenderPass will render.
Definition:
vtkRenderState.h:39
vtkgl::w
GLubyte GLubyte GLubyte GLubyte w
Definition:
vtkgl.h:12054
vtkShaderProgram2
GLSL Program.
Definition:
vtkShaderProgram2.h:67
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkCompositeZPass::RawZBufferSize
size_t RawZBufferSize
Definition:
vtkCompositeZPass.h:100
vtkgl::CreateProgram
VTKRENDERINGOPENGL_EXPORT PFNGLCREATEPROGRAMPROC CreateProgram
vtkgl
Definition:
vtkgl.h:11267
vtkCompositeZPass::ZTexture
vtkTextureObject * ZTexture
Definition:
vtkCompositeZPass.h:93
vtkCompositeZPass::PBO
vtkPixelBufferObject * PBO
Definition:
vtkCompositeZPass.h:92
vtkRenderingParallelModule.h
vtkCompositeZPass::RawZBuffer
float * RawZBuffer
Definition:
vtkCompositeZPass.h:99
vtkPixelBufferObject
abstracts an OpenGL pixel buffer object.
Definition:
vtkPixelBufferObject.h:42
vtkCompositeZPass::Controller
vtkMultiProcessController * Controller
Definition:
vtkCompositeZPass.h:90
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition:
vtkSetGet.h:222
vtkCompositeZPass::Program
vtkShaderProgram2 * Program
Definition:
vtkCompositeZPass.h:97
vtkTextureObject
abstracts an OpenGL texture object.
Definition:
vtkTextureObject.h:39
vtkgl::s
GLdouble s
Definition:
vtkgl.h:11594
vtkRenderPass
Perform part of the rendering of a vtkRenderer.
Definition:
vtkRenderPass.h:54
vtkCompositeZPass
Merge depth buffers of processes.
Definition:
vtkCompositeZPass.h:53
vtkMultiProcessController
Multiprocessing communication superclass.
Definition:
vtkMultiProcessController.h:84
Generated by
1.8.11