VTK
9.5.2
Main Page
Related Pages
Topics
Namespaces
Classes
Files
Examples
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
38
39
#ifndef vtkSimpleMotionBlurPass_h
40
#define vtkSimpleMotionBlurPass_h
41
42
#include "
vtkDepthImageProcessingPass.h
"
43
#include "vtkRenderingOpenGL2Module.h"
// For export macro
44
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
45
46
VTK_ABI_NAMESPACE_BEGIN
47
class
vtkOpenGLFramebufferObject
;
48
class
vtkOpenGLHelper
;
49
class
vtkOpenGLRenderWindow
;
50
class
vtkTextureObject
;
51
52
class
VTKRENDERINGOPENGL2_EXPORT
VTK_MARSHALAUTO
vtkSimpleMotionBlurPass
53
:
public
vtkDepthImageProcessingPass
54
{
55
public
:
56
static
vtkSimpleMotionBlurPass
*
New
();
57
vtkTypeMacro(
vtkSimpleMotionBlurPass
,
vtkDepthImageProcessingPass
);
58
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
59
64
void
Render
(
const
vtkRenderState
* s)
override
;
65
71
void
ReleaseGraphicsResources
(
vtkWindow
* w)
override
;
72
74
82
vtkGetMacro(
SubFrames
,
int
);
83
virtual
void
SetSubFrames
(
int
subFrames);
85
90
vtkSetMacro(
DepthFormat
,
int
);
91
98
vtkSetMacro(
ColorFormat
,
int
);
99
100
// Get the depth texture object
101
vtkGetObjectMacro(
DepthTexture
,
vtkTextureObject
);
102
103
// Get the Color texture object
104
vtkGetObjectMacro(
ColorTexture
,
vtkTextureObject
);
105
106
protected
:
110
vtkSimpleMotionBlurPass
();
111
115
~vtkSimpleMotionBlurPass
()
override
;
116
120
vtkOpenGLFramebufferObject
*
FrameBufferObject
;
121
vtkTextureObject
*
ColorTexture
;
// render target for the scene
122
vtkTextureObject
*
AccumulationTexture
[2];
// where we add the colors
123
vtkTextureObject
*
DepthTexture
;
// render target for the depth
124
126
129
int
ViewportX
;
130
int
ViewportY
;
131
int
ViewportWidth
;
132
int
ViewportHeight
;
134
135
int
DepthFormat
;
136
int
ColorFormat
;
137
138
int
SubFrames
;
// number of sub frames
139
int
CurrentSubFrame
;
// what one are we on
140
int
ActiveAccumulationTexture
;
141
vtkOpenGLHelper
*
BlendProgram
;
142
143
private
:
144
vtkSimpleMotionBlurPass
(
const
vtkSimpleMotionBlurPass
&) =
delete
;
145
void
operator=(
const
vtkSimpleMotionBlurPass
&) =
delete
;
146
};
147
148
VTK_ABI_NAMESPACE_END
149
#endif
vtkDepthImageProcessingPass::vtkDepthImageProcessingPass
vtkDepthImageProcessingPass()
Default constructor.
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkOpenGLFramebufferObject
Internal class which encapsulates OpenGL FramebufferObject.
Definition
vtkOpenGLFramebufferObject.h:175
vtkOpenGLHelper
Definition
vtkOpenGLHelper.h:21
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition
vtkOpenGLRenderWindow.h:64
vtkRenderState
Context in which a vtkRenderPass will render.
Definition
vtkRenderState.h:30
vtkSimpleMotionBlurPass::ActiveAccumulationTexture
int ActiveAccumulationTexture
Definition
vtkSimpleMotionBlurPass.h:140
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:131
vtkSimpleMotionBlurPass::ColorTexture
vtkTextureObject * ColorTexture
Definition
vtkSimpleMotionBlurPass.h:121
vtkSimpleMotionBlurPass::DepthFormat
int DepthFormat
Definition
vtkSimpleMotionBlurPass.h:135
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:130
vtkSimpleMotionBlurPass::BlendProgram
vtkOpenGLHelper * BlendProgram
Definition
vtkSimpleMotionBlurPass.h:141
vtkSimpleMotionBlurPass::SubFrames
int SubFrames
Definition
vtkSimpleMotionBlurPass.h:138
vtkSimpleMotionBlurPass::AccumulationTexture
vtkTextureObject * AccumulationTexture[2]
Definition
vtkSimpleMotionBlurPass.h:122
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:129
vtkSimpleMotionBlurPass::ColorFormat
int ColorFormat
Definition
vtkSimpleMotionBlurPass.h:136
vtkSimpleMotionBlurPass::CurrentSubFrame
int CurrentSubFrame
Definition
vtkSimpleMotionBlurPass.h:139
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:123
vtkSimpleMotionBlurPass::ViewportHeight
int ViewportHeight
Cache viewport values for depth peeling.
Definition
vtkSimpleMotionBlurPass.h:132
vtkSimpleMotionBlurPass::FrameBufferObject
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
Definition
vtkSimpleMotionBlurPass.h:120
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:45
vtkDepthImageProcessingPass.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:53
Generated on
for VTK by
1.15.0