VTK
dox
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 "vtkRenderingOpenGL2Module.h"
// For export macro
30
#include "
vtkDepthImageProcessingPass.h
"
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. Based on vtkImageProcessingPass, but writes depth as wel...
Definition:
vtkDepthImageProcessingPass.h:62
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.
vtkOpenGLFramebufferObject
Internal class which encapsulates OpenGL FramebufferObject.
Definition:
vtkOpenGLFramebufferObject.h:182
vtkFramebufferPass::FrameBufferObject
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
Definition:
vtkFramebufferPass.h:91
vtkFramebufferPass::DepthFormat
int DepthFormat
Definition:
vtkFramebufferPass.h:105
vtkImageProcessingPass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
vtkFramebufferPass::ColorFormat
int ColorFormat
Definition:
vtkFramebufferPass.h:106
vtkWindow
window superclass for vtkRenderWindow
Definition:
vtkWindow.h:37
vtkFramebufferPass::ColorTexture
vtkTextureObject * ColorTexture
Definition:
vtkFramebufferPass.h:92
vtkOpenGLHelper
Definition:
vtkOpenGLHelper.h:30
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkTextureObject
abstracts an OpenGL texture object.
Definition:
vtkTextureObject.h:44
vtkFramebufferPass::ViewportX
int ViewportX
Cache viewport values for depth peeling.
Definition:
vtkFramebufferPass.h:99
vtkFramebufferPass::DepthTexture
vtkTextureObject * DepthTexture
Definition:
vtkFramebufferPass.h:93
vtkFramebufferPass::ViewportWidth
int ViewportWidth
Definition:
vtkFramebufferPass.h:101
vtkFramebufferPass::ViewportY
int ViewportY
Definition:
vtkFramebufferPass.h:100
vtkFramebufferPass
Render into a FO.
Definition:
vtkFramebufferPass.h:37
vtkDepthImageProcessingPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkFramebufferPass::ViewportHeight
int ViewportHeight
Definition:
vtkFramebufferPass.h:102
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition:
vtkOpenGLRenderWindow.h:53
vtkRenderState
Context in which a vtkRenderPass will render.
Definition:
vtkRenderState.h:40
vtkDepthImageProcessingPass.h
Generated by
1.8.16