Class PointListBase
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PointList
,Polygon
,PolygonCurve
A base class for marks that consist of a list of 3D points.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructs an empty PointListBase.protected
PointListBase
(Stream<Point3d> stream) Constructs a PointListBase from a stream of Point3d objects. -
Method Summary
Modifier and TypeMethodDescriptionprotected BoundingBox
box()
Creates a bounding box from the min and max points.box
(Dimensions dimensions, int regionID) Calculates the bounding box for a specific region of the mark.protected void
doDuplicate
(PointListBase markNew) Duplicates this PointListBase into a new instance.boolean
equalsDeep
(Mark mark) Checks if this mark is deeply equal to another mark.getMax()
The maximum x, y, z coordinates of all the points in the list.getMin()
The minimum x, y, z coordinates of all the points in the list.The list of 3D points that make up this mark.void
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:Mark
Calculates the bounding box for a specific region of the mark. -
box
Creates a bounding box from the min and max points.- Returns:
- the bounding box
-
equalsDeep
Description copied from class:Mark
Checks if this mark is deeply equal to another mark.- Overrides:
equalsDeep
in classMark
- Parameters:
mark
- 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
The minimum x, y, z coordinates of all the points in the list. -
getMax
The maximum x, y, z coordinates of all the points in the list.
-