VTK
9.2.6
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
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
=========================================================================*/
26
#ifndef vtkFramebufferPass_h
27
#define vtkFramebufferPass_h
28
29
#include "
vtkDepthImageProcessingPass.h
"
30
#include "vtkRenderingOpenGL2Module.h"
// For export macro
31
32
class
vtkOpenGLFramebufferObject
;
33
class
vtkOpenGLHelper
;
34
class
vtkOpenGLRenderWindow
;
35
class
vtkTextureObject
;
36
37
class
VTKRENDERINGOPENGL2_EXPORT
vtkFramebufferPass
:
public
vtkDepthImageProcessingPass
38
{
39
public
:
40
static
vtkFramebufferPass
*
New
();
41
vtkTypeMacro(
vtkFramebufferPass
,
vtkDepthImageProcessingPass
);
42
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
43
48
void
Render
(
const
vtkRenderState
* s)
override
;
49
55
void
ReleaseGraphicsResources
(
vtkWindow
* w)
override
;
56
61
vtkSetMacro(DepthFormat,
int
);
62
69
vtkSetMacro(ColorFormat,
int
);
70
71
// Get the depth texture object
72
vtkGetObjectMacro(DepthTexture,
vtkTextureObject
);
73
74
// Get the Color texture object
75
vtkGetObjectMacro(ColorTexture,
vtkTextureObject
);
76
77
protected
:
81
vtkFramebufferPass
();
82
86
~vtkFramebufferPass
()
override
;
87
91
vtkOpenGLFramebufferObject
*
FrameBufferObject
;
92
vtkTextureObject
*
ColorTexture
;
// render target for the scene
93
vtkTextureObject
*
DepthTexture
;
// render target for the depth
94
96
99
int
ViewportX
;
100
int
ViewportY
;
101
int
ViewportWidth
;
102
int
ViewportHeight
;
104
105
int
DepthFormat
;
106
int
ColorFormat
;
107
108
private
:
109
vtkFramebufferPass
(
const
vtkFramebufferPass
&) =
delete
;
110
void
operator=(
const
vtkFramebufferPass
&) =
delete
;
111
};
112
113
#endif
vtkDepthImageProcessingPass
Convenient class for post-processing passes.
Definition
vtkDepthImageProcessingPass.h:46
vtkFramebufferPass
Render into a FO.
Definition
vtkFramebufferPass.h:38
vtkFramebufferPass::ViewportY
int ViewportY
Cache viewport values for depth peeling.
Definition
vtkFramebufferPass.h:100
vtkFramebufferPass::~vtkFramebufferPass
~vtkFramebufferPass() override
Destructor.
vtkFramebufferPass::ViewportX
int ViewportX
Cache viewport values for depth peeling.
Definition
vtkFramebufferPass.h:99
vtkFramebufferPass::New
static vtkFramebufferPass * New()
vtkFramebufferPass::FrameBufferObject
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
Definition
vtkFramebufferPass.h:91
vtkFramebufferPass::Render
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkFramebufferPass::DepthTexture
vtkTextureObject * DepthTexture
Definition
vtkFramebufferPass.h:93
vtkFramebufferPass::vtkFramebufferPass
vtkFramebufferPass()
Default constructor.
vtkFramebufferPass::DepthFormat
int DepthFormat
Definition
vtkFramebufferPass.h:105
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:101
vtkFramebufferPass::ViewportHeight
int ViewportHeight
Cache viewport values for depth peeling.
Definition
vtkFramebufferPass.h:102
vtkFramebufferPass::ColorFormat
int ColorFormat
Definition
vtkFramebufferPass.h:106
vtkFramebufferPass::ColorTexture
vtkTextureObject * ColorTexture
Definition
vtkFramebufferPass.h:92
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:40
vtkOpenGLFramebufferObject
Internal class which encapsulates OpenGL FramebufferObject.
Definition
vtkOpenGLFramebufferObject.h:185
vtkOpenGLHelper
Definition
vtkOpenGLHelper.h:31
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition
vtkOpenGLRenderWindow.h:57
vtkRenderState
Context in which a vtkRenderPass will render.
Definition
vtkRenderState.h:41
vtkTextureObject
abstracts an OpenGL texture object.
Definition
vtkTextureObject.h:44
vtkWindow
window superclass for vtkRenderWindow
Definition
vtkWindow.h:39
vtkDepthImageProcessingPass.h
Generated on Sat Jun 8 2024 00:00:00 for VTK by
1.11.0