VTK  9.2.5
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
39
40#include "vtkNew.h" // For vtkNew
41#include "vtkOpenGLFXAAFilter.h" // For vtkOpenGLFXAAFilter
42#include "vtkRenderingOpenGL2Module.h" // For export macro
43
44class vtkFXAAOptions;
45
46class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLFXAAPass : public vtkImageProcessingPass
47{
48public:
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
56 void Render(const vtkRenderState* s) override;
57
58 vtkGetObjectMacro(FXAAOptions, vtkFXAAOptions);
60
61protected:
62 vtkOpenGLFXAAPass() = default;
64
69
70 vtkFXAAOptions* FXAAOptions = nullptr;
71
72private:
73 vtkOpenGLFXAAPass(const vtkOpenGLFXAAPass&) = delete;
74 void operator=(const vtkOpenGLFXAAPass&) = delete;
75};
76
77#endif
Configuration for FXAA implementations.
Convenient class for post-processing passes.
a simple class to control print indentation
Definition: vtkIndent.h:40
Allocate and hold a VTK object.
Definition: vtkNew.h:62
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
vtkNew< vtkOpenGLFXAAFilter > FXAAFilter
Graphics resources.
static vtkOpenGLFXAAPass * New()
Context in which a vtkRenderPass will render.