VTK  9.0.2
vtkOrderIndependentTranslucentPass.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOrderIndependentTranslucentPass.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef vtkOrderIndependentTranslucentPass_h
27 #define vtkOrderIndependentTranslucentPass_h
28 
29 #include "vtkOpenGLRenderPass.h"
30 #include "vtkRenderingOpenGL2Module.h" // For export macro
31 
33 class vtkTextureObject;
35 class vtkOpenGLState;
37 
38 class VTKRENDERINGOPENGL2_EXPORT vtkOrderIndependentTranslucentPass : public vtkOpenGLRenderPass
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
49  void Render(const vtkRenderState* s) override;
50 
57 
59 
65  vtkGetObjectMacro(TranslucentPass, vtkRenderPass);
66  virtual void SetTranslucentPass(vtkRenderPass* translucentPass);
68 
69  // vtkOpenGLRenderPass virtuals:
70  bool PostReplaceShaderValues(std::string& vertexShader, std::string& geometryShader,
71  std::string& fragmentShader, vtkAbstractMapper* mapper, vtkProp* prop) override;
72 
73 protected:
78 
83 
85 
87 
90  int ViewportX;
91  int ViewportY;
95 
98 
102 
104 
105  // useful to store
107 
108 private:
110  void operator=(const vtkOrderIndependentTranslucentPass&) = delete;
111 };
112 
113 #endif
abstract class specifies interface to map data
a simple class to control print indentation
Definition: vtkIndent.h:34
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 //VTK::XXX:YYY declarations in the shader sources.
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkOrderIndependentTranslucentPass * New()
void BlendFinalPeel(vtkOpenGLRenderWindow *renWin)
virtual void SetTranslucentPass(vtkRenderPass *translucentPass)
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
~vtkOrderIndependentTranslucentPass() override
Destructor.
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:54
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:57
Context in which a vtkRenderPass will render.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
@ string
Definition: vtkX3D.h:496