VTK  9.4.20250202
vtkDepthImageProcessingPass.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation, Kitware Inc
3// SPDX-License-Identifier: BSD-3-Clause
4/*----------------------------------------------------------------------
5Acknowledgement:
6This algorithm is the result of joint work by Electricité de France,
7CNRS, Collège de France and Université J. Fourier as part of the
8Ph.D. thesis of Christian BOUCHENY.
9------------------------------------------------------------------------*/
23#ifndef vtkDepthImageProcessingPass_h
24#define vtkDepthImageProcessingPass_h
25
27#include "vtkRenderingOpenGL2Module.h" // For export macro
28#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
29
30VTK_ABI_NAMESPACE_BEGIN
32class vtkDepthPeelingPassLayerList; // Pimpl
35
36class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkDepthImageProcessingPass
38{
39public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
43protected:
48
53
63 virtual void RenderDelegate(const vtkRenderState* s, int width, int height, int newWidth,
64 int newHeight, vtkOpenGLFramebufferObject* fbo, vtkTextureObject* colortarget,
65 vtkTextureObject* depthtarget);
66
73
74 int Origin[2]; // Viewport origin
75 int Width; // parent window width
76 int Height; // parent window height
77 int W; // this width
78 int H; // this height
79 int ExtraPixels; // w(h) = width(height) + 2*extrapixels
80
81private:
83 void operator=(const vtkDepthImageProcessingPass&) = delete;
84};
85
86VTK_ABI_NAMESPACE_END
87#endif
Convenient class for post-processing passes.
virtual void RenderDelegate(const vtkRenderState *s, int width, int height, int newWidth, int newHeight, vtkOpenGLFramebufferObject *fbo, vtkTextureObject *colortarget, vtkTextureObject *depthtarget)
Render delegate with a image of different dimensions than the original one.
vtkDepthImageProcessingPass()
Default constructor.
~vtkDepthImageProcessingPass() override
Destructor.
void ReadWindowSize(const vtkRenderState *s)
Read parent size - for sake of code clarity This function is generic, can be useful in multiple image...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Convenient class for post-processing passes.
a simple class to control print indentation
Definition vtkIndent.h:108
Internal class which encapsulates OpenGL FramebufferObject.
OpenGL rendering window.
Context in which a vtkRenderPass will render.
abstracts an OpenGL texture object.
#define VTK_MARSHALAUTO