InteractionView

조망권 분석을 위한 사용자 입력(마우스/키보드) 클래스.
User input (mouse/keyboard) class for visibility analysis.

new Ditap.InteractionView(viewOption)

Name Type Description
viewOption Object 조망권 분석 옵션.
Visibility analysis options.
Name Type Description
viewer DitapViewer 사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.
analysisView AnalysisView optional 조망권 분석 연산 및 영역 표시 클래스.
Visibility analysis operation and area display class.
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.
Example:
// 샌드캐슬 예제 'DiTAP - View Right' 참조
const viewer = new Ditap.DitapViewer("ditapContainer");

const analysisView = new Ditap.AnalysisView({ viewer: viewer });

const interactionView = new Ditap.InteractionView({
  viewer: viewer,
  analysisView: analysisView,
});

interactionView.on();

Members

addCallback : function

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

analysisView : AnalysisView

조망권 분석 및 영역 표시 클래스.
Visibility analysis and area display class.

readonly drawingPointEntities : Array.<Entity>

조망권 분석 할 포인트 엔티티 배열
Array of point entities for analyzing view.

endCallback : function

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

isOn : boolean

핸들러 실행 여부.
Whether the handler is running.

readonly moveEntities : Array.<Entity>

move 시 생성 되는 entity 배열
Array of entities created during move.

startCallback : function

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

viewer : DitapViewer

사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.

Methods

abort()

조망권 분석 중 중단.
Interrupt during analysis.

off()

조망권 분석 핸들러 종료. (AnalysisView 초기화 필수.)
End analysis view handler. (AnalysisView initialization is required.)

on()

조망권 분석 핸들러 실행.
Execute the visibility analysis handler.