VTK  9.1.0
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
35class vtkOpenGLState;
37
38class VTKRENDERINGOPENGL2_EXPORT vtkOrderIndependentTranslucentPass : public vtkOpenGLRenderPass
39{
40public:
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
73protected:
78
83
85
87
95
98
102
104
105 // useful to store
107
108private:
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:113
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:67
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:36
@ string
Definition: vtkX3D.h:496