Package sc.fiji.snt
Class Path.PathNode
java.lang.Object
sc.fiji.snt.util.PointInImage
sc.fiji.snt.Path.PathNode
- Enclosing class:
Path
Enhanced PointInImage that stores all node-specific properties.
This eliminates the need for parallel arrays and provides better
memory efficiency and data encapsulation.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a deep copy of this PathNode.getColor()doubledouble[]booleanhasColor()booleanbooleanvoidvoidsetRadius(double radius) voidsetTangent(double[] tangent) voidsetTangent(double tx, double ty, double tz) Methods inherited from class sc.fiji.snt.util.PointInImage
chebyshevDxTo, chebyshevXYdxTo, chebyshevZdxTo, distanceSquaredTo, distanceSquaredTo, distanceTo, equals, euclideanDxTo, getAnnotation, getCoordinateOnAxis, getHemisphere, getPath, getUnscaledPoint, getUnscaledPoint, getX, getY, getZ, hashCode, isReal, isSameLocation, scale, setAnnotation, setHemisphere, setPath, toString, transform
-
Constructor Details
-
PathNode
public PathNode(double x, double y, double z) -
PathNode
-
-
Method Details
-
getColor
-
hasColor
public boolean hasColor() -
setColor
-
getRadius
public double getRadius() -
hasRadius
public boolean hasRadius() -
setRadius
public void setRadius(double radius) -
getTangent
public double[] getTangent() -
hasTangent
public boolean hasTangent() -
setTangent
public void setTangent(double[] tangent) -
setTangent
public void setTangent(double tx, double ty, double tz) -
clone
Creates a deep copy of this PathNode.This method creates a complete copy of the node including all properties such as color, radius, and tangent information. The cloned node will have the same spatial coordinates and metadata as the original.
- Overrides:
clonein classPointInImage- Returns:
- a new PathNode that is a deep copy of this node
-