Package com.openinventor.volumeviz.nodes
Enum SoVolumeShape.Interpolations
- java.lang.Object
-
- java.lang.Enum<SoVolumeShape.Interpolations>
-
- com.openinventor.volumeviz.nodes.SoVolumeShape.Interpolations
-
- All Implemented Interfaces:
IntegerValuedEnum
,java.io.Serializable
,java.lang.Comparable<SoVolumeShape.Interpolations>
- Enclosing class:
- SoVolumeShape
public static enum SoVolumeShape.Interpolations extends java.lang.Enum<SoVolumeShape.Interpolations> implements IntegerValuedEnum
Interpolation mode. Used withinterpolation
field. Also used with interpolation field in volume geometry nodes, e.g.SoVolumeIndexedFaceSet.interpolation
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUBIC
Cubic interpolation.LINEAR
OpenGL linear interpolation (Default).MULTISAMPLE_12
Multi-sample interpolation for slice shapes.NEAREST
OpenGL "nearest neighbor" interpolation.TRILINEAR
Tri-linear interpolation forSoObliqueSlice
.
-
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 SoVolumeShape.Interpolations
valueOf(int val)
Returns the enum constant of this type with the specified integer valuestatic SoVolumeShape.Interpolations
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SoVolumeShape.Interpolations[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEAREST
public static final SoVolumeShape.Interpolations NEAREST
OpenGL "nearest neighbor" interpolation.
-
LINEAR
public static final SoVolumeShape.Interpolations LINEAR
OpenGL linear interpolation (Default). This implies bi-linear interpolation for 2D textures (e.g.SoOrthoSlice
,SoObliqueSlice
,SoVolumeSkin
,SoFenceSlice
) and tri-linear interpolation for 3D textures (SoVolumeRender
, SoVolumeGeometry).
-
TRILINEAR
public static final SoVolumeShape.Interpolations TRILINEAR
Tri-linear interpolation forSoObliqueSlice
. Tri-linear interpolation is used when extracting the 2D texture that will be applied to the slice, providing better image quality. Same as LINEAR for other nodes.
- Since:
- Open Inventor 6.0
-
MULTISAMPLE_12
public static final SoVolumeShape.Interpolations MULTISAMPLE_12
Multi-sample interpolation for slice shapes. Interpolates data values using 12 samples around the voxel. This provides much higher image quality and specifically avoids rendering artifacts due to bi-linear interpolation. Only supported for 2D texture shapes (e.g.SoOrthoSlice
,SoObliqueSlice
,SoVolumeSkin
,SoFenceSlice
). Same as LINEAR for other nodes.
- Since:
- Open Inventor 7.0
-
CUBIC
public static final SoVolumeShape.Interpolations CUBIC
Cubic interpolation. This implies bi-cubic interpolation for 2D textures (e.g.SoOrthoSlice
,SoObliqueSlice
,SoVolumeSkin
,SoFenceSlice
) and tri-cubic interpolation for 3D textures (SoVolumeRender
, SoVolumeGeometry). It gives smoother results, especially for volume rendering.Linear interpolation Cubic interpolation Warning Heavy GPU usage. Primarily useful for still image rendering.
It is recomended to use
SoInteractiveComplexity
node to switch bewteen LINEAR interpolation while moving and CUBIC interpolation for Still frame:SoInteractiveComplexity icplx = new SoInteractiveComplexity(); icplx.fieldSettings.set1Value( 0, "SoVolumeRender interpolation LINEAR CUBIC" ); root.addChild(icplx); - Since:
- Open Inventor 9.3
-
-
Method Detail
-
values
public static SoVolumeShape.Interpolations[] 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 (SoVolumeShape.Interpolations c : SoVolumeShape.Interpolations.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SoVolumeShape.Interpolations 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 SoVolumeShape.Interpolations 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.
-
-