VTK
9.5.2
Main Page
Related Pages
Topics
Namespaces
Classes
Files
Examples
File List
File Members
Rendering
Parallel
vtkCompositeZPass.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
21
22
#ifndef vtkCompositeZPass_h
23
#define vtkCompositeZPass_h
24
25
#include "
vtkRenderPass.h
"
26
#include "vtkRenderingParallelModule.h"
// For export macro
27
28
VTK_ABI_NAMESPACE_BEGIN
29
class
vtkMultiProcessController
;
30
31
class
vtkPixelBufferObject
;
32
class
vtkTextureObject
;
33
class
vtkOpenGLRenderWindow
;
34
class
vtkOpenGLHelper
;
35
36
class
VTKRENDERINGPARALLEL_EXPORT
vtkCompositeZPass
:
public
vtkRenderPass
37
{
38
public
:
39
static
vtkCompositeZPass
*
New
();
40
vtkTypeMacro(
vtkCompositeZPass
,
vtkRenderPass
);
41
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
42
47
void
Render
(
const
vtkRenderState
* s)
override
;
48
54
void
ReleaseGraphicsResources
(
vtkWindow
* w)
override
;
55
57
62
vtkGetObjectMacro(
Controller
,
vtkMultiProcessController
);
63
virtual
void
SetController
(
vtkMultiProcessController
* controller);
65
69
bool
IsSupported
(
vtkOpenGLRenderWindow
* context);
70
71
protected
:
75
vtkCompositeZPass
();
76
80
~vtkCompositeZPass
()
override
;
81
88
void
CreateProgram
(
vtkOpenGLRenderWindow
* context);
89
90
vtkMultiProcessController
*
Controller
;
91
92
vtkPixelBufferObject
*
PBO
;
93
vtkTextureObject
*
ZTexture
;
94
vtkOpenGLHelper
*
Program
;
95
float
*
RawZBuffer
;
96
size_t
RawZBufferSize
;
97
98
private
:
99
vtkCompositeZPass
(
const
vtkCompositeZPass
&) =
delete
;
100
void
operator=(
const
vtkCompositeZPass
&) =
delete
;
101
};
102
103
VTK_ABI_NAMESPACE_END
104
#endif
vtkCompositeZPass::Render
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkCompositeZPass::Controller
vtkMultiProcessController * Controller
Definition
vtkCompositeZPass.h:90
vtkCompositeZPass::SetController
virtual void SetController(vtkMultiProcessController *controller)
Controller If it is NULL, nothing will be rendered and a warning will be emitted.
vtkCompositeZPass::ZTexture
vtkTextureObject * ZTexture
Definition
vtkCompositeZPass.h:93
vtkCompositeZPass::Program
vtkOpenGLHelper * Program
Definition
vtkCompositeZPass.h:94
vtkCompositeZPass::IsSupported
bool IsSupported(vtkOpenGLRenderWindow *context)
Is the pass supported by the OpenGL context?
vtkCompositeZPass::RawZBufferSize
size_t RawZBufferSize
Definition
vtkCompositeZPass.h:96
vtkCompositeZPass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
vtkCompositeZPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCompositeZPass::RawZBuffer
float * RawZBuffer
Definition
vtkCompositeZPass.h:95
vtkCompositeZPass::PBO
vtkPixelBufferObject * PBO
Definition
vtkCompositeZPass.h:92
vtkCompositeZPass::New
static vtkCompositeZPass * New()
vtkCompositeZPass::CreateProgram
void CreateProgram(vtkOpenGLRenderWindow *context)
Create program for texture mapping.
vtkCompositeZPass::vtkCompositeZPass
vtkCompositeZPass()
Default constructor.
vtkCompositeZPass::~vtkCompositeZPass
~vtkCompositeZPass() override
Destructor.
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:29
vtkMultiProcessController
Multiprocessing communication superclass.
Definition
vtkMultiProcessController.h:72
vtkOpenGLHelper
Definition
vtkOpenGLHelper.h:21
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition
vtkOpenGLRenderWindow.h:45
vtkPixelBufferObject
abstracts an OpenGL pixel buffer object.
Definition
vtkPixelBufferObject.h:33
vtkRenderPass::vtkRenderPass
vtkRenderPass()
Default constructor.
vtkRenderState
Context in which a vtkRenderPass will render.
Definition
vtkRenderState.h:30
vtkTextureObject
In case DepthTextureCompare is true, specify the comparison function in use.
Definition
vtkTextureObject.h:34
vtkWindow
window superclass for vtkRenderWindow
Definition
vtkWindow.h:26
vtkRenderPass.h
Generated on
for VTK by
1.15.0