VTK  9.0.1
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 
30 class VTKRENDERINGCORE_EXPORT vtkFXAAOptions : public vtkObject
31 {
32 public:
38  {
39  FXAA_NO_DEBUG = 0,
46  FXAA_DEBUG_ONLY_EDGE_AA
47  };
48 
49  static vtkFXAAOptions* New();
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 
180 protected:
181  vtkFXAAOptions();
182  ~vtkFXAAOptions() override;
183 
191 
192 private:
193  vtkFXAAOptions(const vtkFXAAOptions&) = delete;
194  void operator=(const vtkFXAAOptions&) = delete;
195 };
196 
197 #endif // vtkFXAAOptions_h
abstract base class for most VTK objects
Definition: vtkObject.h:62
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:155
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:33
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.