Class SoVolumeShape

    • Field Detail

      • interpolation

        public final SoSFEnum<SoVolumeShape.Interpolations> interpolation
        Interpolation mode. . Default is LINEAR. NOTE: In most cases on modern graphics boards, indexed textures are used, so this refers to interpolation of volume data values.
      • composition

        @Deprecated
        public final SoSFEnum<SoVolumeShape.Compositions> composition
        Deprecated.
        As of Open Inventor 9100. See SoVolumeRender.renderMode field.
        Specifies color composition mode. . Default is ALPHA_BLENDING.

        ALPHA_BLENDING blends the R, G, and B components for each pixel based on the their alpha values.

        SUM_INTENSITY draws the sum of the R, G, and B components for each pixel.

        MAX_INTENSITY draws the maximum R, G, and B components for each pixel.

        MIN_INTENSITY draws the minimum R, G, and B components for each pixel.

        Note: In all modes, blending is done against the background color of the scene (or the object behind the volume). This means that, using MIN_INTENSITY for example, if the background color is black then 0,0,0 is already the minimum RGB value and the volume will not be visible. Generally when using MIN_INTENSITY the background color should be set to white (1,1,1) and when using MAX_INTENSITY or SUM_INTENSITY the background color should be set to black (0,0,0). To set the background color see the setBackgroundColor method of the appropriate RenderArea class, for example SoWinRenderArea on Windows.

        Since:
        Open Inventor 5.0.3

        Warning Deprecated since Open Inventor 9100. See SoVolumeRender.renderMode field.