PolyTree

개요

PolyTree은 Aspose.Page FOSS for Python의 클래스입니다. 상속받음: PolyNode.

이 클래스는 Python 프로그램에서 PolyTree 객체를 다루기 위한 4개의 메서드를 제공합니다. 사용 가능한 메서드: __init__, add_child, clear, get_first. 모든 public 멤버는 Aspose.Page FOSS for Python 패키지를 설치한 후 any Python 애플리케이션에서 접근할 수 있습니다. 속성: all_polys, child_count, childs, contour, index, is_hole, 및 4개 더.

속성

이름유형액세스설명
totalint읽기총합을 가져옵니다.
all_polysList[PolyNode]읽기모든 polys를 가져옵니다.
is_holebool읽기구멍인지 여부를 가져옵니다.
contourList[IntPoint]읽기윤곽을 가져옵니다.
child_countint읽기자식 수를 가져옵니다.
parentOptional["PolyNode"]읽기부모를 가져옵니다.
polygonList[IntPoint]읽기다각형을 가져옵니다.
indexint읽기인덱스를 가져옵니다.
childsList["PolyNode"]읽기자식들을 가져옵니다.
is_openbool읽기열림 여부를 가져옵니다.

메서드

시그니처설명
__init__()
clear()
get_first() → Optional[PolyNode]첫 번째를 반환합니다.
add_child(child: "PolyNode")

참조

 한국어