Class PointListBase

Object
Mark
PointListBase
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PointList, Polygon, PolygonCurve

public abstract class PointListBase extends Mark
A base class for marks that consist of a list of 3D points.
See Also:
  • Constructor Details

    • PointListBase

      protected PointListBase()
      Constructs an empty PointListBase.
    • PointListBase

      protected PointListBase(Stream<Point3d> stream)
      Constructs a PointListBase from a stream of Point3d objects.
      Parameters:
      stream - the stream of Point3d objects
  • Method Details

    • doDuplicate

      protected void doDuplicate(PointListBase markNew)
      Duplicates this PointListBase into a new instance.
      Parameters:
      markNew - the new PointListBase instance to copy into
    • updateAfterPointsChange

      public void updateAfterPointsChange()
      Updates the min and max points after the list of points has changed.
    • box

      public BoundingBox box(Dimensions dimensions, int regionID)
      Description copied from class: Mark
      Calculates the bounding box for a specific region of the mark.
      Specified by:
      box in class Mark
      Parameters:
      dimensions - the dimensions of the space
      regionID - the ID of the region
      Returns:
      the bounding box
    • box

      protected BoundingBox box()
      Creates a bounding box from the min and max points.
      Returns:
      the bounding box
    • equalsDeep

      public boolean equalsDeep(Mark mark)
      Description copied from class: Mark
      Checks if this mark is deeply equal to another mark.
      Overrides:
      equalsDeep in class Mark
      Parameters:
      mark - the mark to compare with
      Returns:
      true if the marks are deeply equal, false otherwise
    • getPoints

      public List<Point3d> getPoints()
      The list of 3D points that make up this mark.
    • getMin

      public Point3d getMin()
      The minimum x, y, z coordinates of all the points in the list.
    • getMax

      public Point3d getMax()
      The maximum x, y, z coordinates of all the points in the list.