VTK  9.2.20230327
vtkOpenGLFXAAPass.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLFXAAPass.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 =========================================================================*/
35 #ifndef vtkOpenGLFXAAPass_h
36 #define vtkOpenGLFXAAPass_h
37 
38 #include "vtkImageProcessingPass.h"
39 
40 #include "vtkNew.h" // For vtkNew
41 #include "vtkOpenGLFXAAFilter.h" // For vtkOpenGLFXAAFilter
42 #include "vtkRenderingOpenGL2Module.h" // For export macro
43 
44 VTK_ABI_NAMESPACE_BEGIN
45 class vtkFXAAOptions;
46 
47 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLFXAAPass : public vtkImageProcessingPass
48 {
49 public:
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
57  void Render(const vtkRenderState* s) override;
58 
59  vtkGetObjectMacro(FXAAOptions, vtkFXAAOptions);
61 
62 protected:
63  vtkOpenGLFXAAPass() = default;
64  ~vtkOpenGLFXAAPass() override;
65 
70 
71  vtkFXAAOptions* FXAAOptions = nullptr;
72 
73 private:
74  vtkOpenGLFXAAPass(const vtkOpenGLFXAAPass&) = delete;
75  void operator=(const vtkOpenGLFXAAPass&) = delete;
76 };
77 
78 VTK_ABI_NAMESPACE_END
79 #endif
Configuration for FXAA implementations.
Convenient class for post-processing passes.
a simple class to control print indentation
Definition: vtkIndent.h:120
Render pass calling the FXAA filter.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetFXAAOptions(vtkFXAAOptions *)
~vtkOpenGLFXAAPass() override
void Render(const vtkRenderState *s) override
Perform rendering according to a render state.
vtkOpenGLFXAAPass()=default
static vtkOpenGLFXAAPass * New()
vtkNew< vtkOpenGLFXAAFilter > FXAAFilter
Graphics resources.
Context in which a vtkRenderPass will render.