Class SoViewportClipping

  • All Implemented Interfaces:
    SafeDisposable

    public class SoViewportClipping
    extends SoNode
    Viewport clipping node. This node specifies a clipping region on the screen defined by a position and a size in pixels. Any portion of a primitive outside this region will not be rendered.

    Note that this clipping is applied in screen space after viewing and view clipping. (For OpenGL programmers, think of it as a call to glScissor.)

    The clipping region also limits the effect of clearing the depth buffer using an SoDepthBuffer node.

    Since:
    Open Inventor 8.6 File format/default:

    ViewClipping {
      origin 0 0
      size 0 0
    }

    Action behavior:

    SoGLRenderAction
    Sets the clipping region. Sets: SoUpdateAreaElement

    SoCallbackAction, SoRayPickAction

    See Also:
    SoViewport
    • Field Detail

      • origin

        public final SoSFVec2f origin
        Specifies the position of the clip region in pixels. (Although this is a float field, the values really are pixels, not normalized units.) Default is 0,0.
      • size

        public final SoSFVec2f size
        Specifies the size of the clip region in pixels. (Although this is a float field, the values really are pixels, not normalized units.) Default is 0,0.
    • Constructor Detail

      • SoViewportClipping

        public SoViewportClipping()
        Constructor.