VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
18 
19 VTK_ABI_NAMESPACE_BEGIN
20 class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkFXAAOptions : public vtkObject
21 {
22 public:
28  {
29  FXAA_NO_DEBUG = 0,
36  FXAA_DEBUG_ONLY_EDGE_AA
37  };
38 
39  static vtkFXAAOptions* New();
40  vtkTypeMacro(vtkFXAAOptions, vtkObject);
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
59  vtkSetClampMacro(RelativeContrastThreshold, float, 0.f, 1.f);
60  vtkGetMacro(RelativeContrastThreshold, float);
62 
64 
77  vtkSetClampMacro(HardContrastThreshold, float, 0.f, 1.f);
78  vtkGetMacro(HardContrastThreshold, float);
80 
82 
100  vtkSetClampMacro(SubpixelBlendLimit, float, 0.f, 1.f);
101  vtkGetMacro(SubpixelBlendLimit, float);
103 
105 
127  vtkSetClampMacro(SubpixelContrastThreshold, float, 0.f, 1.f);
128  vtkGetMacro(SubpixelContrastThreshold, float);
130 
132 
144  vtkSetMacro(UseHighQualityEndpoints, bool);
145  vtkGetMacro(UseHighQualityEndpoints, bool);
146  vtkBooleanMacro(UseHighQualityEndpoints, bool);
148 
150 
157  vtkSetClampMacro(EndpointSearchIterations, int, 0, VTK_INT_MAX);
158  vtkGetMacro(EndpointSearchIterations, int);
160 
162 
166  vtkSetMacro(DebugOptionValue, DebugOption);
167  vtkGetMacro(DebugOptionValue, DebugOption);
169 
170 protected:
171  vtkFXAAOptions();
172  ~vtkFXAAOptions() override;
173 
181 
182 private:
183  vtkFXAAOptions(const vtkFXAAOptions&) = delete;
184  void operator=(const vtkFXAAOptions&) = delete;
185 };
186 
187 VTK_ABI_NAMESPACE_END
188 #endif // vtkFXAAOptions_h
abstract base class for most VTK objects
Definition: vtkObject.h:52
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:192
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
#define VTK_MARSHALAUTO
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.