VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dox
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
=========================================================================*/
39
#ifndef vtkDepthOfFieldPass_h
40
#define vtkDepthOfFieldPass_h
41
42
#include "
vtkRenderingOpenGL2Module.h
"
// For export macro
43
#include "
vtkDepthImageProcessingPass.h
"
44
45
class
vtkDepthPeelingPassLayerList;
// Pimpl
46
class
vtkFrameBufferObject
;
47
class
vtkOpenGLHelper
;
48
class
vtkOpenGLRenderWindow
;
49
class
vtkTextureObject
;
50
51
class
VTKRENDERINGOPENGL2_EXPORT
vtkDepthOfFieldPass
:
public
vtkDepthImageProcessingPass
52
{
53
public
:
54
static
vtkDepthOfFieldPass
*
New
();
55
vtkTypeMacro(
vtkDepthOfFieldPass
,
vtkDepthImageProcessingPass
);
56
void
PrintSelf
(ostream& os,
vtkIndent
indent);
57
59
62
vtkSetMacro(AutomaticFocalDistance,
bool
);
63
vtkGetMacro(AutomaticFocalDistance,
bool
);
64
vtkBooleanMacro(AutomaticFocalDistance,
bool
);
66
67
//BTX
69
71
virtual
void
Render
(
const
vtkRenderState
*s);
72
//ETX
74
77
void
ReleaseGraphicsResources
(
vtkWindow
*w);
78
79
protected
:
81
vtkDepthOfFieldPass
();
82
84
virtual
~
vtkDepthOfFieldPass
();
85
87
88
vtkFrameBufferObject
*
FrameBufferObject
;
89
vtkTextureObject
*
Pass1
;
// render target for the scene
90
vtkTextureObject
*
Pass1Depth
;
// render target for the depth
92
93
// Structures for the various cell types we render.
94
vtkOpenGLHelper
*
BlurProgram
;
95
96
bool
Supported
;
97
bool
SupportProbed
;
98
99
bool
AutomaticFocalDistance
;
100
101
private
:
102
vtkDepthOfFieldPass
(
const
vtkDepthOfFieldPass
&);
// Not implemented.
103
void
operator=(
const
vtkDepthOfFieldPass
&);
// Not implemented.
104
};
105
106
#endif
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition:
vtkOpenGLRenderWindow.h:40
VTKRENDERINGOPENGL2_EXPORT
#define VTKRENDERINGOPENGL2_EXPORT
Definition:
vtkRenderingOpenGL2Module.h:15
vtkWindow
window superclass for vtkRenderWindow
Definition:
vtkWindow.h:36
vtkRenderState
Context in which a vtkRenderPass will render.
Definition:
vtkRenderState.h:39
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkDepthOfFieldPass::SupportProbed
bool SupportProbed
Definition:
vtkDepthOfFieldPass.h:97
vtkDepthOfFieldPass::BlurProgram
vtkOpenGLHelper * BlurProgram
Definition:
vtkDepthOfFieldPass.h:94
vtkDepthImageProcessingPass.h
vtkFrameBufferObject
internal class which encapsulates OpenGL frame buffer object. Not to be used directly.
Definition:
vtkFrameBufferObject.h:46
vtkTextureObject
abstracts an OpenGL texture object.
Definition:
vtkTextureObject.h:42
vtkDepthImageProcessingPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkDepthOfFieldPass::Supported
bool Supported
Definition:
vtkDepthOfFieldPass.h:96
vtkRenderPass::Render
virtual void Render(const vtkRenderState *s)=0
vtkRenderingOpenGL2Module.h
vtkDepthOfFieldPass::Pass1Depth
vtkTextureObject * Pass1Depth
Definition:
vtkDepthOfFieldPass.h:90
vtkOpenGLHelper
Definition:
vtkOpenGLHelper.h:30
vtkObject::New
static vtkObject * New()
vtkDepthImageProcessingPass
Convenient class for post-processing passes. Based on vtkImageProcessingPass, but writes depth as wel...
Definition:
vtkDepthImageProcessingPass.h:61
vtkDepthOfFieldPass
Implement a post-processing DOF blur pass.
Definition:
vtkDepthOfFieldPass.h:51
vtkDepthOfFieldPass::AutomaticFocalDistance
bool AutomaticFocalDistance
Definition:
vtkDepthOfFieldPass.h:99
vtkDepthOfFieldPass::Pass1
vtkTextureObject * Pass1
Definition:
vtkDepthOfFieldPass.h:89
vtkDepthImageProcessingPass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w)
vtkDepthOfFieldPass::FrameBufferObject
vtkFrameBufferObject * FrameBufferObject
Definition:
vtkDepthOfFieldPass.h:88
Generated on Wed Dec 16 2015 17:15:10 for VTK by
1.8.9.1