Package com.openinventor.volumeviz.nodes
Enum Class SoVolumeShape.Interpolations
java.lang.Object
java.lang.Enum<SoVolumeShape.Interpolations>
com.openinventor.volumeviz.nodes.SoVolumeShape.Interpolations
- All Implemented Interfaces:
IntegerValuedEnum
,Serializable
,Comparable<SoVolumeShape.Interpolations>
,Constable
- Enclosing class:
SoVolumeShape
public static enum SoVolumeShape.Interpolations
extends Enum<SoVolumeShape.Interpolations>
implements IntegerValuedEnum
Interpolation mode.
Used with
interpolation
field. Also used with interpolation field in volume geometry nodes, e.g. SoVolumeIndexedFaceSet.interpolation
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCubic interpolation.OpenGL linear interpolation (Default).Multi-sample interpolation for slice shapes.OpenGL "nearest neighbor" interpolation.Tri-linear interpolation forSoObliqueSlice
. -
Method Summary
Modifier and TypeMethodDescriptionint
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
Returns the enum constant of this class with the specified name.static SoVolumeShape.Interpolations[]
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
-
NEAREST
OpenGL "nearest neighbor" interpolation. -
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
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
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
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 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.
-