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 "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
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:161
vtkFXAAOptions::FXAA_DEBUG_EDGE_SAMPLE_OFFSET
Definition: vtkFXAAOptions.h:44
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkFXAAOptions::UseHighQualityEndpoints
bool UseHighQualityEndpoints
Definition: vtkFXAAOptions.h:189
vtkFXAAOptions::FXAA_DEBUG_ONLY_SUBPIX_AA
Definition: vtkFXAAOptions.h:45
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:59
vtkFXAAOptions
Configuration for FXAA implementations.
Definition: vtkFXAAOptions.h:30
vtkFXAAOptions::DebugOption
DebugOption
Debugging options that affect the output color buffer.
Definition: vtkFXAAOptions.h:37
vtkFXAAOptions::FXAA_DEBUG_SUBPIXEL_ALIASING
Definition: vtkFXAAOptions.h:40
vtkFXAAOptions::FXAA_DEBUG_EDGE_NUM_STEPS
Definition: vtkFXAAOptions.h:42
vtkFXAAOptions::HardContrastThreshold
float HardContrastThreshold
Definition: vtkFXAAOptions.h:185
vtkFXAAOptions::EndpointSearchIterations
int EndpointSearchIterations
Definition: vtkFXAAOptions.h:188
vtkFXAAOptions::FXAA_DEBUG_EDGE_DISTANCE
Definition: vtkFXAAOptions.h:43
vtkFXAAOptions::RelativeContrastThreshold
float RelativeContrastThreshold
Definition: vtkFXAAOptions.h:184
vtkFXAAOptions::SubpixelBlendLimit
float SubpixelBlendLimit
Definition: vtkFXAAOptions.h:186
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject.h
vtkFXAAOptions::DebugOptionValue
DebugOption DebugOptionValue
Definition: vtkFXAAOptions.h:190
vtkFXAAOptions::SubpixelContrastThreshold
float SubpixelContrastThreshold
Definition: vtkFXAAOptions.h:187
vtkFXAAOptions::FXAA_DEBUG_EDGE_DIRECTION
Definition: vtkFXAAOptions.h:41