VTK  9.3.1
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:
170  vtkFXAAOptions();
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
abstract base class for most VTK objects
Definition: vtkObject.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_INT_MAX
Definition: vtkType.h:144
DebugOption
Debugging options that affect the output color buffer.
DebugOption DebugOptionValue
int EndpointSearchIterations
float HardContrastThreshold
a simple class to control print indentation
Definition: vtkIndent.h:28
bool UseHighQualityEndpoints
float SubpixelContrastThreshold
float SubpixelBlendLimit
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
float RelativeContrastThreshold
Configuration for FXAA implementations.