PolyTree
PolyTree
Overview
PolyTree adalah kelas di Aspose.Page FOSS untuk Python. Warisan dari: PolyNode.
Kelas ini menyediakan 4 metode untuk bekerja dengan PolyTree objek dalam program Python. Metode yang tersedia meliputi: __init__, add_child, clear, get_first. Semua anggota publik dapat diakses oleh aplikasi Python apa pun setelah menginstal paket FOSS for Python. Sifatnya: all_polys, child_count, childs, contour, index, is_hole, dan 4 lagi.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
total | int | Read | Dapatkan total. |
all_polys | List[PolyNode] | Read | Mendapatkan semua polys. |
is_hole | bool | Read | Dapatkan lubang. |
contour | List[IntPoint] | Read | Dapatkan kontur. |
child_count | int | Read | Menghitung anak. |
parent | Optional["PolyNode"] | Read | Mendapatkan orang tua. |
polygon | List[IntPoint] | Read | Dapatkan poligon. |
index | int | Read | Dapatkan indeks. |
childs | List["PolyNode"] | Read | Mendapatkan anak-anak. |
is_open | bool | Read | Dapatkan itu terbuka. |
Methods
| Signature | Description |
|---|---|
__init__() | |
clear() | |
get_first() → Optional[PolyNode] | Kembali yang pertama. |
add_child(child: "PolyNode") |