PolyTree

General

PolyTree és una classe en FOSS per Python. Heretaris de: PolyNode.

Aquesta classe proporciona 4 mètodes per treballar amb objectes PolyTree en programes de Python. Els mètodes disponibles inclouen: __init__, add_child, clear, get_first. Tots els membres públics són accessibles a qualsevol aplicació de Python després d’instal·lar el paquet FOSS per Python. Propietats: all_polys, child_count, childs, contour, index, is_hole, i 4 més.

Propietats

NomTipus de productesAccésDescripció
totalintLlegeix.Té el total.
all_polysList[PolyNode]Llegeix.Obté tots els pols.
is_holeboolLlegeix.És el forat.
contourList[IntPoint]Llegeix.Tinc el contorn.
child_countintLlegeix.- El conte dels nens.
parentOptional["PolyNode"]Llegeix.Prèn el pare.
polygonList[IntPoint]Llegeix.Obté el polígon.
indexintLlegeix.Obté l’índex.
childsList["PolyNode"]Llegeix.Prèn els nens.
is_openboolLlegeix.La porta està oberta.

Mètodes

SignaturaDescripció
__init__()
clear()
get_first()Optional[PolyNode]Torna el primer.
add_child(child: "PolyNode")

Vegeu també

 Català