Enum Class SoVolumeRender.SamplingAlignments

java.lang.Object
java.lang.Enum<SoVolumeRender.SamplingAlignments>
com.openinventor.volumeviz.nodes.SoVolumeRender.SamplingAlignments
All Implemented Interfaces:
IntegerValuedEnum, Serializable, Comparable<SoVolumeRender.SamplingAlignments>, Constable
Enclosing class:
SoVolumeRender

public static enum SoVolumeRender.SamplingAlignments extends Enum<SoVolumeRender.SamplingAlignments> implements IntegerValuedEnum
Sampling alignment. Used with the samplingAlignment field.

Since:
Open Inventor 9.1

  • Enum Constant Details

    • VIEW_ALIGNED

      public static final SoVolumeRender.SamplingAlignments VIEW_ALIGNED
      Samples are located on planes perpendicular to the view direction.
    • DATA_ALIGNED

      public static final SoVolumeRender.SamplingAlignments DATA_ALIGNED
      Samples are located on planes perpendicular to one axis of the volume.
    • BOUNDARY_ALIGNED

      public static final SoVolumeRender.SamplingAlignments BOUNDARY_ALIGNED
      Samples are located on shells aligned with the volume's internal "boundary". Each ray begins sampling at the first intersected voxel that has an alpha value > opacityThreshold.
    • SMOOTH_BOUNDARY_ALIGNED

      public static final SoVolumeRender.SamplingAlignments SMOOTH_BOUNDARY_ALIGNED
      Similar to BOUNDARY_ALIGNED but uses a cubic interpolation to compute the boundary, giving smoother results when using SoVolumeRenderingQuality.deferredLighting. When using linear interpolation and deferred lighting, BOUNDARY_ALIGNED can generate "flat shading" due to linear interpolation between voxels. SMOOTH_BOUNDARY_ALIGNED will generate a smooth shading using a cubic interpolation to find the volume's boundary and use a linear interpolation for the rest of volume. This is a good compromise between result and performances of a full tricubic interpolation. Please refer to SoVolumeRenderingQuality.deferredLighting and SoVolumeShape.interpolation for details. LIMITATIONS SMOOTH_BOUNDARY_ALIGNED is not supported in the following case:
  • Method Details

    • values

      public static SoVolumeRender.SamplingAlignments[] 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 SoVolumeRender.SamplingAlignments 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 SoVolumeRender.SamplingAlignments 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.