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 
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 
184  float RelativeContrastThreshold;
185  float HardContrastThreshold;
186  float SubpixelBlendLimit;
187  float SubpixelContrastThreshold;
188  int EndpointSearchIterations;
189  bool UseHighQualityEndpoints;
190  DebugOption DebugOptionValue;
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:59
#define VTK_INT_MAX
Definition: vtkType.h:159
DebugOption
Debugging options that affect the output color buffer.
a simple class to control print indentation
Definition: vtkIndent.h:39
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Configuration for FXAA implementations.