28#ifndef vtkOpenGLFXAAFilter_h
29#define vtkOpenGLFXAAFilter_h
33#include "vtkRenderingOpenGL2Module.h"
37VTK_ABI_NAMESPACE_BEGIN
74 vtkSetClampMacro(RelativeContrastThreshold,
float, 0.f, 1.f);
75 vtkGetMacro(RelativeContrastThreshold,
float);
76 vtkSetClampMacro(HardContrastThreshold,
float, 0.f, 1.f);
77 vtkGetMacro(HardContrastThreshold,
float);
78 vtkSetClampMacro(SubpixelBlendLimit,
float, 0.f, 1.f);
79 vtkGetMacro(SubpixelBlendLimit,
float);
80 vtkSetClampMacro(SubpixelContrastThreshold,
float, 0.f, 1.f);
81 vtkGetMacro(SubpixelContrastThreshold,
float);
83 vtkGetMacro(UseHighQualityEndpoints,
bool);
84 vtkBooleanMacro(UseHighQualityEndpoints,
bool);
85 vtkSetClampMacro(EndpointSearchIterations,
int, 0,
VTK_INT_MAX);
86 vtkGetMacro(EndpointSearchIterations,
int);
Configuration for FXAA implementations.
DebugOption
Debugging options that affect the output color buffer.
a simple class to control print indentation
abstract base class for most VTK objects
Perform FXAA antialiasing on the current framebuffer.
virtual void SetDebugOptionValue(vtkFXAAOptions::DebugOption opt)
Parameter for tuning the FXAA implementation.
vtkFXAAOptions::DebugOption DebugOptionValue
void Execute(vtkOpenGLRenderer *ren)
Perform FXAA on the current render buffer in ren.
vtkOpenGLQuadHelper * QHelper
int EndpointSearchIterations
void EndTimeQuery(vtkOpenGLRenderTimer *timer)
~vtkOpenGLFXAAFilter() override
vtkOpenGLRenderTimer * FXAATimer
void UpdateConfiguration(vtkFXAAOptions *opts)
Copy the configuration values from opts into this filter.
float HardContrastThreshold
float RelativeContrastThreshold
vtkOpenGLRenderTimer * PreparationTimer
vtkOpenGLRenderer * Renderer
bool UseHighQualityEndpoints
void ReleaseGraphicsResources()
Release all OpenGL state.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
float SubpixelContrastThreshold
void SubstituteFragmentShader(std::string &fragShader)
void StartTimeQuery(vtkOpenGLRenderTimer *timer)
virtual void SetUseHighQualityEndpoints(bool val)
Parameter for tuning the FXAA implementation.
static vtkOpenGLFXAAFilter * New()
Class to make rendering a full screen quad easier.
Asynchronously measures GPU execution time for a single event.
The ShaderProgram uses one or more Shader objects.
abstracts an OpenGL texture object.