VTK
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 "vtkRenderingCoreModule.h" // For export macro
28#include "vtkObject.h"
29
30class VTKRENDERINGCORE_EXPORT vtkFXAAOptions: public vtkObject
31{
32public:
38 {
39 FXAA_NO_DEBUG = 0,
46 FXAA_DEBUG_ONLY_EDGE_AA
47 };
48
51 virtual void PrintSelf(ostream &os, vtkIndent indent);
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:
183
184 float RelativeContrastThreshold;
185 float HardContrastThreshold;
186 float SubpixelBlendLimit;
187 float SubpixelContrastThreshold;
188 int EndpointSearchIterations;
189 bool UseHighQualityEndpoints;
190 DebugOption DebugOptionValue;
191
192private:
193 vtkFXAAOptions(const vtkFXAAOptions&) VTK_DELETE_FUNCTION;
194 void operator=(const vtkFXAAOptions&) VTK_DELETE_FUNCTION;
195};
196
197#endif // vtkFXAAOptions_h
Configuration for FXAA implementations.
static vtkFXAAOptions * New()
DebugOption
Debugging options that affect the output color buffer.
@ FXAA_DEBUG_EDGE_SAMPLE_OFFSET
@ FXAA_DEBUG_SUBPIXEL_ALIASING
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_INT_MAX
Definition: vtkType.h:153