Class PolygonCurve
Object
org.anchoranalysis.mpp.mark.Mark
org.anchoranalysis.mpp.mark.points.PointListBase
org.anchoranalysis.mpp.mark.points.PolygonCurve
- All Implemented Interfaces:
Serializable
public class PolygonCurve extends PointListBase
Represents a polygon curve in 3D space as a Mark.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description PolygonCurve() -
Method Summary
Modifier and Type Method Description org.anchoranalysis.spatial.box.BoundingBoxboxAllRegions(Dimensions dimensions)Calculates the bounding box for all regions of the mark.org.anchoranalysis.spatial.point.Point3dcenterPoint()Returns the center point of the mark.Markduplicate()Creates a duplicate of this mark.StringgetName()Returns the name of this mark type.byteisPointInside(org.anchoranalysis.spatial.point.Point3i point)Determines if a point is inside the mark.intnumberDimensions()Returns the number of dimensions of this mark.intnumberRegions()Returns the number of regions in this mark.voidscale(org.anchoranalysis.spatial.scale.ScaleFactor scaleFactor)Scales the mark in X and Y dimensions.StringtoString()doublevolume(int regionID)Calculates the volume of a specific region of the mark.Methods inherited from class org.anchoranalysis.mpp.mark.points.PointListBase
box, box, doDuplicate, equalsDeep, getMax, getMin, getPoints, updateAfterPointsChangeMethods inherited from class org.anchoranalysis.mpp.mark.Mark
deriveObject, equalsID, getIdentifier, identifier, quickOverlap, setId
-
Constructor Details
-
PolygonCurve
public PolygonCurve()
-
-
Method Details
-
isPointInside
public byte isPointInside(org.anchoranalysis.spatial.point.Point3i point)Description copied from class:MarkDetermines if a point is inside the mark.- Specified by:
isPointInsidein classMark- Parameters:
point- the point to check- Returns:
- a byte representing the region membership of the point
-
duplicate
Description copied from class:MarkCreates a duplicate of this mark. -
volume
public double volume(int regionID)Description copied from class:MarkCalculates the volume of a specific region of the mark. -
toString
-
scale
public void scale(org.anchoranalysis.spatial.scale.ScaleFactor scaleFactor) throws CheckedUnsupportedOperationExceptionDescription copied from class:MarkScales the mark in X and Y dimensions.- Specified by:
scalein classMark- Parameters:
scaleFactor- how much to scale by- Throws:
CheckedUnsupportedOperationException- if scaling is not supported for this mark type
-
numberDimensions
public int numberDimensions()Description copied from class:MarkReturns the number of dimensions of this mark.- Specified by:
numberDimensionsin classMark- Returns:
- the number of dimensions
-
centerPoint
public org.anchoranalysis.spatial.point.Point3d centerPoint()Description copied from class:MarkReturns the center point of the mark.- Specified by:
centerPointin classMark- Returns:
- the center point as a Point3d
-
getName
Description copied from class:MarkReturns the name of this mark type. -
numberRegions
public int numberRegions()Description copied from class:MarkReturns the number of regions in this mark.- Specified by:
numberRegionsin classMark- Returns:
- the number of regions
-
boxAllRegions
Description copied from class:MarkCalculates the bounding box for all regions of the mark.- Specified by:
boxAllRegionsin classMark- Parameters:
dimensions- the dimensions of the space- Returns:
- the bounding box
-