PolyTree
概要
PolyTree は Aspose.Page の Python 用 FOSS におけるクラスです。継承元: PolyNode。
このクラスは、Python プログラムで PolyTree オブジェクトを扱うための 4 つのメソッドを提供します。利用可能なメソッドは、__init__、add_child、clear、get_first です。Aspose.Page FOSS for Python パッケージをインストールすれば、すべてのパブリックメンバーは任意の Python アプリケーションからアクセス可能です。プロパティ: all_polys、child_count、childs、contour、index、is_hole、およびその他 4 つ。
プロパティ
| 名前 | 型 | アクセス | 説明 |
|---|---|---|---|
total | int | 読み取り | 合計を取得します。 |
all_polys | List[PolyNode] | 読み取り | すべての polys を取得します。 |
is_hole | bool | 読み取り | is hole を取得します。 |
contour | List[IntPoint] | 読み取り | 輪郭を取得します。 |
child_count | int | 読み取り | 子の数を取得します。 |
parent | Optional["PolyNode"] | 読み取り | 親を取得します。 |
polygon | List[IntPoint] | 読み取り | ポリゴンを取得します。 |
index | int | 読み取り | インデックスを取得します。 |
childs | List["PolyNode"] | 読み取り | 子要素を取得します。 |
is_open | bool | 読み取り | IsOpen を取得します。 |
メソッド
| シグネチャ | 説明 |
|---|---|
__init__() | |
clear() | |
get_first() → Optional[PolyNode] | 最初のものを返します。 |
add_child(child: "PolyNode") |