Package com.openinventor.inventor
Enum SoSceneManager.AntialiasingModes
- java.lang.Object
-
- java.lang.Enum<SoSceneManager.AntialiasingModes>
-
- com.openinventor.inventor.SoSceneManager.AntialiasingModes
-
- All Implemented Interfaces:
IntegerValuedEnum
,java.io.Serializable
,java.lang.Comparable<SoSceneManager.AntialiasingModes>
- Enclosing class:
- SoSceneManager
public static enum SoSceneManager.AntialiasingModes extends java.lang.Enum<SoSceneManager.AntialiasingModes> implements IntegerValuedEnum
Enum which indicates the desired antialiasing algorithm. This is used by the antialiasing API.- See Also:
setAntialiasing()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCUM_BUFFERS
Deprecated.As of Open Inventor 9.5.0.0.AUTO
This is the default mode for antialiasing.FSAA
FSAA is a full-screen antialiasing algorithm based on super-sampling.FXAA
FXAA is a screen space antialiasing algorithm which uses shaders and is applied after the rendering.NO_ANTIALIASING
Turn off antialiasing.SMAA
SMAA is a screen space antialiasing algorithm which uses shaders and is applied after the rendering.SUPERSAMPLING
The advantage of this algorithm is it gives high quality images even on lines.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
Returns the integer value of the enum constant.static SoSceneManager.AntialiasingModes
valueOf(int val)
Returns the enum constant of this type with the specified integer valuestatic SoSceneManager.AntialiasingModes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SoSceneManager.AntialiasingModes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO
public static final SoSceneManager.AntialiasingModes 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
public static final SoSceneManager.AntialiasingModes 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
public static final SoSceneManager.AntialiasingModes 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
public static final SoSceneManager.AntialiasingModes 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
public static final SoSceneManager.AntialiasingModes 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(since="9.5.0.0") public static final SoSceneManager.AntialiasingModes 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
public static final SoSceneManager.AntialiasingModes NO_ANTIALIASING
Turn off antialiasing.
-
-
Method Detail
-
values
public static SoSceneManager.AntialiasingModes[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SoSceneManager.AntialiasingModes c : SoSceneManager.AntialiasingModes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SoSceneManager.AntialiasingModes valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
valueOf
public static SoSceneManager.AntialiasingModes valueOf(int val)
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.
-
-