public class SWCPoint extends PointInImage implements Comparable<SWCPoint>
| 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 StringReader |
collectionAsReader(Collection<SWCPoint> points)
Converts a collection of SWC points into a Reader.
|
int |
compareTo(SWCPoint o) |
boolean |
equals(Object o) |
static void |
flush(Collection<SWCPoint> points,
PrintWriter pw)
Prints a list of points as space-separated values.
|
BrainAnnotation |
getAnnotation() |
Color |
getColor() |
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)
|
String |
getTags() |
double |
getX() |
double |
getY() |
double |
getZ() |
int |
hashCode() |
void |
setAnnotation(BrainAnnotation annotation)
Assigns a neuropil annotation (e.g., atlas compartment) to this point.
|
void |
setColor(Color color) |
void |
setPreviousPoint(SWCPoint previousPoint)
Sets the preceding node in the reconstruction
|
void |
setTags(String tags) |
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.
|
chebyshevDxTo, chebyshevXYdxTo, chebyshevZdxTo, clone, distanceSquaredTo, distanceSquaredTo, distanceTo, euclideanDxTo, getCoordinateOnAxis, getHemisphere, getPath, getUnscaledPoint, getUnscaledPoint, isReal, isSameLocation, scale, setHemisphere, setPath, transformpublic int id
public 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 String toString()
toString in class PointInImagepublic int compareTo(SWCPoint o)
compareTo in interface Comparable<SWCPoint>public boolean equals(Object o)
equals in class PointInImagepublic int hashCode()
hashCode in class PointInImagepublic static StringReader collectionAsReader(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(Collection<SWCPoint> points, 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 List<SWCPoint> getNextPoints()
public void setTags(String tags)
public void setColor(Color color)
public String getTags()
public Color getColor()
Copyright © 2015–2021 Fiji. All rights reserved.