Entity
개요
Entity은(는) Aspose.3D FOSS for TypeScript에 포함된 클래스입니다. 상속 대상: SceneObject.
Entity.getBoundingBox은(는) 엔티티의 축 정렬 경계 상자를 반환합니다.
이 클래스는 TypeScript 프로그램의 Entity 객체를 위해 8개의 메서드를 선언합니다. 사용 가능한 메서드에는: constructor, findProperty, getBoundingBox, getEntityRendererKey, getProperty, removeProperty, setProperty, toString이(가) 포함됩니다. 공개 멤버는 Aspose.3D FOSS for TypeScript 패키지를 설치한 후 모든 TypeScript 애플리케이션에서 접근할 수 있습니다. 속성: excluded, name, parentNode, parentNodes, properties, scene.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
parentNodes | Node[] | 읽기 | 부모 노드를 가져옵니다. |
parentNode | `Node | undefined` | 읽기/쓰기 |
excluded | boolean | 읽기/쓰기 | 제외된 항목을 가져옵니다. |
scene | `Scene | null` | 읽기/쓰기 |
name | string | 읽기/쓰기 | 이름을 가져옵니다. |
properties | PropertyCollection | 읽기 | 속성을 가져옵니다. |
메서드
| 시그니처 | 설명 |
|---|---|
constructor(name: string) | 이 Entity 인스턴스에서 constructor(name)를 호출합니다. |
getBoundingBox() → BoundingBox | FOSS 에디션에서는 구현되지 않았으며 — 런타임에 예외를 발생시킵니다. 바운딩 박스를 반환합니다. |
getEntityRendererKey() → any | FOSS 에디션에서는 구현되지 않았으며 런타임에 예외를 발생시킵니다. 엔티티 렌더러 키를 반환합니다. |
findProperty(propertyName: string) → `Property | null` |
getProperty(property: string) → any | 이 Entity 인스턴스에서 getProperty(property)를 호출합니다. |
setProperty(property: string, value: any) | 속성 값을 설정합니다. |
| `removeProperty(property: string | Property)→boolean` |
toString() → string | 이 Entity 인스턴스에서 toString을 호출합니다. |