| Modifier and Type | Field and Description |
|---|---|
int |
id
The sample number of this node
|
int |
parent
The parent id of this node
|
double |
radius
The radius of reconstructed structure at this node
|
int |
type
The SWC-type flag of this node (
Path.SWC_SOMA,
Path.SWC_DENDRITE, etc.) |
| Constructor and Description |
|---|
SWCPoint(int id,
int type,
double x,
double y,
double z,
double radius,
int parent) |
| Modifier and Type | Method and Description |
|---|---|
static java.io.StringReader |
collectionAsReader(java.util.Collection<SWCPoint> points)
Converts a collection of SWC points into a Reader.
|
int |
compareTo(SWCPoint o) |
boolean |
equals(java.lang.Object o) |
static void |
flush(java.util.Collection<SWCPoint> points,
java.io.PrintWriter pw)
Prints a list of points as space-separated values.
|
BrainAnnotation |
getAnnotation() |
java.util.List<SWCPoint> |
getNextPoints()
Returns the list holding the subsequent nodes in the reconstructed structure
after this one.
|
SWCPoint |
getPreviousPoint()
Returns the preceding node (if any)
|
double |
getX() |
double |
getY() |
double |
getZ() |
void |
setAnnotation(BrainAnnotation annotation)
Assigns a neuropil annotation (e.g., atlas compartment) to this point.
|
void |
setPreviousPoint(SWCPoint previousPoint)
Sets the preceding node in the reconstruction
|
java.lang.String |
toString() |
double |
xSeparationFromPreviousPoint()
Returns the X-distance from previous point.
|
double |
ySeparationFromPreviousPoint()
Returns the Y-distance from previous point.
|
double |
zSeparationFromPreviousPoint()
Returns the Z-distance from previous point.
|
distanceSquaredTo, distanceSquaredTo, distanceTo, getPath, getUnscaledPoint, getUnscaledPoint, hashCode, isReal, isSameLocation, scale, setPath, toUPoint, transformpublic int id
public final int type
Path.SWC_SOMA,
Path.SWC_DENDRITE, etc.)public int parent
public double radius
public SWCPoint(int id,
int type,
double x,
double y,
double z,
double radius,
int parent)
public double xSeparationFromPreviousPoint()
Double.NaN if no
previousPoint exists.public double ySeparationFromPreviousPoint()
Double.NaN if no
previousPoint exists.public double zSeparationFromPreviousPoint()
Double.NaN if no
previousPoint exists.public java.lang.String toString()
toString in class PointInImagepublic int compareTo(SWCPoint o)
compareTo in interface java.lang.Comparable<SWCPoint>public boolean equals(java.lang.Object o)
equals in class PointInImagepublic static java.io.StringReader collectionAsReader(java.util.Collection<SWCPoint> points)
points - the collection of SWC points to be converted into a space/
tab separated String. Points should be sorted by sample number to
ensure valid connectivity.public static void flush(java.util.Collection<SWCPoint> points, java.io.PrintWriter pw)
points - the collections of SWC points to be printed.pw - the PrintWriter to write to.collectionAsReader(Collection)public double getX()
getX in interface SNTPointgetX in class PointInImagepublic double getY()
getY in interface SNTPointgetY in class PointInImagepublic double getZ()
getZ in interface SNTPointgetZ in class PointInImagepublic void setAnnotation(BrainAnnotation annotation)
SNTPointsetAnnotation in interface SNTPointsetAnnotation in class PointInImageannotation - the annotation to be assigned to this pointpublic BrainAnnotation getAnnotation()
getAnnotation in interface SNTPointgetAnnotation in class PointInImagepublic SWCPoint getPreviousPoint()
setPreviousPoint(SWCPoint) has not been calledpublic void setPreviousPoint(SWCPoint previousPoint)
previousPoint - the previous node preceding this onepublic java.util.List<SWCPoint> getNextPoints()