PolyTree
PolyTree
Overview
PolyTree 是Python的Aspose.Page FOSS中的一个类. 继承人: PolyNode.
这个类提供了4种方法,用于在Python程序中使用PolyTree 对象. 有的方法包括: __init__, add_child, clear, get_first. 在安装Python包的Aspose.Page FOSS后,所有公众成员都可以访问任何 Python 应用程序. 特性: all_polys, child_count, childs, contour, index, is_hole,另外还有4个.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
total | int | Read | 得到了总数. |
all_polys | List[PolyNode] | Read | 得到所有的多重. |
is_hole | bool | Read | 得到了这个洞. |
contour | List[IntPoint] | Read | 得到了轮. |
child_count | int | Read | 得到孩子的数量. |
parent | Optional["PolyNode"] | Read | 得到了父母. |
polygon | List[IntPoint] | Read | 得到了多边形. |
index | int | Read | 得到了索引. |
childs | List["PolyNode"] | Read | 得到孩子们. |
is_open | bool | Read | 得到的是开放. |
Methods
| Signature | Description |
|---|---|
__init__() | |
clear() | |
get_first() → Optional[PolyNode] | 返回第一. |
add_child(child: "PolyNode") |