Class SoLogicOperationElement


  • public class SoLogicOperationElement
    extends SoElement
    Stores the current logical pixel operation for rendering. This element stores the current logical pixel operation for rendering.

    A Logical Operation is a Per-Sample Processing operation applied between the Fragment's color values and color values in the Framebuffer being rendered to that correspond to that particular fragment color. Logical operations are boolean operations performed on the bit pattern that represents the colors.

    • Method Detail

      • set

        public static void set​(SoState state,
                               boolean enable,
                               SoLogicOperationElement.LogicOperations operation)
        set the current logic operation

        Parameters:
        state - the state from which to retrieve the element instance.

        enable - Whether to enable or not logic operations

        operation - which operation to apply
      • getClassStackIndex

        @Deprecated(since="9.3.0.0")
        public static int getClassStackIndex()
        Deprecated.
        As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)
        Returns the stack id for this element. ] *