VTK  9.3.20240328
vtkFXAAOptions.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 
12 #ifndef vtkFXAAOptions_h
13 #define vtkFXAAOptions_h
14 
15 #include "vtkObject.h"
16 #include "vtkRenderingCoreModule.h" // For export macro
17 
18 VTK_ABI_NAMESPACE_BEGIN
19 class VTKRENDERINGCORE_EXPORT vtkFXAAOptions : public vtkObject
20 {
21 public:
27  {
28  FXAA_NO_DEBUG = 0,
35  FXAA_DEBUG_ONLY_EDGE_AA
36  };
37 
38  static vtkFXAAOptions* New();
39  vtkTypeMacro(vtkFXAAOptions, vtkObject);
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
58  vtkSetClampMacro(RelativeContrastThreshold, float, 0.f, 1.f);
59  vtkGetMacro(RelativeContrastThreshold, float);
61 
63 
76  vtkSetClampMacro(HardContrastThreshold, float, 0.f, 1.f);
77  vtkGetMacro(HardContrastThreshold, float);
79 
81 
99  vtkSetClampMacro(SubpixelBlendLimit, float, 0.f, 1.f);
100  vtkGetMacro(SubpixelBlendLimit, float);
102 
104 
126  vtkSetClampMacro(SubpixelContrastThreshold, float, 0.f, 1.f);
127  vtkGetMacro(SubpixelContrastThreshold, float);
129 
131 
143  vtkSetMacro(UseHighQualityEndpoints, bool);
144  vtkGetMacro(UseHighQualityEndpoints, bool);
145  vtkBooleanMacro(UseHighQualityEndpoints, bool);
147 
149 
156  vtkSetClampMacro(EndpointSearchIterations, int, 0, VTK_INT_MAX);
157  vtkGetMacro(EndpointSearchIterations, int);
159 
161 
165  vtkSetMacro(DebugOptionValue, DebugOption);
166  vtkGetMacro(DebugOptionValue, DebugOption);
168 
169 protected:
171  ~vtkFXAAOptions() override;
172 
180 
181 private:
182  vtkFXAAOptions(const vtkFXAAOptions&) = delete;
183  void operator=(const vtkFXAAOptions&) = delete;
184 };
185 
186 VTK_ABI_NAMESPACE_END
187 #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
float RelativeContrastThreshold
bool UseHighQualityEndpoints
DebugOption
Debugging options that affect the output color buffer.
@ FXAA_DEBUG_EDGE_SAMPLE_OFFSET
@ FXAA_DEBUG_SUBPIXEL_ALIASING
static vtkFXAAOptions * New()
~vtkFXAAOptions() override
int EndpointSearchIterations
a simple class to control print indentation
Definition: vtkIndent.h:108
abstract base class for most VTK objects
Definition: vtkObject.h:161
#define VTK_INT_MAX
Definition: vtkType.h:144