Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
linestringOption |
object |
다음과 같은 속성을 가진 객체. Object with the following properties:
|
Example:
// 샌드캐슬 예제 'DiTAP - Linestring Entity' 참조
const viewer = new Ditap.DitapViewer("ditapContainer");
const linestringEntity = new Ditap.LinestringEntity(viewer);
// InteractionLinestringEntity on/off 실행 시 LinestringEntity 초기화 필수
// LinestringEntity 초기화 방법
// 1. InteractionLinestringEntity 생성 후, LinestringEntity와 callback 함수 대입
const interactionLinestringEntity = new Ditap.InteractionLinestringEntity();
interactionLinestringEntity.linestringEntity = linestringEntity;
interactionLinestringEntity.startCallback = () => {};
interactionLinestringEntity.addCallback = () => {};
interactionLinestringEntity.endCallback = () => {};
// 2. InteractionLinestringEntity 생성 시, linestringOption 지정
const linestringOption = {
linestringEntity: linestringEntity,
startCallback: () => {}
addCallback: () => {}
endCallback: () => {}
};
const interactionLinestringEntity = new Ditap.InteractionLinestringEntity(linestringOption);
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.
linestringEntity : LinestringEntity
선 엔티티 표시 클래스.
Linestring entity 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.
선 엔티티 생성 핸들러 종료. (LinestringEntity 초기화 필수.)
End linestring entity creation handler. (LinestringEntity initialization is required.)
선 엔티티 생성 핸들러 실행.(LinestringEntity 초기화 필수.)
Execute linestring entity creation handler. (LinestringEntity initialization is required.)
모바일 전용 이벤트 제거.
Remove mobile-specific event.
Remove mobile-specific event.