VTK
9.6.1
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
Rendering
OpenGL2
vtkSimpleMotionBlurPass.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
19
20
#ifndef vtkSimpleMotionBlurPass_h
21
#define vtkSimpleMotionBlurPass_h
22
23
#include "
vtkDepthImageProcessingPass.h
"
24
#include "vtkRenderingOpenGL2Module.h"
// For export macro
25
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
26
27
VTK_ABI_NAMESPACE_BEGIN
28
class
vtkOpenGLFramebufferObject
;
29
class
vtkOpenGLHelper
;
30
class
vtkOpenGLRenderWindow
;
31
class
vtkTextureObject
;
32
33
class
VTKRENDERINGOPENGL2_EXPORT
VTK_MARSHALAUTO
vtkSimpleMotionBlurPass
34
:
public
vtkDepthImageProcessingPass
35
{
36
public
:
37
static
vtkSimpleMotionBlurPass
*
New
();
38
vtkTypeMacro(
vtkSimpleMotionBlurPass
,
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
55
63
vtkGetMacro(
SubFrames
,
int
);
64
virtual
void
SetSubFrames
(
int
subFrames);
66
71
vtkSetMacro(
DepthFormat
,
int
);
72
79
vtkSetMacro(
ColorFormat
,
int
);
80
81
// Get the depth texture object
82
vtkGetObjectMacro(
DepthTexture
,
vtkTextureObject
);
83
84
// Get the Color texture object
85
vtkGetObjectMacro(
ColorTexture
,
vtkTextureObject
);
86
87
protected
:
91
vtkSimpleMotionBlurPass
();
92
96
~vtkSimpleMotionBlurPass
()
override
;
97
101
vtkOpenGLFramebufferObject
*
FrameBufferObject
;
102
vtkTextureObject
*
ColorTexture
;
// render target for the scene
103
vtkTextureObject
*
AccumulationTexture
[2];
// where we add the colors
104
vtkTextureObject
*
DepthTexture
;
// render target for the depth
105
107
110
int
ViewportX
;
111
int
ViewportY
;
112
int
ViewportWidth
;
113
int
ViewportHeight
;
115
116
int
DepthFormat
;
117
int
ColorFormat
;
118
119
int
SubFrames
;
// number of sub frames
120
int
CurrentSubFrame
;
// what one are we on
121
int
ActiveAccumulationTexture
;
122
vtkOpenGLHelper
*
BlendProgram
;
123
124
private
:
125
vtkSimpleMotionBlurPass
(
const
vtkSimpleMotionBlurPass
&) =
delete
;
126
void
operator=(
const
vtkSimpleMotionBlurPass
&) =
delete
;
127
};
128
129
VTK_ABI_NAMESPACE_END
130
#endif
vtkDepthImageProcessingPass::vtkDepthImageProcessingPass
vtkDepthImageProcessingPass()
Default constructor.
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:29
vtkOpenGLFramebufferObject
Internal class which encapsulates OpenGL FramebufferObject.
Definition
vtkOpenGLFramebufferObject.h:175
vtkOpenGLHelper
Definition
vtkOpenGLHelper.h:21
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition
vtkOpenGLRenderWindow.h:45
vtkRenderState
Context in which a vtkRenderPass will render.
Definition
vtkRenderState.h:30
vtkSimpleMotionBlurPass::ActiveAccumulationTexture
int ActiveAccumulationTexture
Definition
vtkSimpleMotionBlurPass.h:121
vtkSimpleMotionBlurPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSimpleMotionBlurPass::ViewportWidth
int ViewportWidth
Cache viewport values for depth peeling.
Definition
vtkSimpleMotionBlurPass.h:112
vtkSimpleMotionBlurPass::ColorTexture
vtkTextureObject * ColorTexture
Definition
vtkSimpleMotionBlurPass.h:102
vtkSimpleMotionBlurPass::DepthFormat
int DepthFormat
Definition
vtkSimpleMotionBlurPass.h:116
vtkSimpleMotionBlurPass::Render
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkSimpleMotionBlurPass::ViewportY
int ViewportY
Cache viewport values for depth peeling.
Definition
vtkSimpleMotionBlurPass.h:111
vtkSimpleMotionBlurPass::BlendProgram
vtkOpenGLHelper * BlendProgram
Definition
vtkSimpleMotionBlurPass.h:122
vtkSimpleMotionBlurPass::SubFrames
int SubFrames
Definition
vtkSimpleMotionBlurPass.h:119
vtkSimpleMotionBlurPass::AccumulationTexture
vtkTextureObject * AccumulationTexture[2]
Definition
vtkSimpleMotionBlurPass.h:103
vtkSimpleMotionBlurPass::SetSubFrames
virtual void SetSubFrames(int subFrames)
Set the number of sub frames for doing motion blur.
vtkSimpleMotionBlurPass::ViewportX
int ViewportX
Cache viewport values for depth peeling.
Definition
vtkSimpleMotionBlurPass.h:110
vtkSimpleMotionBlurPass::ColorFormat
int ColorFormat
Definition
vtkSimpleMotionBlurPass.h:117
vtkSimpleMotionBlurPass::CurrentSubFrame
int CurrentSubFrame
Definition
vtkSimpleMotionBlurPass.h:120
vtkSimpleMotionBlurPass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
vtkSimpleMotionBlurPass::DepthTexture
vtkTextureObject * DepthTexture
Definition
vtkSimpleMotionBlurPass.h:104
vtkSimpleMotionBlurPass::ViewportHeight
int ViewportHeight
Cache viewport values for depth peeling.
Definition
vtkSimpleMotionBlurPass.h:113
vtkSimpleMotionBlurPass::FrameBufferObject
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
Definition
vtkSimpleMotionBlurPass.h:101
vtkSimpleMotionBlurPass::vtkSimpleMotionBlurPass
vtkSimpleMotionBlurPass()
Default constructor.
vtkSimpleMotionBlurPass::~vtkSimpleMotionBlurPass
~vtkSimpleMotionBlurPass() override
Destructor.
vtkSimpleMotionBlurPass::New
static vtkSimpleMotionBlurPass * New()
vtkTextureObject
In case DepthTextureCompare is true, specify the comparison function in use.
Definition
vtkTextureObject.h:34
vtkWindow
window superclass for vtkRenderWindow
Definition
vtkWindow.h:29
vtkDepthImageProcessingPass.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:60
Generated on
for VTK by
1.16.1