Class ConicBase
Object
Mark
MarkWithPosition
ConicBase
- All Implemented Interfaces:
Serializable
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:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Default constructor.protected
ConicBase
(MarkWithPosition source) Constructor that copies from another MarkWithPosition. -
Method Summary
Modifier and TypeMethodDescriptionabstract double[]
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[]
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 void
setMarksExplicit
(Point3d position) Sets the mark's position explicitly.abstract void
setMarksExplicit
(Point3d position, Orientation orientation) Sets the mark's position and orientation explicitly.abstract void
setMarksExplicit
(Point3d pos, Orientation orientation, Point3d radii) Sets the mark's properties explicitly.Methods inherited from class org.anchoranalysis.mpp.mark.MarkWithPosition
centerPoint, equalsDeep, getPosition, positionString, scale, setPosition
Methods inherited from class org.anchoranalysis.mpp.mark.Mark
box, boxAllRegions, deriveObject, duplicate, equalsID, getIdentifier, getName, identifier, isPointInside, numberDimensions, numberRegions, quickOverlap, setId, volume
-
Constructor Details
-
ConicBase
protected ConicBase()Default constructor. -
ConicBase
Constructor that copies from another MarkWithPosition.- Parameters:
source
- the source MarkWithPosition to copy from
-
-
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
Sets the mark's properties explicitly.- Parameters:
pos
- the position of the markorientation
- the orientation of the markradii
- the radii of the mark
-
setMarksExplicit
Sets the mark's position and orientation explicitly.- Parameters:
position
- the position of the markorientation
- the orientation of the mark
-
setMarksExplicit
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
-