Package sc.fiji.snt.annotation
Interface BrainAnnotation
- All Known Implementing Classes:
AllenCompartment,DrosophilaCompartment,InsectBrainCompartment
public interface BrainAnnotation
Classes extending this interface implement a neuropil label/annotation aka
"compartment".
- Author:
- Tiago Ferreira
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charCharacter constant representing any hemisphere (null character)static final charCharacter constant representing the left hemispherestatic final charCharacter constant representing the right hemisphere -
Method Summary
Modifier and TypeMethodDescriptionacronym()Returns the compartment's acronym.String[]aliases()Returns the compartment's alias(es).org.scijava.util.ColorRGBcolor()Returns the display color of this compartment (if known).static Comparator<BrainAnnotation> getAncestor(int level) Returns the ancestor of this compartment at the specified level.static chargetHemisphereFlag(String hemisphere) getMesh()Returns the mesh associated with this compartment.intReturns the ontology depth of this compartment.Returns the parent of this compartment.intid()Returns the compartment's unique id.booleanisChildOf(BrainAnnotation annotation) Returns whether this compartment is a sub-compartment ofannotation.booleanReturns whether a mesh is available for this compartment.booleanisParentOf(BrainAnnotation parentCompartment) Returns whether this compartment is a parent ofparentCompartment.name()Returns the compartment's name.static StringsimplifiedString(BrainAnnotation annotation)
-
Field Details
-
LEFT_HEMISPHERE
static final char LEFT_HEMISPHERECharacter constant representing the left hemisphere- See Also:
-
RIGHT_HEMISPHERE
static final char RIGHT_HEMISPHERECharacter constant representing the right hemisphere- See Also:
-
ANY_HEMISPHERE
static final char ANY_HEMISPHERECharacter constant representing any hemisphere (null character)- See Also:
-
-
Method Details
-
id
int id()Returns the compartment's unique id. -
name
String name()Returns the compartment's name. -
acronym
String acronym()Returns the compartment's acronym. -
aliases
String[] aliases()Returns the compartment's alias(es). -
getMesh
OBJMesh getMesh()Returns the mesh associated with this compartment. -
isChildOf
Returns whether this compartment is a sub-compartment ofannotation. -
isParentOf
Returns whether this compartment is a parent ofparentCompartment. -
getOntologyDepth
int getOntologyDepth()Returns the ontology depth of this compartment. -
isMeshAvailable
boolean isMeshAvailable()Returns whether a mesh is available for this compartment. -
getAncestor
Returns the ancestor of this compartment at the specified level.- Parameters:
level- the ancestor level as negative 1-based index. E.g.,-1retrieves the last ancestor (parent),-2retrieves the second to last, etc- Returns:
- the ancestor at the given level
-
getParent
BrainAnnotation getParent()Returns the parent of this compartment. -
color
org.scijava.util.ColorRGB color()Returns the display color of this compartment (if known). -
getHemisphereFlag
-
comparator
-
simplifiedString
-