PolyTree
Overview
PolyTree є клас у Aspose.Page FOSS для Python. Наследники від: PolyNode.
Цей клас надає 4 методи для роботи з об’єктами PolyTree в програмах Python. Доступні методи включають: __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") |