public class PointInImage extends java.lang.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
|
Constructor and Description |
---|
PointInImage(double x,
double y,
double z) |
Modifier and Type | Method and Description |
---|---|
double |
distanceSquaredTo(double ox,
double oy,
double oz) |
double |
distanceSquaredTo(PointInImage o) |
double |
distanceTo(PointInImage o) |
boolean |
equals(java.lang.Object o) |
BrainAnnotation |
getAnnotation() |
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 |
setPath(Path onPath)
Associates a Path with this node
|
java.lang.String |
toString() |
sholl.UPoint |
toUPoint() |
PointInImage |
transform(PathTransformer transformer) |
public double x
public double y
public double z
public double v
public Path onPath
public double distanceSquaredTo(double ox, double oy, double oz)
public double distanceSquaredTo(PointInImage o)
public double distanceTo(PointInImage o)
public java.lang.String toString()
toString
in class java.lang.Object
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 java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if this point is not associated with a
Pathpublic PointInCanvas getUnscaledPoint(int view)
view
- MultiDThreePanes.XY_PLANE
,
MultiDThreePanes.ZY_PLANE
, etc.java.lang.IllegalArgumentException
- if this point is not associated with a Path,
or view was not recognizedpublic sholl.UPoint toUPoint()
public Path getPath()
setPath(Path)
has not been called.public void setPath(Path onPath)
onPath
- the Path to be associated with this nodepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public double getX()
public double getY()
public double getZ()
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