Name | Type | Description |
---|---|---|
viewer |
DitapViewer | 사용할 Ditap Viewer 인스턴스. The DitapViewer instance to use. |
positions |
Array.<Cartesian3> | optional 면 생성을 위한 Cartesian 좌표 배열. Cartesians for line creation. |
Example:
// 샌드캐슬 예제 'DiTAP - Polygon Entity' 참조
const viewer = new DitapViewer("ditapContainer");
// 1. 위치 지정 없이 객체 생성. (InteractionPolygonEntity를 통해 점 엔티티 표시.)
const PolygonEntity = new Ditap.PolygonEntity(viewer);
const InteractionPolygonEntity = new Ditap.InteractionPolygonEntity();
InteractionPolygonEntity.PolygonEntity = PolygonEntity;
// 2. 위치 지정하여 객체 생성. (InteractionPolygonEntity 통한 수정 불가.)
const position1 = new Ditap.Cartesian3.fromDegrees(
126.9777639655642,
37.56676148138595
);
const position2 = new Ditap.Cartesian3.fromDegrees(
126.97776396708979,
37.56658104096736
);
const position3 = new Ditap.Cartesian3.fromDegrees(
126.97794279498576,
37.566579036698215
);
const position4 = new Ditap.Cartesian3.fromDegrees(
126.9779494810781,
37.56676163390728
);
const PolygonEntity = new Ditap.PolygonEntity(viewer, [position1, position2, position3, position4]);
Members
readonly pointEntities : Array.<Entity>
면 생성으로 얻은 포인트 엔티티 배열.
Array of point entities obtained by polygon creation.
readonly polygonPrimitive : Primitive
면 생성으로 얻은 polygon primitive.
polygon primitive obtained by polygon creation.
readonly polylineEntity : Entity
면 생성으로 얻은 polyline Entity.
Polyline Entity obtained by polygon creation.
readonly positions : Array.<Cartesian3>
면 생성 할 Cartesian 배열.
Cartesian array for create PolygonEntity.
viewer : DitapViewer
사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.
Methods
computeBoundingSphere(time) → BoundingSphere|undefined
지정된 시간에 엔티티에 대한 BoundingSphere 계산.
Calculate BoundingSphere for an entity at a given time.
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.
Model BoundingSphere.
computeModelMatrix(time) → Matrix4|undefined
지정된 시간에 엔티티 변환에 대한 모델 행렬 계산.
Compute model matrix for entity transformation at specified time.
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.
Model matrix.
computePositions(time) → positions|undefined
지정된 시간에 엔티티에 대한 positions 계산.
Calculate positions for an entity at a given time.
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.
Model positions.
인스턴스 파괴. 영구적으로 제거하는 경우 호출.
Destroys the instance. Should be called if permanently removing the instance from layout.
인스턴스 설정 값 초기화.
Initializing instance settings.