InteractionLengthVertical

수직 거리 측정을 위한 사용자 입력(마우스/키보드) 클래스.
User input class for vertical length measurement using mouse/keyboard input.

new Ditap.InteractionLengthVertical(lengthVerticalOption)

Name Type Description
lengthVerticalOption object 다음과 같은 속성을 가진 객체.
Object with the following properties:
Name Type Description
startCallback function optional 첫 번째 점을 생성할 때 실행되는 콜백 함수.
Callback function executed when creating first point.
addCallback function optional 점을 생성할 때 실행되는 콜백 함수.
Callback function executed when creating a point.
endCallback function optional 마지막 점을 생성할 때 실행되는 콜백 함수. Callback function executed when creating last point.
MeasurementLengthVertical MeasurementLengthVertical optional 수직 거리 및 영역 표시 클래스.
vertical calculation and area display class.
Example:
// 샌드캐슬 예제 'DiTAP - Vertical Length Measurement' 참조

const viewer = new Ditap.DitapViewer("ditapContainer");

const measurementLengthVertical = new Ditap.MeasurementLengthVertical(viewer);

// InteractionLengthVertical on/off 실행 시 MeasurementLengthVertical 초기화 필수
// measurementLengthVertical 초기화 방법
// 1. InteractionLengthVertical 생성 후, MeasurementLengthVertical, callback 함수 대입
const interactionLengthVertical = new Ditap.InteractionLengthVertical();
interactionLengthVertical.measurementLengthVertical = measurementLengthVertical;
interactionLengthVertical.startCallback = () => {};
interactionLengthVertical.addCallback = () => {};
interactionLengthVertical.endCallback = () => {};

// 2. InteractionLengthVertical 생성 시, lengthVerticalOption 지정
const lengthVerticalOption = {
   measurementLengthVertical: measurementLengthVertical,
   startCallback: () => {}
   addCallback: () => {}
   endCallback: () => {}
};
const interactionLengthVertical = new Ditap.InteractionLengthVertical(lengthVerticalOption);

Members

addCallback : function

점을 생성할 때 실행되는 콜백 함수.
Callback function executed when creating a point.

endCallback : function

마지막 점을 생성할 때 실행되는 콜백 함수.
Callback function executed when creating last point.

readonly isOn : boolean

핸들러 비/활성화.
Handler enabled or disabled.

measurementLengthVertical : MeasurementLengthVertical

수직 거리 계산 및 영역 표시 클래스.
Vertical distance calculation and area display class.

startCallback : function

첫 번째 점을 생성할 때 실행되는 콜백 함수.
Callback function executed when creating first point.

Methods

abort()

측정 중 중단.
Interrupt during measurement.

createMobileEvent()

모바일 전용 이벤트 추가.
Add mobile-specific event.

destroy()

객체의 리소스 파괴.
Destroy resources held by this object.

off()

수직 거리 측정 핸들러 종료. (MeasurementLengthVertical 초기화 필수.)
End vertical measurement handler. (MeasurementLengthVertical initialization is required.)

on()

수직거리 측정 핸들러 실행. (MeasurementLengthVertical 초기화 필수.)
Execute vertical measurement handler. (MeasurementLengthVertical initialization is required.)

removeMobileEvent()

모바일 전용 이벤트 제거.
Remove mobile-specific event.