VTK
9.2.6
Rendering
OpenGL2
vtkFramebufferPass.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkFramebufferPass.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
=========================================================================*/
22
23
#ifndef vtkFramebufferPass_h
24
#define vtkFramebufferPass_h
25
26
#include "
vtkDepthImageProcessingPass.h
"
27
#include "vtkRenderingOpenGL2Module.h"
// For export macro
28
29
class
vtkOpenGLFramebufferObject
;
30
class
vtkOpenGLHelper
;
31
class
vtkOpenGLRenderWindow
;
32
class
vtkTextureObject
;
33
34
class
VTKRENDERINGOPENGL2_EXPORT
vtkFramebufferPass
:
public
vtkDepthImageProcessingPass
35
{
36
public
:
37
static
vtkFramebufferPass
*
New
();
38
vtkTypeMacro(
vtkFramebufferPass
,
vtkDepthImageProcessingPass
);
39
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
40
45
void
Render
(
const
vtkRenderState
* s)
override
;
46
52
void
ReleaseGraphicsResources
(
vtkWindow
* w)
override
;
53
58
vtkSetMacro(
DepthFormat
,
int
);
59
66
vtkSetMacro(
ColorFormat
,
int
);
67
68
// Get the depth texture object
69
vtkGetObjectMacro(
DepthTexture
,
vtkTextureObject
);
70
71
// Get the Color texture object
72
vtkGetObjectMacro(
ColorTexture
,
vtkTextureObject
);
73
74
protected
:
78
vtkFramebufferPass
();
79
83
~vtkFramebufferPass
()
override
;
84
88
vtkOpenGLFramebufferObject
*
FrameBufferObject
;
89
vtkTextureObject
*
ColorTexture
;
// render target for the scene
90
vtkTextureObject
*
DepthTexture
;
// render target for the depth
91
93
96
int
ViewportX
;
97
int
ViewportY
;
98
int
ViewportWidth
;
99
int
ViewportHeight
;
101
102
int
DepthFormat
;
103
int
ColorFormat
;
104
105
private
:
106
vtkFramebufferPass
(
const
vtkFramebufferPass
&) =
delete
;
107
void
operator=(
const
vtkFramebufferPass
&) =
delete
;
108
};
109
110
#endif
vtkDepthImageProcessingPass::vtkDepthImageProcessingPass
vtkDepthImageProcessingPass()
Default constructor.
vtkFramebufferPass::ViewportY
int ViewportY
Cache viewport values for depth peeling.
Definition
vtkFramebufferPass.h:97
vtkFramebufferPass::~vtkFramebufferPass
~vtkFramebufferPass() override
Destructor.
vtkFramebufferPass::ViewportX
int ViewportX
Cache viewport values for depth peeling.
Definition
vtkFramebufferPass.h:96
vtkFramebufferPass::New
static vtkFramebufferPass * New()
vtkFramebufferPass::FrameBufferObject
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
Definition
vtkFramebufferPass.h:88
vtkFramebufferPass::Render
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkFramebufferPass::DepthTexture
vtkTextureObject * DepthTexture
Definition
vtkFramebufferPass.h:90
vtkFramebufferPass::vtkFramebufferPass
vtkFramebufferPass()
Default constructor.
vtkFramebufferPass::DepthFormat
int DepthFormat
Definition
vtkFramebufferPass.h:102
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:98
vtkFramebufferPass::ViewportHeight
int ViewportHeight
Cache viewport values for depth peeling.
Definition
vtkFramebufferPass.h:99
vtkFramebufferPass::ColorFormat
int ColorFormat
Definition
vtkFramebufferPass.h:103
vtkFramebufferPass::ColorTexture
vtkTextureObject * ColorTexture
Definition
vtkFramebufferPass.h:89
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:34
vtkOpenGLFramebufferObject
Internal class which encapsulates OpenGL FramebufferObject.
Definition
vtkOpenGLFramebufferObject.h:182
vtkOpenGLHelper
Definition
vtkOpenGLHelper.h:31
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition
vtkOpenGLRenderWindow.h:54
vtkRenderState
Context in which a vtkRenderPass will render.
Definition
vtkRenderState.h:41
vtkTextureObject
abstracts an OpenGL texture object.
Definition
vtkTextureObject.h:41
vtkWindow
window superclass for vtkRenderWindow
Definition
vtkWindow.h:39
vtkDepthImageProcessingPass.h
Generated on Sun Mar 2 2025 00:00:00 for VTK by
1.13.2