Class SoFXAAParameters
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.antialiasing.SoAntialiasingParameters
-
- com.openinventor.inventor.antialiasing.SoFXAAParameters
-
public class SoFXAAParameters extends SoAntialiasingParameters
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 inSoSceneManager
and some viewer classes (e.g.SoWinGLWidget
).
-
-
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
Constructors Constructor Description SoFXAAParameters(int qualityPreset, float subPixQuality, float edgeThresholdQuality, float edgeThresholdMin)
Constructor which takes a value for each possible parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
float
getEdgeThresholdMin()
Returns the edgeThresholdMinimum parameter.float
getEdgeThresholdQuality()
Returns the edgeThresholdQuality parameter.int
getQualityPreset()
Returns the quality preset.float
getSubPixQuality()
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 Detail
-
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 Detail
-
getSubPixQuality
public float getSubPixQuality()
Returns the subPixQuality parameter.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getQualityPreset
public int getQualityPreset()
Returns the quality preset.
-
getEdgeThresholdMin
public float getEdgeThresholdMin()
Returns the edgeThresholdMinimum parameter.
-
getEdgeThresholdQuality
public float getEdgeThresholdQuality()
Returns the edgeThresholdQuality parameter.
-
-