Class MarkConicFactory
Object
org.anchoranalysis.mpp.mark.conic.MarkConicFactory
public class MarkConicFactory extends Object
Factory class for creating conic marks (ellipses and ellipsoids) from points.
-
Method Summary
Modifier and Type Method Description static MarkcreateMarkFromPoint(org.anchoranalysis.spatial.point.Point3d point, int size, boolean do3D)Creates a mark from a double-precision 3D point.static MarkcreateMarkFromPoint(org.anchoranalysis.spatial.point.Point3i point, int size, boolean do3D)Creates a mark from an integer 3D point.
-
Method Details
-
createMarkFromPoint
public static Mark createMarkFromPoint(org.anchoranalysis.spatial.point.Point3i point, int size, boolean do3D)Creates a mark from an integer 3D point.- Parameters:
point- the center point of the marksize- the size of the mark (diameter)do3D- if true, creates a 3D ellipsoid; if false, creates a 2D ellipse- Returns:
- a new Mark instance (either Ellipsoid or Ellipse)
-
createMarkFromPoint
public static Mark createMarkFromPoint(org.anchoranalysis.spatial.point.Point3d point, int size, boolean do3D)Creates a mark from a double-precision 3D point.- Parameters:
point- the center point of the marksize- the size of the mark (diameter)do3D- if true, creates a 3D ellipsoid; if false, creates a 2D ellipse- Returns:
- a new Mark instance (either Ellipsoid or Ellipse)
- Throws:
IllegalArgumentException- if size is not positive or if do3D is false and point.z() is not 0
-