VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
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
vtkShaderProgram2
;
44
class
vtkOpenGLRenderWindow
;
45
46
class
VTKRENDERINGPARALLEL_EXPORT
vtkCompositeZPass
:
public
vtkRenderPass
47
{
48
public
:
49
static
vtkCompositeZPass
*
New
();
50
vtkTypeMacro(
vtkCompositeZPass
,
vtkRenderPass
);
51
void
PrintSelf
(ostream& os,
vtkIndent
indent);
52
55
virtual
void
Render
(
const
vtkRenderState
*s);
56
59
void
ReleaseGraphicsResources
(
vtkWindow
*w);
60
62
64
vtkGetObjectMacro(Controller,
vtkMultiProcessController
);
65
virtual
void
SetController(
vtkMultiProcessController
*controller);
67
69
bool
IsSupported(
vtkOpenGLRenderWindow
*context);
70
71
protected
:
73
vtkCompositeZPass
();
74
76
virtual
~
vtkCompositeZPass
();
77
81
void
CreateProgram(
vtkOpenGLRenderWindow
*context);
82
83
vtkMultiProcessController
*
Controller
;
84
85
vtkPixelBufferObject
*
PBO
;
86
vtkTextureObject
*
ZTexture
;
87
vtkShaderProgram2
*
Program
;
88
float
*
RawZBuffer
;
89
size_t
RawZBufferSize
;
90
91
private
:
92
vtkCompositeZPass
(
const
vtkCompositeZPass
&);
// Not implemented.
93
void
operator=(
const
vtkCompositeZPass
&);
// Not implemented.
94
};
95
96
#endif
Generated on Thu May 24 2012 22:22:37 for VTK by
1.8.1