VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
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 "
vtkRenderPass.h
"
37
38
class
vtkMultiProcessController
;
39
40
class
vtkPixelBufferObject
;
41
class
vtkTextureObject
;
42
class
vtkShaderProgram2
;
43
class
vtkOpenGLRenderWindow
;
44
45
class
VTK_PARALLEL_EXPORT
vtkCompositeZPass
:
public
vtkRenderPass
46
{
47
public
:
48
static
vtkCompositeZPass
*
New
();
49
vtkTypeMacro(
vtkCompositeZPass
,
vtkRenderPass
);
50
void
PrintSelf
(ostream& os,
vtkIndent
indent);
51
54
virtual
void
Render
(
const
vtkRenderState
*s);
55
58
void
ReleaseGraphicsResources
(
vtkWindow
*w);
59
61
63
vtkGetObjectMacro(Controller,
vtkMultiProcessController
);
64
virtual
void
SetController(
vtkMultiProcessController
*controller);
66
68
bool
IsSupported(
vtkOpenGLRenderWindow
*context);
69
70
protected
:
72
vtkCompositeZPass
();
73
75
virtual
~
vtkCompositeZPass
();
76
80
void
CreateProgram(
vtkOpenGLRenderWindow
*context);
81
82
vtkMultiProcessController
*
Controller
;
83
84
vtkPixelBufferObject
*
PBO
;
85
vtkTextureObject
*
ZTexture
;
86
vtkShaderProgram2
*
Program
;
87
float
*
RawZBuffer
;
88
size_t
RawZBufferSize
;
89
90
private
:
91
vtkCompositeZPass
(
const
vtkCompositeZPass
&);
// Not implemented.
92
void
operator=(
const
vtkCompositeZPass
&);
// Not implemented.
93
};
94
95
#endif
Generated on Wed Nov 21 2012 21:34:00 for VTK by
1.8.2