Class SurfaceMask

java.lang.Object
cz.fidentis.analyst.data.surfacemask.SurfaceMask

public class SurfaceMask extends Object
Class representing the Interactive Mask, it is defined as a list of points lines between them and bounding cylinders.
  • Constructor Details

    • SurfaceMask

      public SurfaceMask()
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Returns:
      true if the mast has no point defined so far.
    • addPoint

      public void addPoint(javax.vecmath.Point3d surfacePoint, MeshFacet facet, javax.vecmath.Vector3d normal, boolean isSelected, boolean isSampled, boolean isPrimary)
      Adds point of Interactive Mask
      Parameters:
      surfacePoint - a point lying on the surface
      facet - facet of the surface
      normal - Normal vector
      isSelected - Determines if the new point is selected
      isSampled - Determines if the new point is sampled
      isPrimary - Determines if the new point is primary
    • getPoints

      public List<SurfaceMask.MaskPoint3D> getPoints()
      get points of interactive mask
      Returns:
      point
    • shiftPoint

      public void shiftPoint(SurfaceMask.MaskPoint3D point, javax.vecmath.Point3d newPoint)
      Shifts the position of a single point by a given offset.
      Parameters:
      point - the MaskPoint3D to shift
      newPoint - new position
    • shiftPointsEllipse

      public void shiftPointsEllipse(SurfaceMask.MaskPoint3D point, javax.vecmath.Point3d newPoint, SurfaceMask ellipseMask)
      Shifts the position of a points of rectangle points which have inscribed ellipse by a given offset. Calculates new inscribed ellipse points
      Parameters:
      point - dragged MaskPoint3D
      newPoint - new position of dragged point
      ellipseMask - The mask representing the inscribed ellipse.
    • toString

      public String toString()
      Overrides:
      toString in class Object