java.lang.Object
org.scilab.forge.scirenderer.implementation.jogl.clipping.JoGLClippingPlane
All Implemented Interfaces:
ClippingPlane

public class JoGLClippingPlane extends Object implements ClippingPlane
Author:
Pierre Lando
  • Constructor Details

    • JoGLClippingPlane

      public JoGLClippingPlane(com.jogamp.opengl.GL2 gl, int index)
      Default constructor.
      Parameters:
      gl - the OpenGl context.
      index - the id of this clipping plane.
  • Method Details

    • isEnable

      public boolean isEnable()
      Description copied from interface: ClippingPlane
      Return the status of this clipping plane.
      Specified by:
      isEnable in interface ClippingPlane
      Returns:
      the status of this clipping plane.
    • setEnable

      public void setEnable(boolean isEnable)
      Description copied from interface: ClippingPlane
      Set the status of this clipping plane.
      Specified by:
      setEnable in interface ClippingPlane
      Parameters:
      isEnable - new status of this clipping plane.
    • setEquation

      public void setEquation(Vector4d v)
      Description copied from interface: ClippingPlane
      Set the clipping plane equation.
      Specified by:
      setEquation in interface ClippingPlane
      Parameters:
      v - the plane coordinate.
    • getEquation

      public Vector4d getEquation()
      Description copied from interface: ClippingPlane
      Return the plane equation.
      Specified by:
      getEquation in interface ClippingPlane
      Returns:
      the plane equation.
    • setTransformation

      public void setTransformation(Transformation transformation)
      Description copied from interface: ClippingPlane
      Set the coordinate transformation for the plane.
      Specified by:
      setTransformation in interface ClippingPlane
      Parameters:
      transformation - the new coordinate transformation for the plane.
    • getTransformation

      public Transformation getTransformation()
      Description copied from interface: ClippingPlane
      Return the coordinate transformation for the plane.
      Specified by:
      getTransformation in interface ClippingPlane
      Returns:
      the coordinate transformation for the plane.
    • getIndex

      public int getIndex()
      Description copied from interface: ClippingPlane
      Return the clipping plane index.
      Specified by:
      getIndex in interface ClippingPlane
      Returns:
      the clipping plane index.s