VTK
9.2.6
Rendering
OpenGL2
vtkDepthOfFieldPass.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkDepthOfFieldPass.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
=========================================================================*/
36
37
#ifndef vtkDepthOfFieldPass_h
38
#define vtkDepthOfFieldPass_h
39
40
#include "
vtkDepthImageProcessingPass.h
"
41
#include "vtkRenderingOpenGL2Module.h"
// For export macro
42
43
class
vtkDepthPeelingPassLayerList;
// Pimpl
44
class
vtkOpenGLFramebufferObject
;
45
class
vtkOpenGLHelper
;
46
class
vtkOpenGLRenderWindow
;
47
class
vtkTextureObject
;
48
49
class
VTKRENDERINGOPENGL2_EXPORT
vtkDepthOfFieldPass
:
public
vtkDepthImageProcessingPass
50
{
51
public
:
52
static
vtkDepthOfFieldPass
*
New
();
53
vtkTypeMacro(
vtkDepthOfFieldPass
,
vtkDepthImageProcessingPass
);
54
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
55
57
62
vtkSetMacro(
AutomaticFocalDistance
,
bool
);
63
vtkGetMacro(
AutomaticFocalDistance
,
bool
);
64
vtkBooleanMacro(
AutomaticFocalDistance
,
bool
);
66
71
void
Render
(
const
vtkRenderState
* s)
override
;
72
78
void
ReleaseGraphicsResources
(
vtkWindow
* w)
override
;
79
80
protected
:
84
vtkDepthOfFieldPass
();
85
89
~vtkDepthOfFieldPass
()
override
;
90
94
vtkOpenGLFramebufferObject
*
FrameBufferObject
;
95
vtkTextureObject
*
Pass1
;
// render target for the scene
96
vtkTextureObject
*
Pass1Depth
;
// render target for the depth
97
98
// Structures for the various cell types we render.
99
vtkOpenGLHelper
*
BlurProgram
;
100
101
bool
AutomaticFocalDistance
;
102
103
private
:
104
vtkDepthOfFieldPass
(
const
vtkDepthOfFieldPass
&) =
delete
;
105
void
operator=(
const
vtkDepthOfFieldPass
&) =
delete
;
106
};
107
108
#endif
vtkDepthImageProcessingPass::vtkDepthImageProcessingPass
vtkDepthImageProcessingPass()
Default constructor.
vtkDepthOfFieldPass::Pass1
vtkTextureObject * Pass1
Definition
vtkDepthOfFieldPass.h:95
vtkDepthOfFieldPass::BlurProgram
vtkOpenGLHelper * BlurProgram
Definition
vtkDepthOfFieldPass.h:99
vtkDepthOfFieldPass::New
static vtkDepthOfFieldPass * New()
vtkDepthOfFieldPass::vtkDepthOfFieldPass
vtkDepthOfFieldPass()
Default constructor.
vtkDepthOfFieldPass::Pass1Depth
vtkTextureObject * Pass1Depth
Definition
vtkDepthOfFieldPass.h:96
vtkDepthOfFieldPass::AutomaticFocalDistance
bool AutomaticFocalDistance
Definition
vtkDepthOfFieldPass.h:101
vtkDepthOfFieldPass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
vtkDepthOfFieldPass::FrameBufferObject
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
Definition
vtkDepthOfFieldPass.h:94
vtkDepthOfFieldPass::~vtkDepthOfFieldPass
~vtkDepthOfFieldPass() override
Destructor.
vtkDepthOfFieldPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDepthOfFieldPass::Render
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
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