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 =========================================================================*/
37 #ifndef vtkSSAAPass_h
38 #define vtkSSAAPass_h
39 
40 #include "vtkRenderingOpenGL2Module.h" // For export macro
41 #include "vtkRenderPass.h"
42 
44 class vtkOpenGLHelper;
45 class vtkTextureObject;
46 
47 class VTKRENDERINGOPENGL2_EXPORT vtkSSAAPass : public vtkRenderPass
48 {
49 public:
50  static vtkSSAAPass *New();
51  vtkTypeMacro(vtkSSAAPass,vtkRenderPass);
52  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
53 
58  void Render(const vtkRenderState *s) VTK_OVERRIDE;
59 
65  void ReleaseGraphicsResources(vtkWindow *w) VTK_OVERRIDE;
66 
68 
74  vtkGetObjectMacro(DelegatePass,vtkRenderPass);
75  virtual void SetDelegatePass(vtkRenderPass *delegatePass);
77 
78  protected:
82  vtkSSAAPass();
83 
87  ~vtkSSAAPass() VTK_OVERRIDE;
88 
92  vtkOpenGLFramebufferObject *FrameBufferObject;
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.
97  vtkOpenGLHelper *SSAAProgram;
98 
99  vtkRenderPass *DelegatePass;
100 
101  private:
102  vtkSSAAPass(const vtkSSAAPass&) VTK_DELETE_FUNCTION;
103  void operator=(const vtkSSAAPass&) VTK_DELETE_FUNCTION;
104 };
105 
106 #endif
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
Context in which a vtkRenderPass will render.
a simple class to control print indentation
Definition: vtkIndent.h:33
Internal class which encapsulates OpenGL FramebufferObject.
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:55
Implement Screen Space Anti Aliasing pass.
Definition: vtkSSAAPass.h:47
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.