new UAnalyAlarm(opt)
| Name | Type | Default | Description |
|---|---|---|---|
opt |
UAnalyAlarmCO | {} | optional |
- Tutorials:
Methods
-
active()
-
-
addDetailList(id)
-
cursor 타입 알람시 세부 정보 id를 추가하는 함수
Name Type Description idstring | number 세부 정보 추가 POI ID
-
addDetailOpt(id, xsize, ysize, height, image)
-
id를 입력 받아 해당 POI의 cursor 세부정보를 설정하는 함수
Name Type Default Description idstring cursor 알람시 설정하고 싶은 객체의 ID
xsizenumber 40 optional 설정한 이미지의 x사이즈 크기
ysizenumber 40 optional 설정한 이미지의 y사이즈 크기
heightnumber 50 optional 설정한 이미지와 POI의 높이 차
imagestring optional 설정하려고 하는 이미지의 파일 경로
-
addModel(model)
-
알람을 설정 할 model 객체를 추가하는 함수
Name Type Description modelUMesh 알람을 추가하려는 model 객체
Example
let analy = app.getAnalysis('Alarm'); analy.addModel(mesh); -
addPOI(poi)
-
알람을 설정 할 POI 객체를 추가하는 함수
Name Type Description poiUGroup 알람을 추가하려는 POI 객체
Example
let analy = app.getAnalysis('Alarm'); let poi = U3dBilboard.makeBilboard({ position: position, text: text }); analy.addPOI(poi); -
addSelected(object)
-
다중 선택 하여 그린 POLYGON 내 영역 안의 해당하는 model 객체를 추가하는 함수
Name Type Description objectUMesh | Array.<UMesh> 영역 안에 해당하여 추가하려는 객체
-
alarmSetData(id, count, speed, type, color)
-
알람을 추가하려는 POI의 설정 값을 받아 알람 유형 별로 동작하는 함수
Name Type Description idstring 알람을 추가하려는 POI 객체의 ID
countnumber 알람 횟수
speednumber 알람 속도
typestring optional 알람 유형(타입)
colornumber | string optional Model 알람 추가시 색상 선택
Example
let analy = app.getAnalysis('Alarm'); analy.alarmSetData(target, alarmCount, alarmSpeed, type); -
clear()
-
-
clearSelect(isChecked)
-
다중 객체 선택하여, 영역 그리기 시 나타난 polygon 삭제, 선택된 model 비우기를 실행하는 함수.
Name Type Default Description isCheckedboolean false optional mesh-loaded event 삭제 여부
-
cursorMode(poi, count, speed)
-
전달 받은 값으로 POI cursor 타입 알람 실행시 횟수와 속도를 입력받아 실행하는 함수
Name Type Description poiUCssBilboard | Array.<UCssBilboard> 알람 대상 POI 객체
countnumber 알람 횟수
speednumber 알람 속도
-
cursorModeAnimation(poi, speed, count)
-
전달 받은 값으로 POI cursorMode Animation 실행
Name Type Description poiUCssBilboard 알람을 설정하려는 POI 객체
speednumber 알람 속도
countnumber 알람 횟수
-
deactive()
-
-
disposedStopModelAlarm(model)
-
Model 객체 알람 실행 중 dispose 됐을 경우 이후에 Model 객체가 create 될때 이전 알람을 이어서 실행하는 함수.
Name Type Description modelUMesh 알람 도중 dispose된 Model 객체
-
model 객체 id 또는 model 객체 id가 담긴 List를 입력 받아 해당 model을 반환하는 함수
Name Type Description idListArray.<(string|number)> | string | number 찾으려는 model 객체의 ID 또는 ID 배열
Returns:
Type Description UGroup | UMesh | undefined 찾은 model List 반환 -
POI 객체 id 또는 POI 객체 id가 담긴 List를 입력 받아 해당 POI를 반환하는 함수
Name Type Description idListArray.<(string|number)> 찾으려는 POI 객체의 ID 또는 ID 배열
Returns:
Type Description Array.<UGroup> | UGroup | undefined 찾은 POI List 반환 -
flickerMode(poi, count, speed)
-
POI 객체 알람 추가 시 필요한 정보를 입력 받아 설정하는 함수
Name Type Description poiUCssBilboard | Array.<UCssBilboard> 알람을 설정하려는 POI 객체
countnumber 알람 횟수
speednumber 알람 속도
-
flickerModeAnimation(poi, count, speed)
-
전달 받은 값으로 POI flickerMode Animation 실행
Name Type Description poiUCssBilboard 알람을 설정하려는 POI 객체
countnumber 알람 횟수
speednumber 알람 속도
-
getDetailList()Array.<(string|number)>
-
cursor 세부 정보를 설정한 DetailList를 반환하는 함수
Returns:
Type Description Array.<(string|number)> cursorMode 시 세부정보를 설정 하려는 POI의 ID들의 배열을 반환합니다. -
getInstanceType(id)string|undefined
-
id를 입력 받아 해당 객체의 타입을 반환하는 함수
POImodelName Type Description idstring | number 현재 편집목록에 추가된 객체 중 타입 정보를 알고 싶은 객체의 ID
Returns:
Type Description string | undefined POI/model/group -
getIntersectModel(id)UMesh|undefined
-
알람 목록에서 찾고 싶은 Model의 id를 입력 받아 해당 id의 좌표값을 담고 있는 modelObject의 정보를 참고하여 해당 지점의 Model을 반환합니다.
Name Type Description idstring 찾고 싶은 model의 id
Returns:
Type Description UMesh | undefined selectedObject 결과 Model 반환 -
modelGroup의 Children을 반환하는 함수
Returns:
Type Description Array.<(UGroup|UMesh)> addModel 로 추가된 model 객체들을 반환합니다. -
getPOIGroupChildren()Array.<UCssBilboard>
-
poiGroup의 Children을 반환하는 함수
Returns:
Type Description Array.<UCssBilboard> addPOI 로 추가된 객체들을 반환합니다. -
getSelecter()U3dSelect|undefined
-
Returns:
Type Description U3dSelect | undefined -
isDisposedStopModel(model)
-
model의 알람 동작 중 Dispose 되어 사라진 model의 정지 된 알람을 다시 동작 시키기 위한 함수
Name Type Description modelUMesh dispose 되어 정지된 알람의 대상 객체
-
modelFlickerMode(model, count, speed, color)
-
model 객체 알람 추가 시 필요한 정보를 입력 받아 설정하는 함수
Name Type Description modelUMesh | Array.<UMesh> 알람을 설정하려는 model 객체
countnumber 알람 횟수
speednumber 알람 속도
colornumber | string optional 알람 색상
-
modelFlickerModeInit(model, count, speed, color)
-
Model 객체 알람 추가 시 필요한 정보를 입력 받아 알람을 시작하는 함수.
Name Type Default Description modelUMesh 알람 대상 Model 객체
countnumber 알람 횟수
speednumber 알람 속도
colornumber | string '#00ff00' optional 알람 색상
Example
let analy = app.getAnalysis('Alarm'); analy.modelFlickerMode(model, count, speed, color); -
offMultiMode()
-
여러개 알람을 동시에 수행할 수 있는 MultiMode를 끄는 함수
-
onMultiMode()
-
여러개 알람을 동시에 수행할 수 있는 MultiMode를 켜는 함수
-
passToClickEvent(func, event)
-
원하는 클릭이벤트를 전달 받아 해당 분석 기능에서 사용하기 위한 함수.
Name Type Description funcEventCallBack Click 이벤트 함수
eventstring optional 이벤트 타입
-
removeAlarm(id)
-
삭제하려는 목록의 ID를 받아 해당 알람을 삭제합니다
Name Type Description idstring | number 삭제 대상 ID
-
removeAllAlarm()object
-
알람이 추가된 목록을 전부 중지 하고 삭제 합니다.
Returns:
Type Description object -
removeAllDetailOpt()
-
cursor Mode 시 필요한 세부정보의 목록을 전부 삭제 합니다.
-
removeDetailList(id)
-
id를 입력 받아 해당 POI의 cursor 세부정보를 삭제하는 함수
Name Type Description idstring cursorMode 알람 시 세부정보를 삭제하고 싶은 객체의 ID
-
removeSelected(object)
-
addSelected로 추가된 객체 삭제
Name Type Description objectUMesh 삭제하려는 객체
-
setCursorImage(url)
-
cursor 타입시에 생성될 이미지 url
Name Type Description urlstring 이미지 파일 경로
-
setType(type)
-
알람을 추가할 객체의 타입을 지정합니다.
Name Type Description typestring POI / model 타입 설정
-
sizeMode(poi, count, speed)
-
POI 객체 알람 추가 시 필요한 정보를 입력 받아 설정하는 함수. sizeMode : 객체 크기 확대 / 축소 모드
Name Type Description poiUCssBilboard | Array.<UCssBilboard> 알람을 설정하려는 POI 객체
countnumber 알람 횟수
speednumber 알람 속도
-
sizeModeAnimaition(poi, speed, count, oriSize)
-
전달 받은 값으로 POI sizeMode Animation 실행
Name Type Default Description poiUCssBilboard 알람을 설정하려는 POI 객체
speednumber 알람 속도
countnumber 알람 횟수
oriSizenumber 8 optional 알람시작 전 원래 POI의 사이즈
-
stopActiveAlarm(id)
-
실행중인 알람의 객체 ID를 전달 받아 알람을 중지합니다.
Name Type Description idstring | number 삭제 대상 ID
-
stopAlarmById(id)
-
중지하려는 알람 목록의 ID를 받아 해당 알람을 중지합니다.
Name Type Description idstring | number 삭제 대상 ID
-
stopAllAlarm()
-
전체 알람을 일시 중지하며, 각 객체들의 상태를 초기화합니다.
Type Definitions
-
Alarm_DetailOptobject
-
POI cursor 알람 세부 옵션
Properties:
Name Type Argument Description xsizenumber <optional>
ysizenumber <optional>
heightnumber <optional>
imagestring <optional>
-
ModelEditInfoobject
-
레이어에서 편집으로 생성/변경된 Model 정보
-
ModelLayerLikeobject
-
Properties:
Name Type Argument Description getNamefunction <optional>
getModelByIdfunction editedListArray.<(string|number)> <optional>
editedEventRecord.<string, UAnalyAlarm.types~ModelEditInfo> <optional>
offfunction <optional>
addEventListenerfunction <optional>
removeEventListenerfunction <optional>
getEditedEventByIdfunction <optional>
-
UAnalyAlarmCOobject
-
~extends UAnaly~UAnalyCO
UAnalyAlarm 생성자 옵션Properties:
Name Type Argument Default Description namestring <optional>
'Alarm' 분석 클래스 이름