PolyTree
PolyTree
Overview
PolyTree je třída v Aspose.Page FOSS pro Python. Dědici: PolyNode.
Tato třída poskytuje 4 metody pro práci s PolyTree objekty v programech Python. K dispozici jsou následující metody: __init__, add_child, clear, get_first. Všechny veřejné členy jsou přístupné jakékoli aplikaci Python po instalaci balíčku Aspose.Page FOSS pro Python. Vlastnosti: all_polys, child_count, childs, contour, index, is_hole,A další čtyři.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
total | int | Read | Dostane to celkem. |
all_polys | List[PolyNode] | Read | Dostal všechny polys. |
is_hole | bool | Read | Dostane se do díry. |
contour | List[IntPoint] | Read | Získal obrys. |
child_count | int | Read | Získala počet dětí. |
parent | Optional["PolyNode"] | Read | Dostane rodiče. |
polygon | List[IntPoint] | Read | Dostává polygon. |
index | int | Read | Získala index. |
childs | List["PolyNode"] | Read | Dostane děti. |
is_open | bool | Read | Dostaneme otevřeno. |
Methods
| Signature | Description |
|---|---|
__init__() | |
clear() | |
get_first() → Optional[PolyNode] | Vrátí se první. |
add_child(child: "PolyNode") |