VTK  9.2.6
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 class vtkFXAAOptions;
45 
46 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLFXAAPass : public vtkImageProcessingPass
47 {
48 public:
49  static vtkOpenGLFXAAPass* New();
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
56  void Render(const vtkRenderState* s) override;
57 
58  vtkGetObjectMacro(FXAAOptions, vtkFXAAOptions);
59  virtual void SetFXAAOptions(vtkFXAAOptions*);
60 
61 protected:
62  vtkOpenGLFXAAPass() = default;
63  ~vtkOpenGLFXAAPass() override;
64 
69 
70  vtkFXAAOptions* FXAAOptions = nullptr;
71 
72 private:
73  vtkOpenGLFXAAPass(const vtkOpenGLFXAAPass&) = delete;
74  void operator=(const vtkOpenGLFXAAPass&) = delete;
75 };
76 
77 #endif
vtkNew< vtkOpenGLFXAAFilter > FXAAFilter
Graphics resources.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Convenient class for post-processing passes.
Render pass calling the FXAA filter.
Context in which a vtkRenderPass will render.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Configuration for FXAA implementations.