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

NameTypeAccessDescription
totalintReadGets the total.
all_polysList[PolyNode]ReadGets the all polys.
is_holeboolReadGets the is hole.
contourList[IntPoint]ReadGets the contour.
child_countintReadGets the child count.
parentOptional["PolyNode"]ReadGets the parent.
polygonList[IntPoint]ReadGets the polygon.
indexintReadGets the index.
childsList["PolyNode"]ReadGets the childs.
is_openboolReadGets the is open.

Methods

SignatureDescription
__init__()
clear()
get_first()Optional[PolyNode]Returns the first.
add_child(child: "PolyNode")

See Also