new UAnalyGizmoModel(opt)
| Name | Type | Default | Description |
|---|---|---|---|
opt |
UAnalyGizmoModelCO | {} | optional |
Example
const gizmo = app.activeAnalysis('GizmoModel');
Members
-
isDrag
-
-
target
-
-
staticUAnalyGizmoModel.UAnalyGizmoModelGizmoControlObject
-
Methods
-
active()
-
-
clear()
-
-
deactive()
-
-
getControl()UGizmoControls|undefined
-
Returns:
Type Description UGizmoControls | undefined -
getControlObj()GizmoControlObject
-
Returns:
Type Description GizmoControlObject -
getControlPosition()Vector3
-
기즈모 UI(control)의 위치를 반환하는 함수
Returns:
Type Description Vector3 기즈모 위치 -
getMetaXML()Document|undefined
-
Gizmo Model의 메타 XML을 반환 하는 함수
Gizmo 설정 저장하는 로직.Returns:
Type Description Document | undefined Meta XML -
getMode()string
-
현재 기즈모(Gizmo) 기능의 모드를 반환하는 함수
Returns:
Type Description string translate- 위치편집
rotate- 회전편집
scale- 크기편집 -
getOverlay()U3dOverlay.js~U3dOverlay|undefined
-
Returns:
Type Description U3dOverlay.js~U3dOverlay | undefined -
hideLaser()
-
보조 레이저를 숨기는 함수
-
intersectAdapter(adapter)Object|undefined
-
기즈모 컨트롤러와 Adapter Geometry가 교차되는지 검사하는 함수
Name Type Description adapterU3dAdaptedGeometry.js~U3dAdaptedGeometry Adapter Geometry
Returns:
Type Description Object | undefined 교차 정보 (거리, Adapter) -
intersectAdapters(adapters)Array.<{distance: number, object: U3dAdaptedGeometry.js~U3dAdaptedGeometry}>
-
기즈모 컨트롤러와 Adapter Geometry 리스트가 교차되는지 검사하는 함수
Name Type Description adaptersArray.<U3dAdaptedGeometry.js~U3dAdaptedGeometry> Adapter Geometry 리스트
Returns:
Type Description Array.<{distance: number, object: U3dAdaptedGeometry.js~U3dAdaptedGeometry}> 교차 정보 리스트 -
objectChange()
-
-
removeLasers()
-
보조 레이저를 제거하는 함수
-
reset(object)
-
편집한 모델을 원 상태로 되돌리는(reset) 함수
Name Type Description objectArray.<Object3D> | Object3D optional gizmo 편집한 대상 Object
-
setEndFunc(func)
-
기즈모 편집이 끝났을 때(end) 동작할 콜백 함수를 설정하는 함수
Name Type Description funcfunction end 콜백 함수
-
setLaserStyle(style)
-
기즈모 레이저포인트 스타일 지정 함수
Name Type Description styleobject 레이저 스타일 옵션
Name Type Description colorColor | string | number optional 레이저포인트 색상
opacitynumber optional 레이저포인트 투명도
radiusnumber optional 레이저포인트 두께
-
setManualUpdate(position)
-
입력받은 좌표로 기즈모를 이동하는 함수입니다.
Name Type Description positionWorldPositionVector3 이동할 좌표 (월드 좌표, EPSG:3857)
-
setMode(mode)
-
기즈모(Gizmo) 기능 중 위치, 회전, 크기 편집모드를 설정하는 함수
Name Type Description modestring | number translate| 0 - 위치편집
rotate| 1 - 회전편집
scale| 2 - 크기편집 -
setObject(object)
-
편집할 모델 객체를 설정하는 함수
Name Type Description objectArray.<Object3D> | Object3D 편집할 모델 객체 또는 리스트
-
setOverlay(overlay)
-
기즈모 컨트롤레어 오버레이를 등록하는 함수
Name Type Description overlayU3dOverlay.js~U3dOverlay 오버레이
-
setTargetScene(scene)
-
입력받은 Scene을 모드의 _targetScenes 프로퍼티에 추가하는 함수
Name Type Description sceneObject3D -
setUpdateFunc(func)
-
기즈모 편집 중일 때(update) 동작할 콜백 함수를 설정하는 함수
Name Type Description funcfunction update 콜백 함수
-
setUseLaser(use)
-
기즈모 레이저포인트를 켜고/끄는 함수
Name Type Description useboolean 레이저포인트 활성여부 (true면 켜고, false면 끈다.)
-
showLaser()
-
gizmo 편집시 공간감을 보조할 레이저를 생성하고 가시화 하는 함수
-
update()
-
Type Definitions
-
UAnalyGizmoModelCOobject
-
~extends UAnaly~UAnalyCO
UAnalyGizmoModel 생성자 옵션Properties:
Name Type Argument Default Description namestring <optional>
'GizmoModel' 분석 클래스 이름