| Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
아래 속성 포함 객체.Object with the following properties:
|
Example:
// 샌드캐슬 예제 'DiTAP - Altitude Measurement' 참조
const viewer = new DitapViewer("ditapContainer");
// 1. 지정된 영역 생성. (InteractionAltitude를 통한 수정 불가.)
const position = new Ditap.Cartesian3(-3044793.4521523346, 4043760.1510156766, 3867436.511895938);
const options = {
viewer: viewer,
position: position,
entityColor: Color.fromBytes(252, 76, 2, 255)
};
const measurementAltitude = new Ditap.MeasurementAltitude(options);
// 2. 마우스로 영역 지정 후 생성. (InteractionAltitude를 통해 고도 측정 및 영역 표시.)
const measurementAltitude = new Ditap.MeasurementAltitude({
viewer: viewer
});
const interactionAltitude = new Ditap.InteractionAltitude();
interactionAltitude.measurementAltitude = measurementAltitude;
Members
측정된 고도 값.
Measured altitude value.
포인트 엔티티 색상.
Color of the point entity.
Color of the point entity.
readonly pointEntity : Entity
고도 측정 후 생성된 Point Entity.
Point entity created after altitude measurement.
readonly position : Cartesian3
고도 측정 할 Cartesian 좌표.
Altitude measurement cartesian.
viewer : DitapViewer
사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.
Methods
인스턴스 파괴. 영구적으로 제거하는 경우 호출.
Destroys the instance. Should be called if permanently removing the instance from layout.
