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:
      sampling strength value
    • 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
    • getColor

      public Color getColor()
      Specified by:
      getColor in interface SurfaceMask2D
      Returns:
      color of mask
    • setColor

      public void setColor(Color color)
      Description copied from interface: SurfaceMask2D
      Sets color of mask
      Specified by:
      setColor in interface SurfaceMask2D
      Parameters:
      color - to be set
    • getOrigin

      public Point getOrigin()
      Description copied from interface: SurfaceMask2D
      Gets the origin point.
      Specified by:
      getOrigin in interface SurfaceMask2D
      Returns:
      origin point.
    • setOrigin

      public void setOrigin(Point origin)
      Description copied from interface: SurfaceMask2D
      Sets the origin point.
      Specified by:
      setOrigin in interface SurfaceMask2D
    • getResize

      public Point getResize()
      Description copied from interface: SurfaceMask2D
      Gets the resize point
      Specified by:
      getResize in interface SurfaceMask2D
      Returns:
      resize point
    • setResize

      public void setResize(Point resize)
      Description copied from interface: SurfaceMask2D
      Sets the resize point
      Specified by:
      setResize in interface SurfaceMask2D
      Parameters:
      resize - point to be set
    • getCameraPosition

      public javax.vecmath.Vector3d getCameraPosition()
      Description copied from interface: SurfaceMask2D
      Gets camera position
      Specified by:
      getCameraPosition in interface SurfaceMask2D
      Returns:
      camera position vector
    • setCameraPosition

      public void setCameraPosition(javax.vecmath.Vector3d cameraPosition)
      Description copied from interface: SurfaceMask2D
      Sets camera position vector
      Specified by:
      setCameraPosition in interface SurfaceMask2D
      Parameters:
      cameraPosition - to be set