Class PointListBase
Object
org.anchoranalysis.mpp.mark.Mark
org.anchoranalysis.mpp.mark.points.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:
- Serialized Form
-
Constructor Summary
Constructors Modifier Constructor Description protectedPointListBase()Constructs an empty PointListBase.protectedPointListBase(Stream<org.anchoranalysis.spatial.point.Point3d> stream)Constructs a PointListBase from a stream of Point3d objects. -
Method Summary
Modifier and Type Method Description protected org.anchoranalysis.spatial.box.BoundingBoxbox()Creates a bounding box from the min and max points.org.anchoranalysis.spatial.box.BoundingBoxbox(Dimensions dimensions, int regionID)Calculates the bounding box for a specific region of the mark.protected voiddoDuplicate(PointListBase markNew)Duplicates this PointListBase into a new instance.booleanequalsDeep(Mark m)Checks if this mark is deeply equal to another mark.org.anchoranalysis.spatial.point.Point3dgetMax()The maximum x, y, z coordinates of all the points in the list.org.anchoranalysis.spatial.point.Point3dgetMin()The minimum x, y, z coordinates of all the points in the list.List<org.anchoranalysis.spatial.point.Point3d>getPoints()The list of 3D points that make up this mark.voidupdateAfterPointsChange()Updates the min and max points after the list of points has changed.Methods inherited from class org.anchoranalysis.mpp.mark.Mark
boxAllRegions, centerPoint, deriveObject, duplicate, equalsID, getIdentifier, getName, identifier, isPointInside, numberDimensions, numberRegions, quickOverlap, scale, setId, volume
-
Constructor Details
-
PointListBase
protected PointListBase()Constructs an empty PointListBase. -
PointListBase
Constructs a PointListBase from a stream of Point3d objects.- Parameters:
stream- the stream of Point3d objects
-
-
Method Details
-
doDuplicate
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
Description copied from class:MarkCalculates the bounding box for a specific region of the mark. -
box
protected org.anchoranalysis.spatial.box.BoundingBox box()Creates a bounding box from the min and max points.- Returns:
- the bounding box
-
equalsDeep
Description copied from class:MarkChecks if this mark is deeply equal to another mark.- Overrides:
equalsDeepin classMark- Parameters:
m- the mark to compare with- Returns:
- true if the marks are deeply equal, false otherwise
-
getPoints
The list of 3D points that make up this mark. -
getMin
public org.anchoranalysis.spatial.point.Point3d getMin()The minimum x, y, z coordinates of all the points in the list. -
getMax
public org.anchoranalysis.spatial.point.Point3d getMax()The maximum x, y, z coordinates of all the points in the list.
-