Package sc.fiji.snt.util
Class PointInCanvas
java.lang.Object
sc.fiji.snt.util.PointInImage
sc.fiji.snt.util.PointInCanvas
Defines a Point in a tracing canvas in pixel coordinates.
- Author:
- Tiago Ferreira
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionPointInCanvas(double x, double y, double z) Constructs a new PointInCanvas with the specified coordinates.protectedPointInCanvas(double x, double y, double z, Path onPath) -
Method Summary
Modifier and TypeMethodDescriptionConverts the pixels coordinates of this point into a physical location if this point is associated with a Path.Methods inherited from class sc.fiji.snt.util.PointInImage
chebyshevDxTo, chebyshevXYdxTo, chebyshevZdxTo, clone, distanceSquaredTo, distanceSquaredTo, distanceTo, equals, euclideanDxTo, getAnnotation, getCoordinateOnAxis, getHemisphere, getPath, getUnscaledPoint, getUnscaledPoint, getX, getY, getZ, hashCode, isReal, isSameLocation, scale, setAnnotation, setHemisphere, setPath, toString, transformMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface sc.fiji.snt.util.SNTPoint
getAnnotation, getCoordinateOnAxis, getHemisphere, getX, getY, getZ, setAnnotation, setHemisphere
-
Constructor Details
-
PointInCanvas
public PointInCanvas(double x, double y, double z) Constructs a new PointInCanvas with the specified coordinates.- Parameters:
x- the x coordinatey- the y coordinatez- the z coordinate
-
PointInCanvas
-
-
Method Details
-
getScaledPoint
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
-