PointEntity

점 엔티티 표시 클래스.
Point entity display class.

new Ditap.PointEntity(viewer, position)

Name Type Description
viewer DitapViewer 사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.
position Cartesian3 optional 점 생성을 위한 Cartesian 좌표.
Cartesian coordinates for point creation.
Example:
// 샌드캐슬 예제 'DiTAP - Point Entity' 참조

const viewer = new DitapViewer("ditapContainer");

// 1. 위치 지정 없이 객체 생성. (InteractionPointEntity를 통해 점 엔티티 표시.)
const PointEntity = new Ditap.PointEntity(viewer);

const InteractionPointEntity = new Ditap.InteractionPointEntity();
InteractionPointEntity.PointEntity = PointEntity;

// 2. 위치 지정하여 인스턴스 생성. (InteractionPointEntity 통한 수정 불가.)
const position = new Ditap.Cartesian3(-3044793.4521523346, 4043760.1510156766, 3867436.511895938);
const PointEntity = new Ditap.PointEntity(viewer, position);

Members

readonly pointEntity : Entity|undefined

점 생성으로 얻은 포인트 엔티티.
Point Entity obtained by pointEntity creation.

viewer : DitapViewer

사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.

Methods

computeBoundingSphere(time)BoundingSphere|undefined

지정된 시간에 엔티티에 대한 BoundingSphere 계산.
Calculate BoundingSphere for an entity at a given time.
Name Type Default Description
time JulianDate JulianDate optional time 모델 BoundingSphere를 검색하는 시간.
The time to retrieve model BoundingSphere for.
Returns:
Model BoundingSphere.
Model BoundingSphere.

computeModelMatrix(time)Matrix4|undefined

지정된 시간에 엔티티 변환에 대한 모델 행렬 계산.
Compute model matrix for entity transformation at specified time.
Name Type Default Description
time JulianDate JulianDate optional time 모델 행렬을 검색하는 시간.
The time to retrieve model matrix for.
Returns:
모델 행렬.
Model matrix.

computePositions(time)positions|undefined

지정된 시간에 엔티티에 대한 positions 계산.
Calculate positions for an entity at a given time.
Name Type Default Description
time JulianDate JulianDate optional time 모델 positions를 검색하는 시간.
The time to retrieve model positions for.
Returns:
Model positions.
Model positions.

createEntity()

Ditap Viewer에 pointEntity 생성.
Create a pointEntity in the DitapViewer.

destroy()

인스턴스 파괴. 영구적으로 제거하는 경우 호출.
Destroys the instance. Should be called if permanently removing the instance from layout.