public class VFBUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static SNTPoint |
brainBarycentre(java.lang.String templateBrain)
Returns the spatial centroid of an adult Drosophila template brain.
|
static OBJMesh |
getMesh(java.lang.String vfbId)
Retrieves the mesh associated with the specified VFB id.
|
static OBJMesh |
getMesh(java.lang.String vfbId,
org.scijava.util.ColorRGB color)
Retrieves the mesh associated with the specified VFB id.
|
static OBJMesh |
getRefBrain(java.lang.String templateBrain)
Retrieves the surface mesh of an adult Drosophila template brain.
|
static boolean |
isDatabaseAvailable()
Checks whether a connection to the Virtual Fly Brain database can be
established.
|
static void |
main(java.lang.String[] args) |
public static boolean isDatabaseAvailable()
public static SNTPoint brainBarycentre(java.lang.String templateBrain)
templateBrain - the template brain to be loaded (case-insensitive).
Either "JFRC2" (AKA JFRC2010, VFB), "JFRC3" (AKA
JFRC2013), or "FCWB" (FlyCircuit Whole Brain Template)public static OBJMesh getRefBrain(java.lang.String templateBrain) throws java.lang.IllegalArgumentException
templateBrain - the template brain to be loaded (case-insensitive).
Either "JFRC2" (AKA JFRC2010, VFB), "JFRC3" (AKA
JFRC2013), or "FCWB" (FlyCircuit Whole Brain Template)java.lang.IllegalArgumentException - if templateBrain is not recognizedpublic static OBJMesh getMesh(java.lang.String vfbId)
vfbId - the VFB id, e.g., VFB_00017894, 00017894public static OBJMesh getMesh(java.lang.String vfbId, org.scijava.util.ColorRGB color)
vfbId - the VFB id, e.g., VFB_00017894, 00017894color - the color to be assigned to the meshpublic static void main(java.lang.String[] args)