VTK  9.1.0
vtkFXAAOptions.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkFXAAOptions.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=========================================================================*/
15
24#ifndef vtkFXAAOptions_h
25#define vtkFXAAOptions_h
26
27#include "vtkObject.h"
28#include "vtkRenderingCoreModule.h" // For export macro
29
30class VTKRENDERINGCORE_EXPORT vtkFXAAOptions : public vtkObject
31{
32public:
38 {
39 FXAA_NO_DEBUG = 0,
46 FXAA_DEBUG_ONLY_EDGE_AA
47 };
48
50 vtkTypeMacro(vtkFXAAOptions, vtkObject);
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
54
69 vtkSetClampMacro(RelativeContrastThreshold, float, 0.f, 1.f);
70 vtkGetMacro(RelativeContrastThreshold, float);
72
74
87 vtkSetClampMacro(HardContrastThreshold, float, 0.f, 1.f);
88 vtkGetMacro(HardContrastThreshold, float);
90
92
110 vtkSetClampMacro(SubpixelBlendLimit, float, 0.f, 1.f);
111 vtkGetMacro(SubpixelBlendLimit, float);
113
115
137 vtkSetClampMacro(SubpixelContrastThreshold, float, 0.f, 1.f);
138 vtkGetMacro(SubpixelContrastThreshold, float);
140
142
154 vtkSetMacro(UseHighQualityEndpoints, bool);
155 vtkGetMacro(UseHighQualityEndpoints, bool);
156 vtkBooleanMacro(UseHighQualityEndpoints, bool);
158
160
167 vtkSetClampMacro(EndpointSearchIterations, int, 0, VTK_INT_MAX);
168 vtkGetMacro(EndpointSearchIterations, int);
170
172
176 vtkSetMacro(DebugOptionValue, DebugOption);
177 vtkGetMacro(DebugOptionValue, DebugOption);
179
180protected:
182 ~vtkFXAAOptions() override;
183
191
192private:
193 vtkFXAAOptions(const vtkFXAAOptions&) = delete;
194 void operator=(const vtkFXAAOptions&) = delete;
195};
196
197#endif // vtkFXAAOptions_h
Configuration for FXAA implementations.
float SubpixelBlendLimit
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
float HardContrastThreshold
DebugOption DebugOptionValue
float SubpixelContrastThreshold
static vtkFXAAOptions * New()
float RelativeContrastThreshold
bool UseHighQualityEndpoints
DebugOption
Debugging options that affect the output color buffer.
@ FXAA_DEBUG_EDGE_SAMPLE_OFFSET
@ FXAA_DEBUG_SUBPIXEL_ALIASING
~vtkFXAAOptions() override
int EndpointSearchIterations
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:73
#define VTK_INT_MAX
Definition: vtkType.h:155