Class PointInCanvas

java.lang.Object
sc.fiji.snt.util.PointInImage
sc.fiji.snt.util.PointInCanvas
All Implemented Interfaces:
Cloneable, SNTPoint

public class PointInCanvas extends PointInImage implements SNTPoint
Defines a Point in a tracing canvas in pixel coordinates.
Author:
Tiago Ferreira
  • Constructor Details

    • PointInCanvas

      public PointInCanvas(double x, double y, double z)
      Constructs a new PointInCanvas with the specified coordinates.
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the z coordinate
    • PointInCanvas

      protected PointInCanvas(double x, double y, double z, Path onPath)
  • Method Details

    • getScaledPoint

      public PointInImage getScaledPoint() throws IllegalArgumentException
      Converts the pixels coordinates of this point into a physical location if this point is associated with a Path.
      Returns:
      this point in spatially calibrated units
      Throws:
      IllegalArgumentException - if this point is not associated with a Path