Class CreateMarkFromPoints

Object
AnchorBean<CreateMarkFromPoints>
CreateMarkFromPoints

public class CreateMarkFromPoints extends AnchorBean<CreateMarkFromPoints>
Creates a mark by fitting it to a set of points extracted from other marks.
  • Constructor Details

    • CreateMarkFromPoints

      public CreateMarkFromPoints()
  • Method Details

    • fitMarkToPointsFromMarks

      public Optional<Mark> fitMarkToPointsFromMarks(MarkCollection marks, Dimensions dimensions) throws OperationFailedException
      Extracts points from marks, creates a new mark, and fits this mark to the extracted points.
      Parameters:
      marks - a collection of marks containing PointLists
      dimensions - the dimensions of the space in which the marks exist
      Returns:
      an Optional containing the fitted mark, or empty if fitting was not possible
      Throws:
      OperationFailedException - if the operation fails
    • getMarkProvider

      public SingleMarkProvider getMarkProvider()
      Provides the mark to be fitted.
    • setMarkProvider

      public void setMarkProvider(SingleMarkProvider markProvider)
      Provides the mark to be fitted.
    • getPointsFitter

      public PointsFitter getPointsFitter()
      Fits the provided mark to the extracted points.
    • setPointsFitter

      public void setPointsFitter(PointsFitter pointsFitter)
      Fits the provided mark to the extracted points.
    • getMinNumPoints

      public int getMinNumPoints()
      Minimum number of points required to create a mark.
    • setMinNumPoints

      public void setMinNumPoints(int minNumPoints)
      Minimum number of points required to create a mark.
    • isThrowExceptionForInsufficientPoints

      public boolean isThrowExceptionForInsufficientPoints()
      Whether to throw an exception when there are insufficient points.
    • setThrowExceptionForInsufficientPoints

      public void setThrowExceptionForInsufficientPoints(boolean throwExceptionForInsufficientPoints)
      Whether to throw an exception when there are insufficient points.