VTK
9.4.20251007
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
Rendering
OpenGL2
vtkFramebufferPass.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
13
14
#ifndef vtkFramebufferPass_h
15
#define vtkFramebufferPass_h
16
17
#include "
vtkDepthImageProcessingPass.h
"
18
#include "vtkRenderingOpenGL2Module.h"
// For export macro
19
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
20
21
VTK_ABI_NAMESPACE_BEGIN
22
class
vtkOpenGLFramebufferObject
;
23
class
vtkOpenGLHelper
;
24
class
vtkOpenGLRenderWindow
;
25
class
vtkTextureObject
;
26
27
class
VTKRENDERINGOPENGL2_EXPORT
VTK_MARSHALAUTO
vtkFramebufferPass
28
:
public
vtkDepthImageProcessingPass
29
{
30
public
:
31
static
vtkFramebufferPass
*
New
();
32
vtkTypeMacro(
vtkFramebufferPass
,
vtkDepthImageProcessingPass
);
33
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
34
39
void
Render
(
const
vtkRenderState
* s)
override
;
40
46
void
ReleaseGraphicsResources
(
vtkWindow
* w)
override
;
47
52
vtkSetMacro(
DepthFormat
,
int
);
53
60
vtkSetMacro(
ColorFormat
,
int
);
61
62
// Get the depth texture object
63
vtkGetObjectMacro(
DepthTexture
,
vtkTextureObject
);
64
65
// Get the Color texture object
66
vtkGetObjectMacro(
ColorTexture
,
vtkTextureObject
);
67
68
protected
:
72
vtkFramebufferPass
();
73
77
~vtkFramebufferPass
()
override
;
78
82
vtkOpenGLFramebufferObject
*
FrameBufferObject
;
83
vtkTextureObject
*
ColorTexture
;
// render target for the scene
84
vtkTextureObject
*
DepthTexture
;
// render target for the depth
85
87
90
int
ViewportX
;
91
int
ViewportY
;
92
int
ViewportWidth
;
93
int
ViewportHeight
;
95
96
int
DepthFormat
;
97
int
ColorFormat
;
98
99
private
:
100
vtkFramebufferPass
(
const
vtkFramebufferPass
&) =
delete
;
101
void
operator=(
const
vtkFramebufferPass
&) =
delete
;
102
};
103
104
VTK_ABI_NAMESPACE_END
105
#endif
vtkDepthImageProcessingPass::vtkDepthImageProcessingPass
vtkDepthImageProcessingPass()
Default constructor.
vtkFramebufferPass::ViewportY
int ViewportY
Cache viewport values for depth peeling.
Definition
vtkFramebufferPass.h:91
vtkFramebufferPass::~vtkFramebufferPass
~vtkFramebufferPass() override
Destructor.
vtkFramebufferPass::ViewportX
int ViewportX
Cache viewport values for depth peeling.
Definition
vtkFramebufferPass.h:90
vtkFramebufferPass::New
static vtkFramebufferPass * New()
vtkFramebufferPass::FrameBufferObject
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
Definition
vtkFramebufferPass.h:82
vtkFramebufferPass::Render
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkFramebufferPass::DepthTexture
vtkTextureObject * DepthTexture
Definition
vtkFramebufferPass.h:84
vtkFramebufferPass::vtkFramebufferPass
vtkFramebufferPass()
Default constructor.
vtkFramebufferPass::DepthFormat
int DepthFormat
Definition
vtkFramebufferPass.h:96
vtkFramebufferPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkFramebufferPass::ViewportWidth
int ViewportWidth
Cache viewport values for depth peeling.
Definition
vtkFramebufferPass.h:92
vtkFramebufferPass::ViewportHeight
int ViewportHeight
Cache viewport values for depth peeling.
Definition
vtkFramebufferPass.h:93
vtkFramebufferPass::ColorFormat
int ColorFormat
Definition
vtkFramebufferPass.h:97
vtkFramebufferPass::ColorTexture
vtkTextureObject * ColorTexture
Definition
vtkFramebufferPass.h:83
vtkFramebufferPass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:29
vtkOpenGLFramebufferObject
Internal class which encapsulates OpenGL FramebufferObject.
Definition
vtkOpenGLFramebufferObject.h:174
vtkOpenGLHelper
Definition
vtkOpenGLHelper.h:21
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition
vtkOpenGLRenderWindow.h:45
vtkRenderState
Context in which a vtkRenderPass will render.
Definition
vtkRenderState.h:30
vtkTextureObject
abstracts an OpenGL texture object.
Definition
vtkTextureObject.h:34
vtkWindow
window superclass for vtkRenderWindow
Definition
vtkWindow.h:29
vtkDepthImageProcessingPass.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:53
Generated on
for VTK by
1.14.0