VTK
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 =========================================================================*/
40 #ifndef vtkSSAAPass_h
41 #define vtkSSAAPass_h
42 
43 #include "vtkRenderingOpenGL2Module.h" // For export macro
44 #include "vtkRenderPass.h"
45 
47 class vtkOpenGLHelper;
48 class vtkTextureObject;
49 
50 class VTKRENDERINGOPENGL2_EXPORT vtkSSAAPass : public vtkRenderPass
51 {
52 public:
53  static vtkSSAAPass *New();
54  vtkTypeMacro(vtkSSAAPass,vtkRenderPass);
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
61  void Render(const vtkRenderState *s) override;
62 
68  void ReleaseGraphicsResources(vtkWindow *w) override;
69 
71 
77  vtkGetObjectMacro(DelegatePass,vtkRenderPass);
78  virtual void SetDelegatePass(vtkRenderPass *delegatePass);
80 
81  protected:
85  vtkSSAAPass();
86 
90  ~vtkSSAAPass() override;
91 
96  vtkTextureObject *Pass1; // render target for the scene
97  vtkTextureObject *Pass2; // render target for the horizontal pass
98 
99  // Structures for the various cell types we render.
101 
103 
104  private:
105  vtkSSAAPass(const vtkSSAAPass&) = delete;
106  void operator=(const vtkSSAAPass&) = delete;
107 };
108 
109 #endif
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
Definition: vtkSSAAPass.h:95
vtkOpenGLHelper * SSAAProgram
Definition: vtkSSAAPass.h:100
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
Context in which a vtkRenderPass will render.
vtkTextureObject * Pass2
Definition: vtkSSAAPass.h:97
a simple class to control print indentation
Definition: vtkIndent.h:39
Internal class which encapsulates OpenGL FramebufferObject.
vtkRenderPass * DelegatePass
Definition: vtkSSAAPass.h:102
abstracts an OpenGL texture object.
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
virtual void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:58
Implement Screen Space Anti Aliasing pass.
Definition: vtkSSAAPass.h:50
vtkTextureObject * Pass1
Definition: vtkSSAAPass.h:96
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.