Class SoFXAAParameters
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.antialiasing.SoAntialiasingParameters
com.openinventor.inventor.antialiasing.SoFXAAParameters
Antialiasing parameters class for the FXAA algorithm.
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.
invalid reference
SoWinGLWidget
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
ConstructorsConstructorDescriptionSoFXAAParameters
(int qualityPreset, float subPixQuality, float edgeThresholdQuality, float edgeThresholdMin) Constructor which takes a value for each possible parameter. -
Method Summary
Modifier and TypeMethodDescriptionboolean
float
Returns the edgeThresholdMinimum parameter.float
Returns the edgeThresholdQuality parameter.int
Returns the quality preset.float
Returns the subPixQuality parameter.Methods inherited from class com.openinventor.inventor.antialiasing.SoAntialiasingParameters
copy
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
SoFXAAParameters
public SoFXAAParameters(int qualityPreset, float subPixQuality, float edgeThresholdQuality, float edgeThresholdMin) Constructor which takes a value for each possible parameter.- Parameters:
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).
-
-
Method Details
-
getSubPixQuality
public float getSubPixQuality()Returns the subPixQuality parameter. -
equals
-
getQualityPreset
public int getQualityPreset()Returns the quality preset. -
getEdgeThresholdMin
public float getEdgeThresholdMin()Returns the edgeThresholdMinimum parameter. -
getEdgeThresholdQuality
public float getEdgeThresholdQuality()Returns the edgeThresholdQuality parameter.
-