Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
lengthStraightOption |
object |
다음과 같은 속성을 가진 객체. Object with the following properties:
|
Example:
// 샌드캐슬 예제 'DiTAP - Straight Length Measurement' 참조
const viewer = new Ditap.DitapViewer("ditapContainer");
const measurementLengthStraight = new Ditap.MeasurementLengthStraight(viewer);
// InteractionLengthStraight on/off 실행 시 MeasurementLengthStraight 초기화 필수
// measurementLengthStraight 초기화 방법
// 1. InteractionLengthStraight 생성 후, MeasurementLengthStraight, callback 함수 대입
const interactionLengthStraight = new Ditap.InteractionLengthStraight();
interactionLengthStraight.measurementLengthStraight = measurementLengthStraight;
interactionLengthStraight.startCallback = () => {};
interactionLengthStraight.addCallback = () => {};
interactionLengthStraight.endCallback = () => {};
// 2. InteractionLengthStraight 생성 시, lengthStraightOption 지정
const lengthStraightOption = {
measurementLengthStraight: measurementLengthStraight,
startCallback: () => {}
addCallback: () => {}
endCallback: () => {}
};
const interactionLengthStraight = new Ditap.InteractionLengthStraight(lengthStraightOption);
Members
점을 생성할 때 실행되는 콜백 함수.
Callback function executed when creating a point.
Callback function executed when creating a point.
마지막 점을 생성할 때 실행되는 콜백 함수.
Callback function executed when creating last point.
Callback function executed when creating last point.
핸들러 비/활성화.
Handler enabled or disabled.
measurementLengthStraight : MeasurementLengthStraight
직선 거리 계산 및 영역 표시 클래스.
Straight distance calculation and area display class.
Straight distance calculation and area display class.
첫 번째 점을 생성할 때 실행되는 콜백 함수.
Callback function executed when creating first point.
Callback function executed when creating first point.
Methods
측정 중 중단.
Interrupt during measurement.
모바일 전용 이벤트 추가.
Add mobile-specific event.
Add mobile-specific event.
객체의 리소스 파괴.
Destroy resources held by this object.
Destroy resources held by this object.
직선 거리 측정 핸들러 종료. (MeasurementLengthStraight 초기화 필수.)
End straight length measurement handler. (MeasurementLengthStraight initialization is required.)
직선 거리 측정 핸들러 실행. (MeasurementLengthStraight 초기화 필수.)
Execute straight length measurement handler. (MeasurementLengthStraight initialization is required.)
모바일 전용 이벤트 제거.
Remove mobile-specific event.
Remove mobile-specific event.