VTK  9.4.20250202
vtkOrderIndependentTranslucentPass.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
17#ifndef vtkOrderIndependentTranslucentPass_h
18#define vtkOrderIndependentTranslucentPass_h
19
20#include "vtkOpenGLRenderPass.h"
21#include "vtkRenderingOpenGL2Module.h" // For export macro
22#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
23
24VTK_ABI_NAMESPACE_BEGIN
28class vtkOpenGLState;
30
32 : public vtkOpenGLRenderPass
33{
34public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
43 void Render(const vtkRenderState* s) override;
44
51
53
59 vtkGetObjectMacro(TranslucentPass, vtkRenderPass);
60 virtual void SetTranslucentPass(vtkRenderPass* translucentPass);
62
63 // vtkOpenGLRenderPass virtuals:
64 bool PostReplaceShaderValues(std::string& vertexShader, std::string& geometryShader,
65 std::string& fragmentShader, vtkAbstractMapper* mapper, vtkProp* prop) override;
66
67protected:
72
77
79
81
89
92
96
98
99 // useful to store
101
102private:
104 void operator=(const vtkOrderIndependentTranslucentPass&) = delete;
105};
106
107VTK_ABI_NAMESPACE_END
108#endif
abstract class specifies interface to map data
a simple class to control print indentation
Definition vtkIndent.h:108
Internal class which encapsulates OpenGL FramebufferObject.
Class to make rendering a full screen quad easier.
Abstract render pass with shader modifications.
OpenGL rendering window.
OpenGL state storage.
Implement OIT rendering using average color.
bool PostReplaceShaderValues(std::string &vertexShader, std::string &geometryShader, std::string &fragmentShader, vtkAbstractMapper *mapper, vtkProp *prop) override
Use vtkShaderProgram::Substitute to replace.
vtkOrderIndependentTranslucentPass()
Default constructor.
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
int ViewportX
Cache viewport values for depth peeling.
int ViewportWidth
Cache viewport values for depth peeling.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int ViewportY
Cache viewport values for depth peeling.
void BlendFinalPeel(vtkOpenGLRenderWindow *renWin)
virtual void SetTranslucentPass(vtkRenderPass *translucentPass)
Delegate for rendering the translucent polygonal geometry.
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
~vtkOrderIndependentTranslucentPass() override
Destructor.
int ViewportHeight
Cache viewport values for depth peeling.
static vtkOrderIndependentTranslucentPass * New()
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:66
Perform part of the rendering of a vtkRenderer.
Context in which a vtkRenderPass will render.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
#define VTK_MARSHALAUTO