VTK  9.0.20200807
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:
46  static vtkOpenGLFXAAPass* New();
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
53  void Render(const vtkRenderState* s) override;
54 
55  vtkGetObjectMacro(FXAAOptions, vtkFXAAOptions);
56  virtual void SetFXAAOptions(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
vtkImageProcessingPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOpenGLFXAAPass
Render pass calling the FXAA filter.
Definition: vtkOpenGLFXAAPass.h:43
vtkImageProcessingPass.h
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkRenderPass::Render
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
vtkFXAAOptions
Configuration for FXAA implementations.
Definition: vtkFXAAOptions.h:30
vtkOpenGLFXAAFilter.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkNew< vtkOpenGLFXAAFilter >
vtkNew.h
vtkRenderState
Context in which a vtkRenderPass will render.
Definition: vtkRenderState.h:40
vtkImageProcessingPass
Convenient class for post-processing passes. render pass.
Definition: vtkImageProcessingPass.h:38