public class PointInImage extends Object implements SNTPoint
Path
. Coordinates are
always expressed in real-world coordinates.Modifier and Type | Field and Description |
---|---|
Path |
onPath
The Path associated with this node, if any (optional field)
|
double |
v
A property associated with this point (e.g., voxel intensity) (optional
field)
|
double |
x
The cartesian coordinate of this node
|
double |
y
The cartesian coordinate of this node
|
double |
z
The cartesian coordinate of this node
|
Modifier | Constructor and Description |
---|---|
|
PointInImage(double x,
double y,
double z) |
protected |
PointInImage(double x,
double y,
double z,
Path onPath) |
Modifier and Type | Method and Description |
---|---|
double |
chebyshevDxTo(PointInImage point) |
double |
chebyshevXYdxTo(PointInImage point) |
double |
chebyshevZdxTo(PointInImage point) |
PointInImage |
clone() |
double |
distanceSquaredTo(double ox,
double oy,
double oz) |
double |
distanceSquaredTo(PointInImage o) |
double |
distanceTo(PointInImage o) |
boolean |
equals(Object o) |
double |
euclideanDxTo(PointInImage point) |
BrainAnnotation |
getAnnotation() |
double |
getCoordinateOnAxis(int axis)
Gets the coordinate along the specified axis.
|
char |
getHemisphere() |
Path |
getPath()
Returns the Path associated with this node (if any)
|
PointInCanvas |
getUnscaledPoint()
Converts the coordinates of this point into pixel units if this point is
associated with a Path.
|
PointInCanvas |
getUnscaledPoint(int view)
Converts the coordinates of this point into pixel units if this point is
associated with a Path.
|
double |
getX() |
double |
getY() |
double |
getZ() |
int |
hashCode() |
boolean |
isReal() |
boolean |
isSameLocation(PointInImage pim) |
void |
scale(double xScale,
double yScale,
double zScale)
Scales this point coordinates.
|
void |
setAnnotation(BrainAnnotation annotation)
Assigns a neuropil annotation (e.g., atlas compartment) to this point.
|
void |
setHemisphere(char lr) |
void |
setPath(Path onPath)
Associates a Path with this node
|
String |
toString() |
PointInImage |
transform(PathTransformer transformer) |
public double x
public double y
public double z
public double v
public Path onPath
public PointInImage(double x, double y, double z)
protected PointInImage(double x, double y, double z, Path onPath)
public double distanceSquaredTo(double ox, double oy, double oz)
public double distanceSquaredTo(PointInImage o)
public double distanceTo(PointInImage o)
public double euclideanDxTo(PointInImage point)
public double chebyshevXYdxTo(PointInImage point)
public double chebyshevZdxTo(PointInImage point)
public double chebyshevDxTo(PointInImage point)
public PointInImage transform(PathTransformer transformer)
public boolean isReal()
public boolean isSameLocation(PointInImage pim)
public void scale(double xScale, double yScale, double zScale)
xScale
- the scaling factor for x coordinatesyScale
- the scaling factor for y coordinateszScale
- the scaling factor for z coordinatespublic PointInCanvas getUnscaledPoint() throws IllegalArgumentException
IllegalArgumentException
- if this point is not associated with a
Pathpublic PointInCanvas getUnscaledPoint(int view)
view
- MultiDThreePanes.XY_PLANE
,
MultiDThreePanes.ZY_PLANE
, etc.IllegalArgumentException
- if this point is not associated with a Path,
or view was not recognizedpublic Path getPath()
setPath(Path)
has not been called.public void setPath(Path onPath)
onPath
- the Path to be associated with this nodepublic PointInImage clone()
public double getX()
public double getY()
public double getZ()
public double getCoordinateOnAxis(int axis)
getCoordinateOnAxis
in interface SNTPoint
axis
- the axis. Either Tree.X_AXIS
, Tree.Y_AXIS
, or
Tree.Z_AXIS
public void setAnnotation(BrainAnnotation annotation)
SNTPoint
setAnnotation
in interface SNTPoint
annotation
- the annotation to be assigned to this pointpublic BrainAnnotation getAnnotation()
getAnnotation
in interface SNTPoint
public void setHemisphere(char lr)
setHemisphere
in interface SNTPoint
public char getHemisphere()
getHemisphere
in interface SNTPoint
Copyright © 2015–2021 Fiji. All rights reserved.