public abstract class Tree<T> extends ZDisplayable implements VectorData
Modifier and Type | Class and Description |
---|---|
class |
Tree.MeasurementPair |
static class |
Tree.MeasurePathDistance<I> |
static class |
Tree.MeshData
One color per vertex.
|
class |
Tree.NodePath |
class |
Tree.Pair |
Displayable.DataPackage, Displayable.DoEdit, Displayable.DoEdits, Displayable.DoTransforms, Displayable.SliderListener
Modifier and Type | Field and Description |
---|---|
protected Set<Node<T>> |
end_nodes |
protected Map<Layer,Set<Node<T>>> |
node_layer_map |
protected Node<T> |
root |
layer_set
alpha, annotation, at, color, COMPOSITE_ADD, COMPOSITE_COLOR_YCBCR, COMPOSITE_DIFFERENCE, COMPOSITE_MULTIPLY, COMPOSITE_NORMAL, COMPOSITE_SUBTRACT, compositeModes, height, hs_linked, last_color, layer, linked_props, linked_props_origins, locked, props, TAG_ATTR1, TAG_ATTR2, title, visible, width
Modifier | Constructor and Description |
---|---|
protected |
Tree(Project project,
long id,
HashMap<String,String> ht_attr,
HashMap<Displayable,String> ht_links)
Reconstruct from XML.
|
protected |
Tree(Project project,
long id,
String title,
float width,
float height,
float alpha,
boolean visible,
Color color,
boolean locked,
AffineTransform at)
For cloning purposes, does not call addToDatabase(), neither creates any root node.
|
protected |
Tree(Project project,
String title) |
Modifier and Type | Method and Description |
---|---|
boolean |
addNode(Node<T> parent,
Node<T> child,
byte confidence)
Will call calculateBoundingBox and repaint.
|
protected void |
addToLinkLater(Node<T> nd) |
protected Node<T> |
adjustEdgeConfidence(int inc,
float x,
float y,
Layer layer,
DisplayCanvas dc)
Expects world coordinates.
|
protected boolean |
adjustNodeColors(Node<T> nd) |
boolean |
apply(Layer la,
Area roi,
CoordinateTransform ict)
Applies the 2D transform @ict (which is expected to operate on the
world coordinates version of the data contained here) only to the
data that falls within the @param roi (in world coords), and then
recomputes the bounding box and affine transform (to a translation
or identity).
|
boolean |
apply(VectorDataTransform vdt) |
Point3f |
asPoint(Node<T> nd,
boolean calibrated)
Return the
Node as a point in space. |
HashMap<Node<T>,Vertex<Node<T>>> |
asVertices()
Return a representation of this Tree with Vertex instead of Node.
|
protected void |
cacheSubtree(Iterable<Node<T>> nodes) |
boolean |
calculateBoundingBox(Layer la) |
boolean |
canJoin(List<? extends Tree<T>> ts)
Check if it is possible to join all given Trees into this,
by using the first one as the receiver (which should be this),
and all the others as the ones to be merged into the receiver.
|
protected void |
clearCache() |
protected void |
clearState() |
void |
colorizeByBranchBetweennessCentrality(int etching_multiplier) |
void |
colorizeByNodeBetweennessCentrality() |
HashMap<Node<T>,Integer> |
computeAllDegrees() |
HashMap<Node<T>,Float> |
computeCentrality()
Computes betweenness centrality of each node in the tree,
using Ulrik Brandes betweenness centrality algorithm.
|
boolean |
contains(Layer layer,
double x,
double y)
Returns true if the given point falls within a certain distance of any of the treeline segments,
where a segment is defined as the line between a clicked point and the next.
|
static <A extends Tree<?>,B extends Node<?>> |
copyAs(Tree<?> src,
Class<A> tree_class,
Class<B> node_class)
Can copy a Treeline to an AreaTree and viceversa.
|
protected Coordinate<Node<T>> |
createCoordinate(Node<T> nd) |
protected abstract Tree.MeasurementPair |
createMeasurementPair(Tree.NodePath np) |
Future<JFrame> |
createMultiTableView()
Create a GUI to list, in three tabs: starting point, branch points, end points, and all points.
|
protected Node<T> |
createNewNode(float lx,
float ly,
Layer layer,
Node<?> modelNode)
Create a new node, copying some properties from the modelNode such as radius or color.
|
void |
createReviewStack(Node<T> first,
Node<T> last,
Tag tag,
String filepath,
int width,
int height,
double magnification,
int image_type)
The behavior is undefined if @param last is not a descendant of @param first.
|
boolean |
crop(List<Layer> range)
Retain the data within the layer range, and through out all the rest.
|
void |
deselect()
Tell this Displayable that is has been deselected from a Display.
|
void |
destroy()
Release resources.
|
void |
dropAllTags()
Drop all tags from the nodes of this tree.
|
static <A extends Tree<?>> |
duplicateAs(Collection<Displayable> col,
Class<A> target)
Takes a collection of Tree instances and creates duplicate siblings of the target class.
|
static void |
exportDTD(StringBuilder sb_header,
HashSet<String> hs,
String indent)
Exports to type t2_treeline.
|
void |
exportXML(StringBuilder sb_body,
String indent,
XMLOptions options)
The oid is this objects' id, whereas the 'id' tag will be the id of the wrapper Thing object.
|
protected abstract boolean |
exportXMLNodeAttributes(StringBuilder indent,
StringBuilder sb,
Node<T> node) |
protected abstract boolean |
exportXMLNodeData(StringBuilder indent,
StringBuilder sb,
Node<T> node) |
Node<T> |
findClosestNode(Collection<Node<T>> nodes,
float lx,
float ly,
double magnification)
Expects local coords; with precision depending on magnification.
|
Node<T> |
findClosestNodeW(Collection<Node<T>> nodes,
float wx,
float wy,
double magnification)
Expects world coords; with precision depending on magnification.
|
Node<T> |
findClosestNodeW(float wx,
float wy,
Layer layer,
double magnification)
Expects world coords; with precision depending on magnification.
|
List<Connector>[] |
findConnectors()
Returns an array of two Collection of connectors: the first one has the outgoing connectors, and the second one has the incoming connectors.
|
protected Node<T> |
findFirstIntersectingNode(Set<Node<T>> nodes,
Area a)
Expects an Area in local coordinates.
|
Map<Node<T>,Collection<Displayable>> |
findIntersecting(Class<?> c) |
protected Coordinate<Node<T>> |
findNearAndGetNext(float x,
float y,
Layer layer,
DisplayCanvas dc) |
protected Coordinate<Node<T>> |
findNearAndGetPrevious(float x,
float y,
Layer layer,
DisplayCanvas dc) |
Node<T>[] |
findNearestEdge(float x_pl,
float y_pl,
Layer layer,
double magnification)
Considering only the set of consecutive layers currently painted, find a point near an edge
with accuracy depending upon magnification.
|
Node<T> |
findNearestEndNode(float lx,
float ly,
Layer layer)
Find the spatially closest node, in calibrated coords.
|
Node<T> |
findNearestNode(float lx,
float ly,
Layer layer)
Find the spatially closest node, in calibrated coords; expects local coords.
|
Coordinate<Node<T>> |
findNextBranchOrEndPoint(float x,
float y,
Layer layer,
DisplayCanvas dc)
If the node found near x,y,layer is a branch point, returns it; otherwise the next down
the chain; on reaching an end point, returns it.
|
Node<T> |
findNode(float lx,
float ly,
Layer layer,
double magnification)
Find a node in @param layer near the local coords lx,ly, with precision depending on magnification.
|
protected Node<T> |
findNodeNear(float x,
float y,
Layer layer,
DisplayCanvas dc) |
protected Node<T> |
findNodeNear(float x,
float y,
Layer layer,
DisplayCanvas dc,
boolean use_receiver_when_null)
Expects world coordinates.
|
Coordinate<Node<T>> |
findPreviousBranchOrRootPoint(float x,
float y,
Layer layer,
DisplayCanvas dc) |
List<Tree.NodePath> |
findTaggedPairs(Tag upstream,
Tag downstream) |
Set<Tag> |
findTags()
Search all nodes for unique tags and returns them.
|
protected void |
fireNodeRemoved(Node<T> nd) |
Node<T> |
firstIntersectingNode(Layer layer,
Area area)
Expects Area in world coords.
|
protected Point3f |
fix(Point3f p,
boolean calibrated,
float[] f)
Expects a non-null float[] for reuse, and modifies @param p in place.
|
ij.ImagePlus |
flyThrough(Node<T> first,
Node<T> last,
int width,
int height,
double magnification,
int type,
String dir)
Fly-through image stack from first to last node.
|
ij.ImagePlus |
flyThroughMarked(int width,
int height,
double magnification,
int type,
String dir)
Fly-through image stack from source node to mark node.
|
Bureaucrat |
generateAllReviewStacks() |
LinkedList<Region<Node<T>>> |
generateRegions(Node<T> first,
Node<T> last,
int width,
int height,
double magnification) |
Bureaucrat |
generateReviewStackForSlab(float x,
float y,
Layer layer,
double magnification) |
Bureaucrat |
generateReviewStackForSlab(Node<T> node)
Generate a review stack from the previous branch node or root, to the next branch node or end node.
|
Tree.MeshData |
generateSkeleton(double scale_,
int parallels,
int resample) |
Bureaucrat |
generateSubtreeReviewStacks(int x,
int y,
Layer layer,
double magnification) |
Bureaucrat |
generateSubtreeReviewStacks(Node<T> root) |
List<Point3f> |
generateTriangles(double scale_,
int parallels,
int resample)
Deprecated.
|
protected Node<T> |
getActive()
The node currently being dragged or edited in some way.
|
Area |
getAreaAt(Layer layer)
In world coordinates.
|
protected Rectangle |
getBounds(Collection<? extends Node<T>> nodes) |
Rectangle |
getBounds(Rectangle tmp,
Layer layer)
Will fill bounding box values into given rectangle -- only that part of this object showing in the given layer will be included in the box.
|
Collection<Node<T>> |
getBranchAndEndNodes() |
Collection<Node<T>> |
getBranchNodes() |
Set<Node<T>> |
getEndNodes() |
Layer |
getFirstLayer()
Returns the layer of lowest Z coordinate where this ZDisplayable has a point in.
|
Coordinate<Node<T>> |
getLastAdded() |
Coordinate<Node<T>> |
getLastEdited() |
Node<T> |
getLastVisited() |
Collection<Long> |
getLayerIds()
Get the list of Layer ids on which this ZDisplayable has data on.
|
Collection<Layer> |
getLayersWithData()
Override it to provide Layer pointers directly.
|
Node<T> |
getMarked() |
Set<Node<T>> |
getNodesAt(Layer layer)
|
protected Set<Node<T>> |
getNodesToPaint(Layer active_layer) |
protected Set<Node<T>> |
getNodesToPaint(Layer active_layer,
List<Layer> color_cue_layers) |
Point3f |
getOriginPoint(boolean calibrated) |
protected Rectangle |
getPaintingBounds() |
Node<T> |
getRoot() |
String |
getShortTitle()
Sublcasses can override this method to provide a proper String, otherwise calls getTitle()
|
boolean |
insertNode(Node<T> parent,
Node<T> child,
Node<T> in_between,
byte confidence) |
boolean |
intersects(Area area,
double z_first,
double z_last) |
boolean |
intersects(Layer layer,
Area area)
Expects Area in world coords.
|
boolean |
intersects(Layer layer,
Rectangle r)
Expects Rectangle in world coords.
|
protected boolean |
isAnyNear(Collection<Node<T>> nodes,
float lx,
float ly,
float radius) |
boolean |
isDeletable() |
protected boolean |
isRoughlyInside(Layer layer,
Rectangle box)
Fast and dirty, never returns a false negative but may return a false positive.
|
protected boolean |
isTagging() |
boolean |
join(List<? extends Tree<T>> ts) |
void |
keyPressed(KeyEvent ke) |
protected boolean |
layerRemoved(Layer la)
Update internal datastructures to reflect the fact that @param layer has been removed from the containing LayerSet.
|
boolean |
linkPatches()
Link the Patch objects that lay underneath the part of the bounding box of this profile that shows in the current layer, so that they cannot be dragged independently.
|
boolean |
markNear(float x,
float y,
Layer layer,
double magnification) |
ij.measure.ResultsTable |
measure(ij.measure.ResultsTable rt)
Measures number of branch points and end points, and total cable length.
|
double |
measurePathDistance(Node<T> a,
Node<T> b)
Measure the distance, in calibrated units, between nodes a and b of this tree.
|
ij.measure.ResultsTable |
measurePathDistance(Node<T> a,
Node<T> b,
ij.measure.ResultsTable rt)
Reuses @param rt unless it is null, in which case it creates a new one.
|
List<Tree.MeasurementPair> |
measureTaggedPairs(Tag upstream,
Tag downstream) |
void |
mouseDragged(MouseEvent me,
Layer la,
int x_p,
int y_p,
int x_d,
int y_d,
int x_d_old,
int y_d_old) |
void |
mousePressed(MouseEvent me,
Layer layer,
int x_p,
int y_p,
double mag) |
void |
mouseReleased(MouseEvent me,
Layer la,
int x_p,
int y_p,
int x_d,
int y_d,
int x_r,
int y_r) |
void |
mouseWheelMoved(MouseWheelEvent mwe)
Does nothing unless overriden.
|
protected abstract Tree<T> |
newInstance()
Create a new instance, intialized with same ZDisplayable-level parameters (affine, color, title, etc.).
|
protected abstract Node<T> |
newNode(float lx,
float ly,
Layer layer,
Node<?> modelNode) |
abstract Node<T> |
newNode(HashMap<String,String> ht_attr)
To reconstruct from XML.
|
void |
paint(Graphics2D g,
Rectangle srcRect,
double magnification,
boolean active,
int channels,
Layer active_layer,
List<Layer> layers) |
void |
paint(Graphics2D g,
Rectangle srcRect,
double magnification,
boolean active,
int channels,
Layer active_layer,
List<Layer> layers,
boolean with_arrows,
boolean with_tags) |
boolean |
paintsAt(Layer layer)
Check if this instance will paint anything at the level of the given Layer.
|
void |
paintSnapshot(Graphics2D g,
Layer layer,
List<Layer> layers,
Rectangle srcRect,
double mag) |
boolean |
popNode(Node<T> node)
Remove a node only (not its subtree).
|
boolean |
remove2(boolean check)
Remove also from the trees if present; does nothing more than remove(boolean) unless overriden.
|
protected void |
removeFromLinkLater(Node<T> nd) |
void |
removeNode(Node<T> node)
If the tree is a cyclic graph, it may destroy all.
|
Bureaucrat |
removeReviews() |
void |
repaint(boolean repaint_navigator,
Layer la)
Repaints in the given ImageCanvas only the area corresponding to the bounding box of this Pipe.
|
boolean |
reRoot(float x,
float y,
Layer layer,
double magnification)
Reroots at the point closest to the x,y,layer_id world coordinate.
|
boolean |
reRoot(Node<T> nd) |
protected void |
setActive(Node<T> nd)
The node currently being dragged or edited in some way.
|
protected Node<T> |
setEdgeConfidence(byte confidence)
Find an edge near the world coords x,y,layer with precision depending upon magnification,
and adjust its confidence to @param confidence.
|
protected void |
setLastAdded(Node<T> nd) |
protected void |
setLastEdited(Node<T> nd) |
void |
setLastMarked(Node<T> nd) |
protected void |
setLastVisited(Node<T> nd)
The node that paints in green, which is the receiver of events.
|
void |
setRoot(Node<T> new_root)
Used when reconstructing from XML.
|
List<Tree<T>> |
splitAt(Node<T> nd) |
List<Tree<T>> |
splitNear(float x,
float y,
Layer layer,
double magnification)
Split the Tree into new Tree at the point closest to the x,y,layer world coordinate.
|
protected Layer |
toClosestPaintedNode(Layer active_layer,
float wx,
float wy,
double magnification)
Also sets the last visited and the receiver node.
|
boolean |
unmark() |
void |
updateCache()
|
protected void |
updateView() |
protected void |
updateViewData(Node<?> node) |
exportDTD, getBucketable, getLayerSet, remove, setColor, setLayer, setLayerSet, setLayerSet, setVisible, softRemove, transformPoints, updateBucket, updateBucket
adjustProperties, areThereLayerCrossLinks, canSendTo, clone, clone, clone, commonDTDChildren, contains, displacePoints, exportSVG, findById, findNearestPoint, findNearestPoint, getAffineTransform, getAffineTransformCopy, getAlpha, getAnnotation, getArea, getAreaForBucket, getBoundingBox, getBoundingBox, getBoundingBox, getBounds, getColor, getComposite, getComposite, getCompositeMode, getHeight, getIntersection, getLayer, getLinked, getLinked, getLinkedBox, getLinkedGroup, getLinkedProperties, getLinkedProperties, getLinkedProperty, getLinkedProperty, getMinimalBoundingBox, getNameId, getPerimeter, getPerimeter, getProperties, getProperty, getProperty, getTitle, getWidth, getX, getXMLSafeValue, getXMLSafeValue, getY, hasLinkedGroupWithinLayer, hasProperties, intersects, intersects, inverseTransformPoint, isLinked, isLinked, isLinked, isLocked, isLocked2, isOnlyLinkedTo, isOnlyLinkedTo, isOutOfRepaintingClip, isOutOfRepaintingClip, isVisible, link, link, makeAdjustPropertiesDialog, paintAsBox, paintOffscreen, preConcatenate, prePaint, preTransform, processAdjustPropertiesDialog, removeLinkedProperties, removeLinkedPropertiesFromOrigins, repaint, restXML, rotate, rotate, rotatePoints, scale, scale, scalePoints, setAffineTransform, setAlpha, setAlpha, setAnnotation, setCompositeMode, setDimensions, setDimensions, setLayer, setLinkedProperties, setLinkedProperty, setLocation, setLocked, setProperty, setTitle, setVisible, snapTo, toString, transform, transformPoint, transformPoint, transformPoints, transformPoints, transformPoints, transformPoints, transformPoints, transformPoints, transformPoints, transformPoints, transformPoints, transformRectangle, translate, translate, unlink, unlink, unlinkAll, updateInDatabase, xmlError, xmlError
addToDatabase, getId, getInfo, getProject, getUniqueIdentifier, removeFromDatabase, updateInDatabase
protected Tree(Project project, long id, HashMap<String,String> ht_attr, HashMap<Displayable,String> ht_links)
protected Tree(Project project, long id, String title, float width, float height, float alpha, boolean visible, Color color, boolean locked, AffineTransform at)
protected final Set<Node<T>> getNodesToPaint(Layer active_layer, List<Layer> color_cue_layers)
public final void paint(Graphics2D g, Rectangle srcRect, double magnification, boolean active, int channels, Layer active_layer, List<Layer> layers)
paint
in interface Paintable
paint
in class Displayable
public final void paint(Graphics2D g, Rectangle srcRect, double magnification, boolean active, int channels, Layer active_layer, List<Layer> layers, boolean with_arrows, boolean with_tags)
protected Rectangle getPaintingBounds()
public Rectangle getBounds(Rectangle tmp, Layer layer)
Displayable
getBounds
in class Displayable
protected Rectangle getBounds(Collection<? extends Node<T>> nodes)
public boolean calculateBoundingBox(Layer la)
calculateBoundingBox
in class ZDisplayable
public void repaint(boolean repaint_navigator, Layer la)
public boolean intersects(Area area, double z_first, double z_last)
intersects
in class ZDisplayable
public Layer getFirstLayer()
ZDisplayable
getFirstLayer
in class ZDisplayable
public boolean linkPatches()
ZDisplayable
linkPatches
in class ZDisplayable
protected abstract Tree<T> newInstance()
protected Node<T> createNewNode(float lx, float ly, Layer layer, Node<?> modelNode)
public boolean isDeletable()
isDeletable
in class Displayable
public static void exportDTD(StringBuilder sb_header, HashSet<String> hs, String indent)
public void exportXML(StringBuilder sb_body, String indent, XMLOptions options)
Displayable
exportXML
in class ZDisplayable
protected abstract boolean exportXMLNodeAttributes(StringBuilder indent, StringBuilder sb, Node<T> node)
protected abstract boolean exportXMLNodeData(StringBuilder indent, StringBuilder sb, Node<T> node)
@Deprecated public List<Point3f> generateTriangles(double scale_, int parallels, int resample)
generateSkeleton
public Tree.MeshData generateSkeleton(double scale_, int parallels, int resample)
public boolean reRoot(float x, float y, Layer layer, double magnification)
public List<Tree<T>> splitNear(float x, float y, Layer layer, double magnification)
protected void clearCache()
public void updateCache()
public boolean contains(Layer layer, double x, double y)
contains
in class Displayable
protected boolean isAnyNear(Collection<Node<T>> nodes, float lx, float ly, float radius)
protected Coordinate<Node<T>> createCoordinate(Node<T> nd)
public Coordinate<Node<T>> findPreviousBranchOrRootPoint(float x, float y, Layer layer, DisplayCanvas dc)
public Coordinate<Node<T>> findNextBranchOrEndPoint(float x, float y, Layer layer, DisplayCanvas dc)
protected Coordinate<Node<T>> findNearAndGetNext(float x, float y, Layer layer, DisplayCanvas dc)
protected Coordinate<Node<T>> findNearAndGetPrevious(float x, float y, Layer layer, DisplayCanvas dc)
public Coordinate<Node<T>> getLastEdited()
public Coordinate<Node<T>> getLastAdded()
protected Node<T> setEdgeConfidence(byte confidence)
protected Node<T> adjustEdgeConfidence(int inc, float x, float y, Layer layer, DisplayCanvas dc)
public Node<T> findNode(float lx, float ly, Layer layer, double magnification)
public Node<T> findClosestNodeW(float wx, float wy, Layer layer, double magnification)
public Node<T> findClosestNodeW(Collection<Node<T>> nodes, float wx, float wy, double magnification)
protected Layer toClosestPaintedNode(Layer active_layer, float wx, float wy, double magnification)
public Node<T> findClosestNode(Collection<Node<T>> nodes, float lx, float ly, double magnification)
public Node<T> findNearestNode(float lx, float ly, Layer layer)
public Node<T> findNearestEndNode(float lx, float ly, Layer layer)
public boolean insertNode(Node<T> parent, Node<T> child, Node<T> in_between, byte confidence)
public Node<T>[] findNearestEdge(float x_pl, float y_pl, Layer layer, double magnification)
public boolean addNode(Node<T> parent, Node<T> child, byte confidence)
public boolean popNode(Node<T> node)
public boolean canJoin(List<? extends Tree<T>> ts)
protected Node<T> findNodeNear(float x, float y, Layer layer, DisplayCanvas dc)
protected Node<T> findNodeNear(float x, float y, Layer layer, DisplayCanvas dc, boolean use_receiver_when_null)
public boolean markNear(float x, float y, Layer layer, double magnification)
public boolean unmark()
protected void setActive(Node<T> nd)
protected void setLastVisited(Node<T> nd)
public void deselect()
Displayable
deselect
in class Displayable
protected void clearState()
public void mousePressed(MouseEvent me, Layer layer, int x_p, int y_p, double mag)
mousePressed
in class Displayable
public void mouseDragged(MouseEvent me, Layer la, int x_p, int y_p, int x_d, int y_d, int x_d_old, int y_d_old)
mouseDragged
in class Displayable
public void mouseReleased(MouseEvent me, Layer la, int x_p, int y_p, int x_d, int y_d, int x_r, int y_r)
mouseReleased
in class Displayable
protected boolean isTagging()
public void keyPressed(KeyEvent ke)
keyPressed
in class Displayable
public void mouseWheelMoved(MouseWheelEvent mwe)
Displayable
mouseWheelMoved
in class Displayable
public void paintSnapshot(Graphics2D g, Layer layer, List<Layer> layers, Rectangle srcRect, double mag)
paintSnapshot
in class Displayable
public ij.ImagePlus flyThroughMarked(int width, int height, double magnification, int type, String dir)
type
- is ImagePlus.GRAY8 or .COLOR_RGBpublic LinkedList<Region<Node<T>>> generateRegions(Node<T> first, Node<T> last, int width, int height, double magnification)
public ij.ImagePlus flyThrough(Node<T> first, Node<T> last, int width, int height, double magnification, int type, String dir)
type
- is ImagePlus.GRAY8 or .COLOR_RGBpublic ij.measure.ResultsTable measure(ij.measure.ResultsTable rt)
measure
in class Displayable
public boolean intersects(Layer layer, Rectangle r)
intersects
in class Displayable
public boolean intersects(Layer layer, Area area)
intersects
in class Displayable
public Node<T> firstIntersectingNode(Layer layer, Area area)
Node
that intersects the area
at the given layer
, or null if none do.protected Node<T> findFirstIntersectingNode(Set<Node<T>> nodes, Area a)
public boolean paintsAt(Layer layer)
ZDisplayable
paintsAt
in class ZDisplayable
public Future<JFrame> createMultiTableView()
protected void updateView()
protected void updateViewData(Node<?> node)
public boolean remove2(boolean check)
Displayable
remove2
in class ZDisplayable
protected boolean layerRemoved(Layer la)
ZDisplayable
layerRemoved
in class ZDisplayable
public boolean apply(Layer la, Area roi, CoordinateTransform ict) throws Exception
VectorData
apply
in interface VectorData
la
- Only data at this Layer may be transformed.roi
- Only data inside this world-coordinates Area may be transformed.ict
- The transform to apply to the data that is in @param la and within @param roi.Exception
public boolean apply(VectorDataTransform vdt) throws Exception
apply
in interface VectorData
Exception
public Collection<Long> getLayerIds()
ZDisplayable
getLayerIds
in class ZDisplayable
public Collection<Layer> getLayersWithData()
Displayable
getLayersWithData
in class Displayable
public Area getAreaAt(Layer layer)
getAreaAt
in class Displayable
protected boolean isRoughlyInside(Layer layer, Rectangle box)
isRoughlyInside
in class Displayable
public boolean crop(List<Layer> range)
crop
in class ZDisplayable
public Bureaucrat generateAllReviewStacks()
public Bureaucrat generateSubtreeReviewStacks(Node<T> root)
public void createReviewStack(Node<T> first, Node<T> last, Tag tag, String filepath, int width, int height, double magnification, int image_type)
public Bureaucrat removeReviews()
public Map<Node<T>,Collection<Displayable>> findIntersecting(Class<?> c) throws Exception
Exception
public List<Connector>[] findConnectors() throws Exception
Exception
public String getShortTitle()
DBObject
getShortTitle
in class Displayable
public Point3f getOriginPoint(boolean calibrated)
public Point3f asPoint(Node<T> nd, boolean calibrated)
Node
as a point in space.nd
- The Node to extract coordinates from.calibrated
- Whether to calibrate or not the point.protected Point3f fix(Point3f p, boolean calibrated, float[] f)
public static <A extends Tree<?>> Map<Tree<?>,Tree<?>> duplicateAs(Collection<Displayable> col, Class<A> target) throws Exception
Exception
public static <A extends Tree<?>,B extends Node<?>> A copyAs(Tree<?> src, Class<A> tree_class, Class<B> node_class) throws Exception
Exception
public Bureaucrat generateReviewStackForSlab(float x, float y, Layer layer, double magnification)
public Bureaucrat generateSubtreeReviewStacks(int x, int y, Layer layer, double magnification)
public Bureaucrat generateReviewStackForSlab(Node<T> node)
public ij.measure.ResultsTable measurePathDistance(Node<T> a, Node<T> b, ij.measure.ResultsTable rt)
public double measurePathDistance(Node<T> a, Node<T> b) throws Exception
Exception
public void destroy()
Displayable
destroy
in class Displayable
public Collection<Node<T>> getBranchNodes()
public Collection<Node<T>> getBranchAndEndNodes()
public HashMap<Node<T>,Vertex<Node<T>>> asVertices()
public HashMap<Node<T>,Float> computeCentrality()
public void colorizeByNodeBetweennessCentrality()
public void colorizeByBranchBetweennessCentrality(int etching_multiplier)
protected abstract Tree.MeasurementPair createMeasurementPair(Tree.NodePath np)
public List<Tree.NodePath> findTaggedPairs(Tag upstream, Tag downstream)
public List<Tree.MeasurementPair> measureTaggedPairs(Tag upstream, Tag downstream)
public void dropAllTags()
Copyright © 2015–2021 Fiji. All rights reserved.