Class DrawableInteractiveMaskRenderer

java.lang.Object
cz.fidentis.analyst.drawables.renderers.impl.AbstractDrawableRenderer<DrawableInteractiveMask>
cz.fidentis.analyst.drawables.renderers.impl.DrawableInteractiveMaskRenderer

public class DrawableInteractiveMaskRenderer extends AbstractDrawableRenderer<DrawableInteractiveMask>
Renderer for DrawableInteractiveMask.
  • Constructor Details

    • DrawableInteractiveMaskRenderer

      public DrawableInteractiveMaskRenderer()
  • Method Details

    • isPointOutsideBox

      protected static boolean isPointOutsideBox(javax.vecmath.Point3d point, Box box)
      legacy expression determining if point is within bounding box
      Parameters:
      point - point to check
      box - box to check
      Returns:
      true if outside else false
    • getDrawableClass

      public Class<?> getDrawableClass()
    • renderObject

      protected void renderObject(com.jogamp.opengl.GL2 gl, DrawableInteractiveMask drawableInteractiveMask)
      Specified by:
      renderObject in class AbstractDrawableRenderer<DrawableInteractiveMask>
    • interpolatePoints

      protected List<CrossSection3D> interpolatePoints(SurfaceMask mask)
      interpolates curves to draw onto face
      Returns:
      list of curves
    • interpolateLine

      protected CrossSection3D interpolateLine(SurfaceMask.MaskPoint3D p1, SurfaceMask.MaskPoint3D p2)
      Interpolates a single curve between surface mask points using a cutting plane defined by the said two points and a normal of mesh triangle upon which a point lies.
      Parameters:
      p1 -
      p2 -
      Returns:
      a single curve
    • getCylinders

      protected List<Cylinder> getCylinders(SurfaceMask mask)
      Calculates bounding cylinders to draw a connecting line between two points correctly
      Returns:
      a list of bounding cylinders
    • getBoxes

      protected List<Box> getBoxes(SurfaceMask mask)
      Legacy code to get bounding boxes for lines between points
      Returns:
      list of boxes for neighbouring points