Package sc.fiji.snt

Class Path.PathNode

All Implemented Interfaces:
Cloneable, SNTPoint
Enclosing class:
Path

public static class Path.PathNode extends PointInImage implements Cloneable
Enhanced PointInImage that stores all node-specific properties. This eliminates the need for parallel arrays and provides better memory efficiency and data encapsulation.
  • Constructor Details

    • PathNode

      public PathNode(double x, double y, double z)
    • PathNode

      public PathNode(SNTPoint point)
  • Method Details

    • getColor

      public Color getColor()
    • hasColor

      public boolean hasColor()
    • setColor

      public void setColor(Color color)
    • 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

      public Path.PathNode 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:
      clone in class PointInImage
      Returns:
      a new PathNode that is a deep copy of this node