VTK  9.3.0
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 
23 VTK_ABI_NAMESPACE_BEGIN
25 class vtkTextureObject;
27 class vtkOpenGLState;
29 
30 class VTKRENDERINGOPENGL2_EXPORT vtkOrderIndependentTranslucentPass : public vtkOpenGLRenderPass
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
41  void Render(const vtkRenderState* s) override;
42 
49 
51 
57  vtkGetObjectMacro(TranslucentPass, vtkRenderPass);
58  virtual void SetTranslucentPass(vtkRenderPass* translucentPass);
60 
61  // vtkOpenGLRenderPass virtuals:
62  bool PostReplaceShaderValues(std::string& vertexShader, std::string& geometryShader,
63  std::string& fragmentShader, vtkAbstractMapper* mapper, vtkProp* prop) override;
64 
65 protected:
70 
75 
77 
79 
82  int ViewportX;
83  int ViewportY;
87 
90 
94 
96 
97  // useful to store
99 
100 private:
102  void operator=(const vtkOrderIndependentTranslucentPass&) = delete;
103 };
104 
105 VTK_ABI_NAMESPACE_END
106 #endif
abstract class specifies interface to map data
a simple class to control print indentation
Definition: vtkIndent.h:38
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.
static vtkOrderIndependentTranslucentPass * New()
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.
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:55
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:49
Context in which a vtkRenderPass will render.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
@ string
Definition: vtkX3D.h:490