GeOnDT GeOnDT for JS

Class: U3dHeightLayer

U3dHeightLayer

~extends U3dLayer
타일 고도 적용과 부모 타일 대체 처리를 제공하는 기반 레이어입니다.

new U3dHeightLayer(opt)

고도 레이어의 식별자, 부모 타일 대체 레벨과 헤더 캐시를 초기화합니다.

Name Type Default Description
opt U3dHeightLayerCO {} optional

Methods

changeHeight(tile)

타일에 변경된 고도 지오메트리를 적용하는 함수

Name Type Description
tile U3dQuadTile

대상 타일

createHeight(tile, opt)boolean|Promise.<boolean>

타일 고도 생성 가능 여부를 검사하는 함수

Name Type Default Description
tile U3dQuadTile

대상 타일

opt U3dHeightWorkOption {} optional

작업 옵션

Returns:
Type Description
boolean | Promise.<boolean> 검사 결과. false면 타일 고도 생성 불가능

createParentHeight(tile, opt)undefined

부모 타일의 데이터와 헤더로 자식 타일의 고도를 생성합니다. 부모가 로딩 중이면 로드 이벤트를 기다리며, 완료 여부는 opt.promise와 타일 상태에 반영합니다.

Name Type Description
tile U3dQuadTile

대상 타일

opt U3dHeightWorkOption

작업 옵션

Returns:
Type Description
undefined

dispose()Promise.<boolean>

Returns:
Type Description
Promise.<boolean> 상위 레이어의 처분 완료 결과

disposeTile(tile, opt)

Name Type Description
tile U3dQuadTile

대상 타일

opt Partial.<{deletefunc: function()}> optional

삭제 옵션

getHeightScale()number

설정된 지형 높이 스케일을 반환합니다.

Returns:
Type Description
number

setHeightScale(scale)

지형 높이 스케일을 설정합니다. 0.1 미만의 입력은 0.1로 보정하여 현재와 이후 타일 메시 모두에 적용합니다.

Name Type Default Description
scale number 1.0 optional

지형 높이에 곱해질 스케일 값을 입력, 기본값 1.0

show(show, refresh)

고도 레이어 가시화 함수

Name Type Description
show boolean

가시화 옵션값

updateGeometryWidthBoxList(geometry, tile)

커스텀 박스 목록을 지오메트리에 반영하는 함수

Name Type Description
geometry UPlaneBufferGeometry

대상 지오메트리

tile U3dQuadTile

대상 타일

updateHeight(tile, ioBuf, headerBuf)boolean|undefined

고도 표본을 공유 지형 지오메트리에 반영합니다. 격자 크기·헤더·앱·병합 대상 검증 후에만 정점을 갱신하며, 잘못된 상태는 Error로 전달합니다. ioBuf가 없으면 무동작합니다. ioBuf가 있으면 tile과 초기화된 레이어 설정이 필요합니다. 타일 소유 레이어와 바운딩 볼륨을 기록한 뒤 커스텀 지형 편집, 노멀 계산과 GPU 재업로드 표시를 적용합니다.

Name Type Description
tile U3dQuadTile optional

대상 타일

ioBuf ArrayLike.<number> optional

고도 버퍼 데이터

headerBuf U3dHeightTileHeader optional

고도 헤더 버퍼 데이터

Returns:
Type Description
boolean | undefined

updateHeightByUser(_tile, skey)boolean

캐시된 표본과 헤더를 현재 타일에 다시 적용합니다. 입력·캐시·타일이 없으면 false를 반환하며, 공유 지오메트리의 참조를 반납하지 않습니다.

Name Type Description
_tile U3dHeightUserTileInfoOption

대상 타일 user 입력 정보

skey string optional

캐시 키

Returns:
Type Description
boolean

Type Definitions

U3dHeightLayerCOobject

~extends U3dLayer~U3dLayerCO
U3dHeightLayer 생성자 옵션

Properties:
Name Type Argument Default Description
burnlevels Array.<number> <optional>
[]

번 레벨 배열

U3dHeightUserTileInfoOptionobject

updateHeightByUser 작업 옵션

Properties:
Name Type Description
x number

tile index X

y number

tile index y

level number

tile index level

minx number

tile min X 좌표

miny number

tile min y 좌표

maxx number

tile max X 좌표

maxy number

tile max y 좌표

U3dHeightWorkOptionobject

createParentHeight 작업 옵션

Properties:
Name Type Argument Description
work Object

작업 객체

promise Object <optional>

deferred 프로미스 객체