GeOnDT GeOnDT for JS

Class: UAnaly

UAnaly

~extends UEventDispatcher
3D분석 관련 최상위 클래스
분석 클래스들은 기본으로 생성되어 U3dApp에 등록됩니다.

new UAnaly(opt)

Name Type Default Description
opt UAnalyCO {} optional
Example
const analysis = app.getAnalysis('분석이름');
analysis.active();

Members

setAppfunction

staticUAnaly.Eventany

Methods

active()

분석 기능 활성화 함수

clear()

분석 작업 내용 초기화 함수
그리기, 3D객체 등 분석 작업으로 지도에 표출된 내용들을 초기화한다.

deactive()

분석 기능 비활성화 함수

getScene()UScene

분석 모드의 Scene을 반환하는 함수

Returns:
Type Description
UScene

getTargetLayerName()string|undefined

클릭 위치 검출에 사용할 대상 레이어의 이름을 반환합니다.

Returns:
Type Description
string | undefined 대상 레이어 이름

intersectModel(e)Array.<Intersection>

사용자 이벤트(클릭)에 교차(intersect)되는 3D 모델을 반환하는 함수

Name Type Description
e U3dMouseEvent

사용자 클릭 이벤트

Returns:
Type Description
Array.<Intersection>

intersectTerrain(e)Vector3|undefined

사용자 이벤트(클릭)에 교차(intersect)되는 지점(point)를 반환하는 함수

Name Type Description
e U3dMouseEvent | Object

사용자 이벤트

Returns:
Type Description
Vector3 | undefined 교차 지점

isActive()boolean

분석 기능 활성화 여부 반환

Returns:
Type Description
boolean

off(type, listener)

분석 모드 이벤트를 끄는 메서드

Name Type Description
type string optional
listener function optional

on(type, listener, once, name)string|null

분석 모드 이벤트를 추가하는 메서드

Name Type Default Description
type string
listener EventCallBack
once boolean | undefined false optional
name string | undefined optional
Returns:
Type Description
string | null

setApp(app)

분석모드에 app을 세팅하는 함수

Name Type Description
app U3dApp

U3dApp

setTargetLayerName(layerName)

클릭 위치 검출에 사용할 대상 레이어이름을 설정합니다. 미설정시 지형에 한정하지 않고 현재 표시 중인 전체 레이어를 대상으로 합니다.

Name Type Description
layerName string | undefined

대상 레이어 이름

update()

분석모드 업데이트 함수

Type Definitions

UAnalyCOobject

~extends UEventDispatcher~UEventDispatcherCO
UAnaly 생성자 옵션

Properties:
Name Type Argument Default Description
type string <optional>
'analy'

분석 타입