VTK  9.6.1
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
24#include "vtkRenderingOpenGL2Module.h" // For export macro
25#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
26
27VTK_ABI_NAMESPACE_BEGIN
29class vtkOpenGLHelper;
32
33class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkSimpleMotionBlurPass
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
45 void Render(const vtkRenderState* s) override;
46
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
87protected:
92
97
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
115
118
119 int SubFrames; // number of sub frames
120 int CurrentSubFrame; // what one are we on
123
124private:
126 void operator=(const vtkSimpleMotionBlurPass&) = delete;
127};
128
129VTK_ABI_NAMESPACE_END
130#endif
vtkDepthImageProcessingPass()
Default constructor.
a simple class to control print indentation
Definition vtkIndent.h:29
Internal class which encapsulates OpenGL FramebufferObject.
OpenGL rendering window.
Context in which a vtkRenderPass will render.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int ViewportWidth
Cache viewport values for depth peeling.
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
int ViewportY
Cache viewport values for depth peeling.
vtkTextureObject * AccumulationTexture[2]
virtual void SetSubFrames(int subFrames)
Set the number of sub frames for doing motion blur.
int ViewportX
Cache viewport values for depth peeling.
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
int ViewportHeight
Cache viewport values for depth peeling.
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
vtkSimpleMotionBlurPass()
Default constructor.
~vtkSimpleMotionBlurPass() override
Destructor.
static vtkSimpleMotionBlurPass * New()
In case DepthTextureCompare is true, specify the comparison function in use.
window superclass for vtkRenderWindow
Definition vtkWindow.h:29
#define VTK_MARSHALAUTO