VTK
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
=========================================================================*/
34
#ifndef vtkCompositeZPass_h
35
#define vtkCompositeZPass_h
36
37
#include "vtkRenderingParallelModule.h"
// For export macro
38
#include "
vtkRenderPass.h
"
39
40
class
vtkMultiProcessController
;
41
42
class
vtkPixelBufferObject
;
43
class
vtkTextureObject
;
44
class
vtkOpenGLRenderWindow
;
45
#ifdef VTK_OPENGL2
46
class
vtkOpenGLHelper
;
47
#else
48
class
vtkShaderProgram2
;
49
#endif
50
51
class
VTKRENDERINGPARALLEL_EXPORT
vtkCompositeZPass
:
public
vtkRenderPass
52
{
53
public
:
54
static
vtkCompositeZPass
*
New
();
55
vtkTypeMacro(
vtkCompositeZPass
,
vtkRenderPass
);
56
void
PrintSelf
(ostream& os,
vtkIndent
indent);
57
62
virtual
void
Render
(
const
vtkRenderState
*s);
63
69
void
ReleaseGraphicsResources
(
vtkWindow
*w);
70
72
77
vtkGetObjectMacro(Controller,
vtkMultiProcessController
);
78
virtual
void
SetController(
vtkMultiProcessController
*controller);
80
84
bool
IsSupported(
vtkOpenGLRenderWindow
*context);
85
86
protected
:
90
vtkCompositeZPass
();
91
95
virtual
~
vtkCompositeZPass
();
96
103
void
CreateProgram(
vtkOpenGLRenderWindow
*context);
104
105
vtkMultiProcessController
*
Controller
;
106
107
vtkPixelBufferObject
*
PBO
;
108
vtkTextureObject
*
ZTexture
;
109
#ifdef VTK_OPENGL2
110
vtkOpenGLHelper
*Program;
111
#else
112
vtkShaderProgram2
*
Program
;
113
#endif
114
float
*
RawZBuffer
;
115
size_t
RawZBufferSize
;
116
117
private
:
118
vtkCompositeZPass
(
const
vtkCompositeZPass
&) VTK_DELETE_FUNCTION;
119
void
operator=(
const
vtkCompositeZPass
&) VTK_DELETE_FUNCTION;
120
};
121
122
#endif
vtkRenderPass::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkRenderPass::Render
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
vtkRenderPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkRenderPass.h
vtkWindow
window superclass for vtkRenderWindow
Definition:
vtkWindow.h:34
vtkCompositeZPass::RawZBuffer
float * RawZBuffer
Definition:
vtkCompositeZPass.h:114
vtkCompositeZPass::Controller
vtkMultiProcessController * Controller
Definition:
vtkCompositeZPass.h:105
vtkCompositeZPass::PBO
vtkPixelBufferObject * PBO
Definition:
vtkCompositeZPass.h:107
vtkMultiProcessController
Multiprocessing communication superclass.
Definition:
vtkMultiProcessController.h:82
vtkOpenGLHelper
Definition:
vtkOpenGLHelper.h:30
vtkCompositeZPass::Program
vtkShaderProgram2 * Program
Definition:
vtkCompositeZPass.h:112
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkTextureObject
abstracts an OpenGL texture object.
Definition:
vtkTextureObject.h:43
vtkCompositeZPass::RawZBufferSize
size_t RawZBufferSize
Definition:
vtkCompositeZPass.h:115
vtkCompositeZPass::ZTexture
vtkTextureObject * ZTexture
Definition:
vtkCompositeZPass.h:108
vtkCompositeZPass
Merge depth buffers of processes.
Definition:
vtkCompositeZPass.h:51
vtkShaderProgram2
GLSL Program.
Definition:
vtkShaderProgram2.h:68
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition:
vtkOpenGLRenderWindow.h:41
vtkRenderState
Context in which a vtkRenderPass will render.
Definition:
vtkRenderState.h:40
vtkPixelBufferObject
abstracts an OpenGL pixel buffer object.
Definition:
vtkPixelBufferObject.h:43
vtkRenderPass
Perform part of the rendering of a vtkRenderer.
Definition:
vtkRenderPass.h:58
Generated by
1.8.17