PolyTree
Overview
PolyTree is a class in Aspose.Page FOSS for Python.
Inherits from: PolyNode.
This class provides 4 methods for working with PolyTree objects in Python programs.
Available methods include: __init__, add_child, clear, get_first.
All public members are accessible to any Python application after installing the Aspose.Page FOSS for Python package.
Properties: all_polys, child_count, childs, contour, index, is_hole, and 4 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
total | int | Read | Gets the total. |
all_polys | List[PolyNode] | Read | Gets the all polys. |
is_hole | bool | Read | Gets the is hole. |
contour | List[IntPoint] | Read | Gets the contour. |
child_count | int | Read | Gets the child count. |
parent | Optional["PolyNode"] | Read | Gets the parent. |
polygon | List[IntPoint] | Read | Gets the polygon. |
index | int | Read | Gets the index. |
childs | List["PolyNode"] | Read | Gets the childs. |
is_open | bool | Read | Gets the is open. |
Methods
| Signature | Description |
|---|---|
__init__() | |
clear() | |
get_first() → Optional[PolyNode] | Returns the first. |
add_child(child: "PolyNode") |