VTK  9.1.0
vtkSSAAPass.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkSSAAPass.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=========================================================================*/
37#ifndef vtkSSAAPass_h
38#define vtkSSAAPass_h
39
40#include "vtkRenderPass.h"
41#include "vtkRenderingOpenGL2Module.h" // For export macro
42
44class vtkOpenGLHelper;
46
47class VTKRENDERINGOPENGL2_EXPORT vtkSSAAPass : public vtkRenderPass
48{
49public:
50 static vtkSSAAPass* New();
51 vtkTypeMacro(vtkSSAAPass, vtkRenderPass);
52 void PrintSelf(ostream& os, vtkIndent indent) override;
53
58 void Render(const vtkRenderState* s) override;
59
66
68
74 vtkGetObjectMacro(DelegatePass, vtkRenderPass);
75 virtual void SetDelegatePass(vtkRenderPass* delegatePass);
77
78protected:
83
87 ~vtkSSAAPass() override;
88
93 vtkTextureObject* Pass1; // render target for the scene
94 vtkTextureObject* Pass2; // render target for the horizontal pass
95
96 // Structures for the various cell types we render.
98
100
101private:
102 vtkSSAAPass(const vtkSSAAPass&) = delete;
103 void operator=(const vtkSSAAPass&) = delete;
104};
105
106#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
Internal class which encapsulates OpenGL FramebufferObject.
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:57
Context in which a vtkRenderPass will render.
Implement Screen Space Anti Aliasing pass.
Definition: vtkSSAAPass.h:48
vtkSSAAPass()
Default constructor.
vtkTextureObject * Pass2
Definition: vtkSSAAPass.h:94
~vtkSSAAPass() override
Destructor.
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
Definition: vtkSSAAPass.h:92
vtkOpenGLHelper * SSAAProgram
Definition: vtkSSAAPass.h:97
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
vtkRenderPass * DelegatePass
Definition: vtkSSAAPass.h:99
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkSSAAPass * New()
vtkTextureObject * Pass1
Definition: vtkSSAAPass.h:93
virtual void SetDelegatePass(vtkRenderPass *delegatePass)
Delegate for rendering the image to be processed.
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39