Class ConicBase
Object
org.anchoranalysis.mpp.mark.Mark
org.anchoranalysis.mpp.mark.MarkWithPosition
org.anchoranalysis.mpp.mark.conic.ConicBase
- All Implemented Interfaces:
Serializable
public abstract class ConicBase extends MarkWithPosition
Abstract base class for conic marks (e.g., ellipsoids, spheres).
This class extends MarkWithPosition to provide common functionality for conic-shaped
marks in 3D space.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Modifier Constructor Description protectedConicBase()Default constructor.protectedConicBase(MarkWithPosition source)Constructor that copies from another MarkWithPosition. -
Method Summary
Modifier and Type Method Description abstract double[]createRadiiArray()Creates an array of radii in their original units.abstract double[]createRadiiArrayResolved(Optional<Resolution> resolution)Creates an array of radii resolved to the given resolution.double[]radiiOrdered()Returns an ordered array of radii in their original units.double[]radiiOrderedResolved(Optional<Resolution> resolution)Returns an ordered array of radii resolved to the given resolution.abstract voidsetMarksExplicit(org.anchoranalysis.spatial.point.Point3d position)Sets the mark's position explicitly.abstract voidsetMarksExplicit(org.anchoranalysis.spatial.point.Point3d position, org.anchoranalysis.spatial.orientation.Orientation orientation)Sets the mark's position and orientation explicitly.abstract voidsetMarksExplicit(org.anchoranalysis.spatial.point.Point3d pos, org.anchoranalysis.spatial.orientation.Orientation orientation, org.anchoranalysis.spatial.point.Point3d radii)Sets the mark's properties explicitly.Methods inherited from class org.anchoranalysis.mpp.mark.MarkWithPosition
centerPoint, equalsDeep, getPosition, positionString, scale, setPositionMethods inherited from class org.anchoranalysis.mpp.mark.Mark
box, boxAllRegions, deriveObject, duplicate, equalsID, getIdentifier, getName, identifier, isPointInside, numberDimensions, numberRegions, quickOverlap, setId, volume
-
Constructor Details
-
Method Details
-
createRadiiArrayResolved
Creates an array of radii resolved to the given resolution.- Parameters:
resolution- an optional resolution to consider- Returns:
- an array of resolved radii
-
createRadiiArray
public abstract double[] createRadiiArray()Creates an array of radii in their original units.- Returns:
- an array of radii
-
setMarksExplicit
public abstract void setMarksExplicit(org.anchoranalysis.spatial.point.Point3d pos, org.anchoranalysis.spatial.orientation.Orientation orientation, org.anchoranalysis.spatial.point.Point3d radii)Sets the mark's properties explicitly.- Parameters:
pos- the position of the markorientation- the orientation of the markradii- the radii of the mark
-
setMarksExplicit
public abstract void setMarksExplicit(org.anchoranalysis.spatial.point.Point3d position, org.anchoranalysis.spatial.orientation.Orientation orientation)Sets the mark's position and orientation explicitly.- Parameters:
position- the position of the markorientation- the orientation of the mark
-
setMarksExplicit
public abstract void setMarksExplicit(org.anchoranalysis.spatial.point.Point3d position)Sets the mark's position explicitly.- Parameters:
position- the position of the mark
-
radiiOrderedResolved
Returns an ordered array of radii resolved to the given resolution.- Parameters:
resolution- an optional resolution to consider- Returns:
- an ordered array of resolved radii
-
radiiOrdered
public double[] radiiOrdered()Returns an ordered array of radii in their original units.- Returns:
- an ordered array of radii
-