Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
아래 속성 포함 객체.Object with the following properties:
|
Example:
// 샌드캐슬 예제 'DiTAP - Horizontal Length Measurement' 참조
const viewer = new Ditap.DitapViewer("ditapContainer");
// 1. 지정된 영역 생성. (InteractionLengthHorizontal를 통한 수정 불가.)
const position1 = new Ditap.Cartesian3(
-3044763.7129576365,
4043820.120565581,
3867446.689131772
);
const position2 = new Ditap.Cartesian3(
-3044777.2576141134,
4043794.3736621705,
3867462.8381184633
);
const positions = [position1, position2];
const options = {
viewer: viewer,
positions: positions,
entityColor: Color.fromBytes(0, 126, 87, 255)
};
const measurementLengthHorizontal = new Ditap.MeasurementLengthHorizontal(options);
// 2. 마우스로 영역 지정 후 생성. (InteractionLengthHorizontal를 통해 수평 거리 측정 및 영역 표시.)
const measurementLengthHorizontal = new Ditap.MeasurementLengthHorizontal({
viewer: viewer
});
const interactionLengthHorizontal = new Ditap.InteractionLengthHorizontal();
interactionLengthHorizontal.measurementLengthHorizontal = measurementLengthHorizontal;
Members
측정된 수평 거리 값.
The measured horizontal distance value.
엔티티 색상.
Color of the entity.
Color of the entity.
readonly horizontalPolylineEntity : Entity
수평 거리 측정으로 얻은 수평 Polyline Entity.
Horizontal polyline entities resulting from horizontal length measurements.
readonly pointEntities : Array.<Entity>
수평 거리 측정으로 얻은 Point Entity 배열.
Array of point entities resulting from horizontal length measurements.
readonly positions : Array.<Cartesian3>
수평 거리 측정 할 Cartesian 배열
Cartesian array for horizontal distances.
readonly verticalPolylineEntity : Entity
수평 거리 측정으로 얻은 수직 Polyline Entity.
Vertical Polyline entities resulting from horizontal length measurements.
viewer : DitapViewer
사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.
Methods
인스턴스 파괴. 영구적으로 제거하는 경우 호출.
Destroys the instance. Should be called if permanently removing the instance from layout.