Package com.openinventor.inventor
Enum Class SoSceneManager.AntialiasingModes
java.lang.Object
java.lang.Enum<SoSceneManager.AntialiasingModes>
com.openinventor.inventor.SoSceneManager.AntialiasingModes
- All Implemented Interfaces:
IntegerValuedEnum
,Serializable
,Comparable<SoSceneManager.AntialiasingModes>
,Constable
- Enclosing class:
SoSceneManager
public static enum SoSceneManager.AntialiasingModes
extends Enum<SoSceneManager.AntialiasingModes>
implements IntegerValuedEnum
Enum which indicates the desired antialiasing algorithm.
This is used by the antialiasing API.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.As of Open Inventor 9.5.0.0.This is the default mode for antialiasing.FSAA is a full-screen antialiasing algorithm based on super-sampling.FXAA is a screen space antialiasing algorithm which uses shaders and is applied after the rendering.Turn off antialiasing.SMAA is a screen space antialiasing algorithm which uses shaders and is applied after the rendering.The advantage of this algorithm is it gives high quality images even on lines. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Returns the integer value of the enum constant.valueOf
(int val) Returns the enum constant of this type with the specified integer valueReturns the enum constant of this class with the specified name.static SoSceneManager.AntialiasingModes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
AUTO
This is the default mode for antialiasing. The different algorithms are tested in the following order and the first available is used: SMAA, FSAA, SUPERSAMPLING. -
FXAA
FXAA is a screen space antialiasing algorithm which uses shaders and is applied after the rendering. The main advantages of this technique are reduced memory footprint and cost. -
SMAA
SMAA is a screen space antialiasing algorithm which uses shaders and is applied after the rendering. The main advantages of this technique are reduced memory footprint and cost with better quality result than FXAA algorithm. -
FSAA
FSAA is a full-screen antialiasing algorithm based on super-sampling. The main advantage is the quality of the antialiasing but the memory and speed cost can be huge.
Note: Use theSoFullSceneAntialiasing
node to control FSAA during render traversal.
Limitations:
- Transparency:
This mode is not compatible with SORTED_PIXEL transparency mode (seeSoGLRenderAction.TransparencyType
). Use SUPERSAMPLING, FXAA or SMAA instead if you need high quality transparency.
- Transparency:
-
SUPERSAMPLING
The advantage of this algorithm is it gives high quality images even on lines. However multiple rendering passes are required, which reduces performance. (Old name was ACCUM_BUFFERS.) -
ACCUM_BUFFERS
Deprecated.As of Open Inventor 9.5.0.0. It corresponds to the SUPERSAMPLING antialiasing type.Deprecated name of SUPERSAMPLING.Warning Deprecated since Open Inventor 9500. It corresponds to the SUPERSAMPLING antialiasing type.
-
NO_ANTIALIASING
Turn off antialiasing.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
Returns the enum constant of this type with the specified integer value- Returns:
- the enum constant of this type with the specified integer value.
-
getValue
public int getValue()Description copied from interface:IntegerValuedEnum
Returns the integer value of the enum constant.- Specified by:
getValue
in interfaceIntegerValuedEnum
- Returns:
- the integer value of the enum constant.
-