Antialiasing parameters class for the FXAA algorithm. More...
#include <Inventor/antialiasing/SoFXAAParameters.h>
Public Member Functions | |
SoFXAAParameters (int qualityPreset, float subPixQuality, float edgeThresholdQuality, float edgeThresholdMin) | |
virtual | ~SoFXAAParameters () |
int | getQualityPreset () const |
float | getSubPixQuality () const |
float | getEdgeThresholdQuality () const |
float | getEdgeThresholdMin () const |
This class provides the different parameters that can be set to configure the FXAA antialiasing algorithm. These objects are used with the setAntialiasing() method in SoSceneManager and some viewer classes (e.g. SoWinGLWidget).
SoAccumulationAntialiasingParameters, SoFullSceneAntialiasingParameters
SoFXAAParameters::SoFXAAParameters | ( | int | qualityPreset, | |
float | subPixQuality, | |||
float | edgeThresholdQuality, | |||
float | edgeThresholdMin | |||
) |
Constructor which takes a value for each possible parameter.
qualityPreset | Quality value in the range [10;15] , [20;29] or equal to 39. | |
subPixQuality | Chooses the amount of sub-pixel aliasing removal (1.0 upper limit = softer, 0.0 = off). | |
edgeThresholdQuality | The minimum amount of local contrast required to apply algorithm (0.333 = too little but faster, 0.063 = overkill and slower). | |
edgeThresholdMin | Trims the algorithm from processing darks (0.0833 = upper limit the start of visible unfiltered edges, 0.0625 = high quality and faster, 0.0312 = visible limit but slower). |
virtual SoFXAAParameters::~SoFXAAParameters | ( | ) | [virtual] |
Default destructor.
float SoFXAAParameters::getEdgeThresholdMin | ( | ) | const |
Returns the edgeThresholdMinimum parameter.
float SoFXAAParameters::getEdgeThresholdQuality | ( | ) | const |
Returns the edgeThresholdQuality parameter.
int SoFXAAParameters::getQualityPreset | ( | ) | const |
Returns the quality preset.
float SoFXAAParameters::getSubPixQuality | ( | ) | const |
Returns the subPixQuality parameter.