Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
아래 속성 포함 객체.Object with the following properties:
|
Example:
// 샌드캐슬 예제 'DiTAP - Vertical Length Measurement' 참조
const viewer = new Ditap.DitapViewer("ditapContainer");
// 1. 지정된 영역 생성. (InteractionLengthVertical를 통한 수정 불가.)
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(44, 158, 222, 255);
};
const measurementLengthVertical = new Ditap.MeasurementLengthVertical(options);
// 2. 마우스로 영역 지정 후 생성. (InteractionLengthVertical를 통해 수직 거리 측정 및 영역 표시.)
const measurementLengthVertical = new Ditap.MeasurementLengthVertical({
viewer: viewer
});
const interactionLengthVertical = new Ditap.InteractionLengthVertical();
interactionLengthVertical.measurementLengthVertical = measurementLengthVertical;
Members
측정된 수직 거리 값.
The measured vertical distance value.
엔티티 색상.
Color of the entity.
Color of the entity.
readonly horizontalPolylineEntity : Entity
수직 거리 측정으로 얻은 수평 Polyline Entity.
Horizontal polyline entities resulting from vertical length measurements.
readonly pointEntities : Array.<Entity>
수직 거리 측정으로 얻은 Point Entity 배열.
Array of point entities resulting from vertical length measurements.
readonly positions : Array.<Cartesian3>
수직 거리 측정 할 Cartesian 배열.
Cartesian array for measuring vertical distances.
readonly verticalPolylineEntity : Entity
수직 거리 측정으로 얻은 수직 Polyline Entity.
Vertical Polyline entities resulting from vertical 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.