public class AllenUtils
extends java.lang.Object
AllenCompartment
sModifier and Type | Field and Description |
---|---|
static int |
VERSION
The version of the Common Coordinate Framework currently used by SNT
|
Modifier and Type | Method and Description |
---|---|
static void |
assignToLeftHemisphere(Tree tree) |
static void |
assignToRightHemisphere(Tree tree) |
static SNTPoint |
brainCenter()
Returns the spatial centroid of the Allen CCF.
|
static AllenCompartment |
getCompartment(int id)
Constructs a compartment from its CCF id
|
static AllenCompartment |
getCompartment(java.lang.String nameOrAcronym)
Constructs a compartment from its CCF name or acronym
|
static int |
getHighestOntologyDepth()
Gets the maximum number of ontology levels in the Allen CCF.
|
static java.util.Collection<AllenCompartment> |
getOntologies()
Gets the Allen CCF as a flat (non-hierarchical) collection of ontologies.
|
static OBJMesh |
getRootMesh(org.scijava.util.ColorRGB color)
Retrieves the surface contours for the Allen Mouse Brain Atlas (CCF), bundled
with SNT.
|
static javax.swing.tree.DefaultTreeModel |
getTreeModel(boolean meshesOnly)
Retrieves the Allen CCF hierarchical tree data.
|
static boolean |
isLeftHemisphere(SNTPoint point)
Checks the hemisphere a reconstruction node belongs to.
|
static boolean |
isLeftHemisphere(Tree tree)
Checks the hemisphere a neuron belongs to.
|
static void |
main(java.lang.String[] args) |
public static final int VERSION
public static AllenCompartment getCompartment(int id)
id
- the integer identifierpublic static AllenCompartment getCompartment(java.lang.String nameOrAcronym)
nameOrAcronym
- the name or acronym (case insensitive) identifying the
compartmentpublic static void assignToLeftHemisphere(Tree tree)
public static void assignToRightHemisphere(Tree tree)
public static boolean isLeftHemisphere(Tree tree)
tree
- the Tree to be testedpublic static boolean isLeftHemisphere(SNTPoint point)
point
- the pointpublic static SNTPoint brainCenter()
public static int getHighestOntologyDepth()
public static javax.swing.tree.DefaultTreeModel getTreeModel(boolean meshesOnly)
meshesOnly
- Whether only compartments with known meshes should be includedpublic static java.util.Collection<AllenCompartment> getOntologies()
public static OBJMesh getRootMesh(org.scijava.util.ColorRGB color)
color
- the color to be assigned to the meshpublic static void main(java.lang.String[] args)