Class DrawablePlane

java.lang.Object
cz.fidentis.analyst.drawables.Drawable
cz.fidentis.analyst.drawables.DrawablePlane
Direct Known Subclasses:
DrawableCuttingPlane

public class DrawablePlane extends Drawable
A plane to be shown as a rectangular mesh facet. The rectangular shape is generated at run-time from the associated plane.
  • Constructor Details

    • DrawablePlane

      public DrawablePlane(Plane plane, Box bbox, boolean showBBox)
      Constructor.
      Parameters:
      plane - plane
      bbox - bounding box used to estimate cutting pale shape (rectangle)
      showBBox - whether to render bounding box
    • DrawablePlane

      public DrawablePlane(DrawablePlane drPlane)
      Copy constructor.
      Parameters:
      drPlane - Original plane
      Throws:
      NullPointerException - if the input argument is null
  • Method Details

    • getPlane

      public Plane getPlane()
    • isShownBBobx

      public boolean isShownBBobx()
      Returns true if the bounding box is to be rendered.
      Returns:
      true if the bounding box is to be rendered.
    • setShowBBox

      public void setShowBBox(boolean show)
      Switches on/off bounding box rendering.
      Parameters:
      show - If true, then the bounding box is rendered as well
    • setPlane

      public void setPlane(Plane plane)
      Sets the plane
      Parameters:
      plane - new plane
    • renderObject

      protected void renderObject(com.jogamp.opengl.GL2 gl)
      Specified by:
      renderObject in class Drawable
    • renderObject

      protected void renderObject(com.jogamp.opengl.GL2 gl, MeshFacet facet)
    • getBBox

      protected Box getBBox()