new U3dHeightLayer(opt)
고도 레이어의 식별자, 부모 타일 대체 레벨과 헤더 캐시를 초기화합니다.
| Name | Type | Default | Description |
|---|---|---|---|
opt |
U3dHeightLayerCO | {} | optional |
Methods
-
changeHeight(tile)
-
타일에 변경된 고도 지오메트리를 적용하는 함수
Name Type Description tileU3dQuadTile 대상 타일
-
createHeight(tile, opt)boolean|Promise.<boolean>
-
타일 고도 생성 가능 여부를 검사하는 함수
Name Type Default Description tileU3dQuadTile 대상 타일
optU3dHeightWorkOption {} optional 작업 옵션
Returns:
Type Description boolean | Promise.<boolean> 검사 결과. false면 타일 고도 생성 불가능 -
createParentHeight(tile, opt)undefined
-
부모 타일의 데이터와 헤더로 자식 타일의 고도를 생성합니다. 부모가 로딩 중이면 로드 이벤트를 기다리며, 완료 여부는 opt.promise와 타일 상태에 반영합니다.
Name Type Description tileU3dQuadTile 대상 타일
optU3dHeightWorkOption 작업 옵션
Returns:
Type Description undefined -
dispose()Promise.<boolean>
-
Returns:
Type Description Promise.<boolean> 상위 레이어의 처분 완료 결과 -
disposeTile(tile, opt)
-
Name Type Description tileU3dQuadTile 대상 타일
optPartial.<{deletefunc: function()}> optional 삭제 옵션
-
getHeightScale()number
-
설정된 지형 높이 스케일을 반환합니다.
Returns:
Type Description number -
setHeightScale(scale)
-
지형 높이 스케일을 설정합니다. 0.1 미만의 입력은 0.1로 보정하여 현재와 이후 타일 메시 모두에 적용합니다.
Name Type Default Description scalenumber 1.0 optional 지형 높이에 곱해질 스케일 값을 입력, 기본값 1.0
-
show(show, refresh)
-
고도 레이어 가시화 함수
Name Type Description showboolean 가시화 옵션값
-
updateGeometryWidthBoxList(geometry, tile)
-
커스텀 박스 목록을 지오메트리에 반영하는 함수
Name Type Description geometryUPlaneBufferGeometry 대상 지오메트리
tileU3dQuadTile 대상 타일
-
updateHeight(tile, ioBuf, headerBuf)boolean|undefined
-
고도 표본을 공유 지형 지오메트리에 반영합니다. 격자 크기·헤더·앱·병합 대상 검증 후에만 정점을 갱신하며, 잘못된 상태는 Error로 전달합니다. ioBuf가 없으면 무동작합니다. ioBuf가 있으면 tile과 초기화된 레이어 설정이 필요합니다. 타일 소유 레이어와 바운딩 볼륨을 기록한 뒤 커스텀 지형 편집, 노멀 계산과 GPU 재업로드 표시를 적용합니다.
Name Type Description tileU3dQuadTile optional 대상 타일
ioBufArrayLike.<number> optional 고도 버퍼 데이터
headerBufU3dHeightTileHeader optional 고도 헤더 버퍼 데이터
Returns:
Type Description boolean | undefined -
updateHeightByUser(_tile, skey)boolean
-
캐시된 표본과 헤더를 현재 타일에 다시 적용합니다. 입력·캐시·타일이 없으면 false를 반환하며, 공유 지오메트리의 참조를 반납하지 않습니다.
Name Type Description _tileU3dHeightUserTileInfoOption 대상 타일 user 입력 정보
skeystring optional 캐시 키
Returns:
Type Description boolean
Type Definitions
-
U3dHeightLayerCOobject
-
~extends U3dLayer~U3dLayerCO
U3dHeightLayer 생성자 옵션Properties:
Name Type Argument Default Description burnlevelsArray.<number> <optional>
[] 번 레벨 배열
-
U3dHeightUserTileInfoOptionobject
-
updateHeightByUser 작업 옵션
Properties:
Name Type Description xnumber tile index X
ynumber tile index y
levelnumber tile index level
minxnumber tile min X 좌표
minynumber tile min y 좌표
maxxnumber tile max X 좌표
maxynumber tile max y 좌표
-
U3dHeightWorkOptionobject
-
createParentHeight 작업 옵션