VTK  9.2.6
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=========================================================================*/
28
29#ifndef vtkOrderIndependentTranslucentPass_h
30#define vtkOrderIndependentTranslucentPass_h
31
32#include "vtkOpenGLRenderPass.h"
33#include "vtkRenderingOpenGL2Module.h" // For export macro
34
38class vtkOpenGLState;
40
41class VTKRENDERINGOPENGL2_EXPORT vtkOrderIndependentTranslucentPass : public vtkOpenGLRenderPass
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
52 void Render(const vtkRenderState* s) override;
53
60
62
68 vtkGetObjectMacro(TranslucentPass, vtkRenderPass);
69 virtual void SetTranslucentPass(vtkRenderPass* translucentPass);
71
72 // vtkOpenGLRenderPass virtuals:
73 bool PostReplaceShaderValues(std::string& vertexShader, std::string& geometryShader,
74 std::string& fragmentShader, vtkAbstractMapper* mapper, vtkProp* prop) override;
75
76protected:
81
86
88
90
98
101
105
107
108 // useful to store
110
111private:
113 void operator=(const vtkOrderIndependentTranslucentPass&) = delete;
114};
115
116#endif
abstract class specifies interface to map data
a simple class to control print indentation
Definition vtkIndent.h:40
Internal class which encapsulates OpenGL FramebufferObject.
Class to make rendering a full screen quad easier.
OpenGL rendering window.
OpenGL state storage.
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:57
vtkRenderPass()
Default constructor.
Context in which a vtkRenderPass will render.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow
Definition vtkWindow.h:39