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);
56 
61  virtual void Render(const vtkRenderState *s);
62 
69 
71 
77  vtkGetObjectMacro(DelegatePass,vtkRenderPass);
78  virtual void SetDelegatePass(vtkRenderPass *delegatePass);
80 
81  protected:
85  vtkSSAAPass();
86 
90  virtual ~vtkSSAAPass();
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 
102  bool Supported;
104 
106 
107  private:
108  vtkSSAAPass(const vtkSSAAPass&) VTK_DELETE_FUNCTION;
109  void operator=(const vtkSSAAPass&) VTK_DELETE_FUNCTION;
110 };
111 
112 #endif
vtkFrameBufferObject * FrameBufferObject
Graphics resources.
Definition: vtkSSAAPass.h:95
vtkOpenGLHelper * SSAAProgram
Definition: vtkSSAAPass.h:100
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
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 frame buffer object.
vtkRenderPass * DelegatePass
Definition: vtkSSAAPass.h:105
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.
bool Supported
Definition: vtkSSAAPass.h:102
bool SupportProbed
Definition: vtkSSAAPass.h:103
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