geometry.object
Class SkeletonBranch

java.lang.Object
  extended by org.jgrapht.graph.DefaultEdge
      extended by org.jgrapht.graph.DefaultWeightedEdge
          extended by geometry.object.SkeletonBranch
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Comparator<SkeletonBranch>

public class SkeletonBranch
extends org.jgrapht.graph.DefaultWeightedEdge
implements java.util.Comparator<SkeletonBranch>

A skeleton branch is defined as the set of skeleton nodes between two junction nodes or between an end node and a junction node in that way, that no other junction or end nodes are crossed.

See Also:
Serialized Form

Field Summary
private  SkeletonNode endnode
           
private  java.util.List<SkeletonNode> nodes
           
private static long serialVersionUID
           
private  SkeletonNode startnode
           
 
Constructor Summary
SkeletonBranch()
           
 
Method Summary
 void addNode(SkeletonNode node)
           
 int compare(SkeletonBranch o1, SkeletonBranch o2)
           
 SkeletonNode getEndnode()
           
 double getLength()
           
 java.util.List<SkeletonNode> getNodes()
           
 SkeletonNode getStartnode()
           
 void setEndnode(SkeletonNode endnode)
           
 void setNodes(java.util.List<SkeletonNode> nodes)
           
 void setStartnode(SkeletonNode startnode)
           
 java.lang.String toString()
           
 
Methods inherited from class org.jgrapht.graph.DefaultWeightedEdge
getWeight
 
Methods inherited from class org.jgrapht.graph.DefaultEdge
getSource, getTarget
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

startnode

private SkeletonNode startnode

endnode

private SkeletonNode endnode

nodes

private java.util.List<SkeletonNode> nodes
Constructor Detail

SkeletonBranch

public SkeletonBranch()
Method Detail

addNode

public void addNode(SkeletonNode node)

getStartnode

public SkeletonNode getStartnode()
Returns:
the startnode

setStartnode

public void setStartnode(SkeletonNode startnode)
Parameters:
startnode - the startnode to set

getEndnode

public SkeletonNode getEndnode()
Returns:
the endnode

setEndnode

public void setEndnode(SkeletonNode endnode)
Parameters:
endnode - the endnode to set

getNodes

public java.util.List<SkeletonNode> getNodes()
Returns:
the nodes

setNodes

public void setNodes(java.util.List<SkeletonNode> nodes)
Parameters:
nodes - the nodes to set

toString

public java.lang.String toString()
Overrides:
toString in class org.jgrapht.graph.DefaultEdge

getLength

public double getLength()

compare

public int compare(SkeletonBranch o1,
                   SkeletonBranch o2)
Specified by:
compare in interface java.util.Comparator<SkeletonBranch>