public static enum SoVolumeShape.Interpolations extends java.lang.Enum<SoVolumeShape.Interpolations> implements IntegerValuedEnum
interpolation
field. Also used with interpolation field in volume geometry nodes, e.g. SoVolumeIndexedFaceSet.interpolation
Enum Constant and 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 for
SoObliqueSlice . |
Modifier and Type | Method and Description |
---|---|
static SoVolumeShape.Interpolations |
fromValue(int val)
Deprecated.
Use
valueOf(int) instead. |
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 value
|
static 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.
|
public static final SoVolumeShape.Interpolations NEAREST
public static final SoVolumeShape.Interpolations LINEAR
SoOrthoSlice
, SoObliqueSlice
, SoVolumeSkin
, SoFenceSlice
) and tri-linear interpolation for 3D textures (SoVolumeRender
, SoVolumeGeometry).public static final SoVolumeShape.Interpolations TRILINEAR
SoObliqueSlice
.
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. public static final SoVolumeShape.Interpolations MULTISAMPLE_12
SoOrthoSlice
, SoObliqueSlice
, SoVolumeSkin
, SoFenceSlice
). Same as LINEAR for other nodes. public static final SoVolumeShape.Interpolations CUBIC
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);
public static SoVolumeShape.Interpolations[] values()
for (SoVolumeShape.Interpolations c : SoVolumeShape.Interpolations.values()) System.out.println(c);
public static SoVolumeShape.Interpolations valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Deprecated public static SoVolumeShape.Interpolations fromValue(int val)
valueOf(int)
instead.public static SoVolumeShape.Interpolations valueOf(int val)
public int getValue()
IntegerValuedEnum
getValue
in interface IntegerValuedEnum
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com