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
  • Enum Constant Details

    • 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 for 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.

      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 Details

    • values

      public static SoVolumeShape.Interpolations[] 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

      public static SoVolumeShape.Interpolations valueOf(String name)
      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 name
      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 interface IntegerValuedEnum
      Returns:
      the integer value of the enum constant.