Class ReflectInAxesWithinDistance

All Implemented Interfaces:
CompatibleWithMark

public class ReflectInAxesWithinDistance extends PointsFitter
Reflects points in each axes if all points are within a certain distance from it
Author:
Owen Feehan
  • Constructor Details

    • ReflectInAxesWithinDistance

      public ReflectInAxesWithinDistance()
  • Method Details

    • isCompatibleWith

      public boolean isCompatibleWith(Mark testMark)
      Description copied from interface: CompatibleWithMark
      Tests if the implementing object is compatible with a mark of a particular type.
      Parameters:
      testMark - the mark to test for compatibility
      Returns:
      true if the implementing object is compatible with the given mark, false otherwise
    • fit

      public void fit(List<Point3f> points, Mark mark, Dimensions dimensions) throws PointsFitterException, InsufficientPointsException
      Description copied from class: PointsFitter
      Fits a mark to a set of points within given dimensions.
      Specified by:
      fit in class PointsFitter
      Parameters:
      points - the list of points to fit the mark to
      mark - the mark to be fitted (will be modified)
      dimensions - the dimensions within which the fitting occurs
      Throws:
      PointsFitterException - if an error occurs during the fitting process
      InsufficientPointsException - if there are not enough points to perform the fitting
    • getPointsFitter

      public PointsFitter getPointsFitter()
    • setPointsFitter

      public void setPointsFitter(PointsFitter pointsFitter)
    • getDistanceX

      public double getDistanceX()
    • setDistanceX

      public void setDistanceX(double distanceX)
    • getDistanceY

      public double getDistanceY()
    • setDistanceY

      public void setDistanceY(double distanceY)
    • getDistanceZ

      public double getDistanceZ()
    • setDistanceZ

      public void setDistanceZ(double distanceZ)