VTK  9.3.0
vtkOpenGLFXAAPass.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
23 #ifndef vtkOpenGLFXAAPass_h
24 #define vtkOpenGLFXAAPass_h
25 
26 #include "vtkImageProcessingPass.h"
27 
28 #include "vtkNew.h" // For vtkNew
29 #include "vtkOpenGLFXAAFilter.h" // For vtkOpenGLFXAAFilter
30 #include "vtkRenderingOpenGL2Module.h" // For export macro
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class vtkFXAAOptions;
34 
35 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLFXAAPass : public vtkImageProcessingPass
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
45  void Render(const vtkRenderState* s) override;
46 
47  vtkGetObjectMacro(FXAAOptions, vtkFXAAOptions);
49 
50 protected:
51  vtkOpenGLFXAAPass() = default;
52  ~vtkOpenGLFXAAPass() override;
53 
58 
59  vtkFXAAOptions* FXAAOptions = nullptr;
60 
61 private:
62  vtkOpenGLFXAAPass(const vtkOpenGLFXAAPass&) = delete;
63  void operator=(const vtkOpenGLFXAAPass&) = delete;
64 };
65 
66 VTK_ABI_NAMESPACE_END
67 #endif
Configuration for FXAA implementations.
Convenient class for post-processing passes.
a simple class to control print indentation
Definition: vtkIndent.h:38
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.