VTK  9.0.1
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
vtkOrderIndependentTranslucentPass::FinalBlend
vtkOpenGLQuadHelper * FinalBlend
Definition: vtkOrderIndependentTranslucentPass.h:97
vtkOrderIndependentTranslucentPass::PostReplaceShaderValues
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::New
static vtkOrderIndependentTranslucentPass * New()
vtkOrderIndependentTranslucentPass::TranslucentZTexture
vtkTextureObject * TranslucentZTexture
Definition: vtkOrderIndependentTranslucentPass.h:101
vtkOrderIndependentTranslucentPass::SetTranslucentPass
virtual void SetTranslucentPass(vtkRenderPass *translucentPass)
vtkOrderIndependentTranslucentPass::TranslucentPass
vtkRenderPass * TranslucentPass
Definition: vtkOrderIndependentTranslucentPass.h:84
vtkOrderIndependentTranslucentPass::State
vtkOpenGLState * State
Definition: vtkOrderIndependentTranslucentPass.h:106
vtkOpenGLFramebufferObject
Internal class which encapsulates OpenGL FramebufferObject.
Definition: vtkOpenGLFramebufferObject.h:182
vtkOpenGLQuadHelper
Class to make rendering a full screen quad easier.
Definition: vtkOpenGLQuadHelper.h:58
vtkOrderIndependentTranslucentPass::~vtkOrderIndependentTranslucentPass
~vtkOrderIndependentTranslucentPass() override
Destructor.
vtkOrderIndependentTranslucentPass::ViewportX
int ViewportX
Cache viewport values for depth peeling.
Definition: vtkOrderIndependentTranslucentPass.h:90
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkOrderIndependentTranslucentPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOrderIndependentTranslucentPass::ViewportY
int ViewportY
Definition: vtkOrderIndependentTranslucentPass.h:91
vtkOrderIndependentTranslucentPass
Implement OIT rendering using average color.
Definition: vtkOrderIndependentTranslucentPass.h:39
vtkOrderIndependentTranslucentPass::TranslucentRTexture
vtkTextureObject * TranslucentRTexture
Definition: vtkOrderIndependentTranslucentPass.h:100
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkTextureObject
abstracts an OpenGL texture object.
Definition: vtkTextureObject.h:41
vtkOrderIndependentTranslucentPass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
vtkOrderIndependentTranslucentPass::BlendFinalPeel
void BlendFinalPeel(vtkOpenGLRenderWindow *renWin)
vtkOrderIndependentTranslucentPass::Render
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
vtkX3D::string
@ string
Definition: vtkX3D.h:496
vtkOrderIndependentTranslucentPass::vtkOrderIndependentTranslucentPass
vtkOrderIndependentTranslucentPass()
Default constructor.
vtkOrderIndependentTranslucentPass::TranslucentRGBATexture
vtkTextureObject * TranslucentRGBATexture
Definition: vtkOrderIndependentTranslucentPass.h:99
vtkOpenGLRenderPass
Abstract render pass with shader modifications.
Definition: vtkOpenGLRenderPass.h:39
vtkOpenGLRenderPass.h
vtkOrderIndependentTranslucentPass::ViewportWidth
int ViewportWidth
Definition: vtkOrderIndependentTranslucentPass.h:92
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:52
vtkRenderState
Context in which a vtkRenderPass will render.
Definition: vtkRenderState.h:41
vtkOrderIndependentTranslucentPass::Framebuffer
vtkOpenGLFramebufferObject * Framebuffer
Definition: vtkOrderIndependentTranslucentPass.h:96
vtkOpenGLState
OpenGL state storage.
Definition: vtkOpenGLState.h:80
vtkAbstractMapper
abstract class specifies interface to map data
Definition: vtkAbstractMapper.h:53
vtkRenderPass
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:57
vtkOrderIndependentTranslucentPass::ViewportHeight
int ViewportHeight
Definition: vtkOrderIndependentTranslucentPass.h:93