GH_GraphicBranch
ReferencesFields
m_parent
#protected GH_GraphicBranch m_parent
m_twigs
#Properties
LongestPathLength
#Find the longest path in this subtree. This property is forwards recursive, meaning children will be measures, but siblings are ignored.
Selected
#Gets or sets a value that represents the selected state of this branch. Setting this value does not affect child branches.
Twigs
#Gets or set the twigs (sub branches) of this branch. If you're setting twigs, consider using the specialized functions instead.
Methods
BG_Colour
#protected Color BG_Colour()
Distribute_Phylogenetic
#Distribute this branch and all subbranches based on an inward solving algorithm. This distribution results in a standard phylogenetic tree layout. Before this function is called it is important that all Leaf branches already have a correct angle.
Parameters:
| max_path_length_inverse (double) | The inverse of the tree longest path length: 1.0 / MaxPathLength |
FG_Colour
#protected Color FG_Colour()
GrowTree
#Recursively grow a tree that contains all the given paths. This branch will become a new Root.
RenderBranchTag
#protected void RenderBranchTag(Graphics G, PointF anchor, Font font, Color color_fg, Color color_bg)
RenderDot
#RenderTextDot
#SelectAll
#Select or deselect this branch and all child branches.
Parameters:
| bSelect (bool) | True to select, False to deselect |
SelectAll
#Select or deselect all branches that start with a given path.
Parameters:
| b_path (GH_Path) | Path start to select |
SolveBezier
#protected void SolveBezier(GH_GraphicBranch twig, GH_GraphicTreeDisplayArgs e, ref PointF P0, ref PointF P1, ref PointF P2, ref PointF P3)
Parameters:
| twig (GH_GraphicBranch) | |
| e (GH_GraphicTreeDisplayArgs) | |
| P0 (ref PointF) | |
| P1 (ref PointF) | |
| P2 (ref PointF) | |
| P3 (ref PointF) |
SolveLeafAngles
#public void SolveLeafAngles(float angle, float spread, float angle_per_item, GH_GraphicTreeDisplayArgs args)
Collects all leafs in this tree and distributes them equally inside an angle domain.
Parameters:
| angle (float) | Main growth direction of tree (in radians). |
| spread (float) | Allowed spread of tree (in radians). |
| angle_per_item (float) | Maximum angle per item in radians. This results in a more friedly layout of sparse trees. |
| args (GH_GraphicTreeDisplayArgs) | Display arguments to work with. |