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

NameTypeAccessDescription
totalintReadDapatkan total.
all_polysList[PolyNode]ReadMendapatkan semua polys.
is_holeboolReadDapatkan lubang.
contourList[IntPoint]ReadDapatkan kontur.
child_countintReadMenghitung anak.
parentOptional["PolyNode"]ReadMendapatkan orang tua.
polygonList[IntPoint]ReadDapatkan poligon.
indexintReadDapatkan indeks.
childsList["PolyNode"]ReadMendapatkan anak-anak.
is_openboolReadDapatkan itu terbuka.

Methods

SignatureDescription
__init__()
clear()
get_first()Optional[PolyNode]Kembali yang pertama.
add_child(child: "PolyNode")

See Also

 Bahasa Indonesia