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 =========================================================================*/
39 #ifndef vtkSSAAPass_h
40 #define vtkSSAAPass_h
41 
42 #include "vtkRenderingOpenGL2Module.h" // For export macro
43 #include "vtkRenderPass.h"
44 
46 class vtkOpenGLHelper;
47 class vtkTextureObject;
48 
50 {
51 public:
52  static vtkSSAAPass *New();
53  vtkTypeMacro(vtkSSAAPass,vtkRenderPass);
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
56  //BTX
58 
60  virtual void Render(const vtkRenderState *s);
61  //ETX
63 
67 
69 
73  vtkGetObjectMacro(DelegatePass,vtkRenderPass);
74  virtual void SetDelegatePass(vtkRenderPass *delegatePass);
76 
77  protected:
79  vtkSSAAPass();
80 
82  virtual ~vtkSSAAPass();
83 
85 
87  vtkTextureObject *Pass1; // render target for the scene
88  vtkTextureObject *Pass2; // render target for the horizontal pass
90 
91  // Structures for the various cell types we render.
93 
94  bool Supported;
96 
98 
99  private:
100  vtkSSAAPass(const vtkSSAAPass&); // Not implemented.
101  void operator=(const vtkSSAAPass&); // Not implemented.
102 };
103 
104 #endif
#define VTKRENDERINGOPENGL2_EXPORT
vtkFrameBufferObject * FrameBufferObject
Definition: vtkSSAAPass.h:86
vtkOpenGLHelper * SSAAProgram
Definition: vtkSSAAPass.h:92
void PrintSelf(ostream &os, vtkIndent indent)
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
Context in which a vtkRenderPass will render.
vtkTextureObject * Pass2
Definition: vtkSSAAPass.h:88
a simple class to control print indentation
Definition: vtkIndent.h:38
internal class which encapsulates OpenGL frame buffer object. Not to be used directly.
vtkRenderPass * DelegatePass
Definition: vtkSSAAPass.h:97
abstracts an OpenGL texture object.
virtual void Render(const vtkRenderState *s)=0
virtual void ReleaseGraphicsResources(vtkWindow *w)
bool Supported
Definition: vtkSSAAPass.h:94
bool SupportProbed
Definition: vtkSSAAPass.h:95
static vtkObject * New()
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:57
Implement Screen Space Anti Aliasing pass.
Definition: vtkSSAAPass.h:49
vtkTextureObject * Pass1
Definition: vtkSSAAPass.h:87