VTK  9.1.0
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 =========================================================================*/
32 #ifndef vtkOpenGLFXAAPass_h
33 #define vtkOpenGLFXAAPass_h
34 
35 #include "vtkImageProcessingPass.h"
36 
37 #include "vtkNew.h" // For vtkNew
38 #include "vtkOpenGLFXAAFilter.h" // For vtkOpenGLFXAAFilter
39 #include "vtkRenderingOpenGL2Module.h" // For export macro
40 
41 class vtkFXAAOptions;
42 
43 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLFXAAPass : public vtkImageProcessingPass
44 {
45 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
53  void Render(const vtkRenderState* s) override;
54 
55  vtkGetObjectMacro(FXAAOptions, vtkFXAAOptions);
57 
58 protected:
59  vtkOpenGLFXAAPass() = default;
60  ~vtkOpenGLFXAAPass() override;
61 
66 
67  vtkFXAAOptions* FXAAOptions = nullptr;
68 
69 private:
70  vtkOpenGLFXAAPass(const vtkOpenGLFXAAPass&) = delete;
71  void operator=(const vtkOpenGLFXAAPass&) = delete;
72 };
73 
74 #endif
vtkOpenGLFXAAPass::FXAAFilter
vtkNew< vtkOpenGLFXAAFilter > FXAAFilter
Graphics resources.
Definition: vtkOpenGLFXAAPass.h:65
vtkOpenGLFXAAPass::SetFXAAOptions
virtual void SetFXAAOptions(vtkFXAAOptions *)
vtkOpenGLFXAAPass::Render
void Render(const vtkRenderState *s) override
Perform rendering according to a render state.
vtkOpenGLFXAAPass::New
static vtkOpenGLFXAAPass * New()
vtkOpenGLFXAAPass
Render pass calling the FXAA filter.
Definition: vtkOpenGLFXAAPass.h:44
vtkImageProcessingPass.h
vtkFXAAOptions
Configuration for FXAA implementations.
Definition: vtkFXAAOptions.h:31
vtkOpenGLFXAAFilter.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkNew< vtkOpenGLFXAAFilter >
vtkOpenGLFXAAPass::vtkOpenGLFXAAPass
vtkOpenGLFXAAPass()=default
vtkOpenGLFXAAPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkNew.h
vtkRenderState
Context in which a vtkRenderPass will render.
Definition: vtkRenderState.h:41
vtkImageProcessingPass
Convenient class for post-processing passes.
Definition: vtkImageProcessingPass.h:39
vtkOpenGLFXAAPass::~vtkOpenGLFXAAPass
~vtkOpenGLFXAAPass() override