Enum SoVolumeShape.Interpolations

    • 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 for SoObliqueSlice.
    • 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 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.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 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 name
        java.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 interface IntegerValuedEnum
        Returns:
        the integer value of the enum constant.