Class SurfaceMask2DImpl

java.lang.Object
cz.fidentis.analyst.data.surfacemask.impl.SurfaceMask2DImpl
All Implemented Interfaces:
SurfaceMask2D
Direct Known Subclasses:
SurfaceMaskLineImpl, SurfaceMaskRectangleImpl

public abstract class SurfaceMask2DImpl extends Object implements SurfaceMask2D
Base class for SurfaceMask2D classes
  • Constructor Details

    • SurfaceMask2DImpl

      public SurfaceMask2DImpl()
  • Method Details

    • getPointsToProject

      public abstract List<SurfaceMask2D.PointToProject> getPointsToProject()
      Description copied from interface: SurfaceMask2D
      Gets points to be projected.
      Specified by:
      getPointsToProject in interface SurfaceMask2D
      Returns:
      a list of Point
    • shiftMask

      public abstract void shiftMask(int dx, int dy)
      Description copied from interface: SurfaceMask2D
      Shifts the mask by a delta in the x and y direction. Delta is calculated from the previous and the current shift point
      Specified by:
      shiftMask in interface SurfaceMask2D
      Parameters:
      dx - delta in the x direction
      dy - delta in the y direction
    • selectPoint

      public abstract boolean selectPoint(Point location)
      Description copied from interface: SurfaceMask2D
      Selects a point for further manipulation
      Specified by:
      selectPoint in interface SurfaceMask2D
      Parameters:
      location - of the point to select
      Returns:
      true if selected
    • addNewPoint

      public abstract boolean addNewPoint(Point point)
      Description copied from interface: SurfaceMask2D
      Define a new point for the mask
      Specified by:
      addNewPoint in interface SurfaceMask2D
      Parameters:
      point - new point to add
      Returns:
      true if addition succeded
    • containsPoint

      public abstract boolean containsPoint(Point middle)
      Description copied from interface: SurfaceMask2D
      check if location is within the mask shape
      Specified by:
      containsPoint in interface SurfaceMask2D
      Parameters:
      middle - location to check
      Returns:
      true is inside
    • getSelectedPoint

      public Point getSelectedPoint()
      Gets selected point
      Specified by:
      getSelectedPoint in interface SurfaceMask2D
      Returns:
      selected point
    • setSelectedPoint

      public void setSelectedPoint(Point point)
      Sets selected point
      Specified by:
      setSelectedPoint in interface SurfaceMask2D
      Parameters:
      point - to set
    • getSamplingStrength

      public int getSamplingStrength()
      Gets sampling strength
      Returns:
    • setSamplingStrength

      public void setSamplingStrength(int strength)
      Sets sampling strength
      Specified by:
      setSamplingStrength in interface SurfaceMask2D
      Parameters:
      strength - to set
    • updateSelectedPoint

      public void updateSelectedPoint(Point location)
      Updates selected point by changing it's location
      Specified by:
      updateSelectedPoint in interface SurfaceMask2D
      Parameters:
      location - to set
    • getShiftPoint

      public Point getShiftPoint()
      Gets shift point
      Specified by:
      getShiftPoint in interface SurfaceMask2D
      Returns:
      shift point
    • setShiftPoint

      public void setShiftPoint(Point point)
      Sets shift point
      Specified by:
      setShiftPoint in interface SurfaceMask2D
      Parameters:
      point - to set