nuget server logo nuget api documents
↑

API Docs / SMRUCC.genomics.Analysis.Metagenome / TreeDrawer

TreeDrawer

Full name SMRUCC.genomics.Analysis.Metagenome.UPGMATree.TreeDrawer Assembly SMRUCC.genomics.Analysis.Metagenome Members 5

01 Syntax

SMRUCC.genomics.Analysis.Metagenome.UPGMATree.TreeDrawer

02 Methods

NameOverloadsSummary
CountLeaves 1 统计树中的叶子节点数量
ComputeLayout 1 递归计算每个节点的极坐标布局信息
GetClassColor 1 根据 taxonomy.class 获取颜色,相同 class 使用相同颜色
PolarToCartesian 1 极坐标 → 屏幕坐标,圆心在 (cx, cy)
DrawCircularTree 1 在指定 Graphics 上绘制上半圆形进化树

03 Members

method CountLeaves #
CountLeaves(Taxa)

统计树中的叶子节点数量

method ComputeLayout #
ComputeLayout(Taxa, Int32, Int32, Double, Dictionary(Of Taxa, NodeLayout), Double, Double)

递归计算每个节点的极坐标布局信息

method GetClassColor #
GetClassColor(Taxa)

根据 taxonomy.class 获取颜色,相同 class 使用相同颜色

method PolarToCartesian #
PolarToCartesian(NodeLayout, Double, Double)

极坐标 → 屏幕坐标,圆心在 (cx, cy)

method DrawCircularTree #
DrawCircularTree(IGraphics, Taxa, Size, PointF)

在指定 Graphics 上绘制上半圆形进化树

Parameters
NameTypeDescription
gIGraphics

绘图对象

treeTaxa

Taxa 进化树

sizeSize

绘图区域大小(宽度即为上半圆直径)