GeOnDT GeOnDT for JS

Class: UAnalySlopeAspect

UAnalySlopeAspect

~extends UAnaly
경사향 분석 클래스

new UAnalySlopeAspect(options)

Name Type Default Description
options UAnalySlopeAspectCO {} optional
Throws:
  • 표면 샘플링 방식, 대상 레이어 목록 또는 화살표 형상 옵션 타입이 올바르지 않은 경우

    Type
    TypeError
  • 화살표 형상 옵션이 0 이하인 경우

    Type
    RangeError
Example
var analy = app.getAnalysis('SlopeAspect');
await analy.active();

Members

arrowHeadLengthnumber

arrowHeadSizenumber

arrowStyleFunctionundefined function

arrowTailLengthnumber

arrowTailWidthnumber

aspectLegendObject

averageSlopenumber

cancelundefined function

depthTestboolean

dxnumber undefined

dynumber undefined

gridDouble_Array.<Vector3> undefined

heightnumber

maxnumber

meshObject3D

minnumber

modestring

needUpdateboolean

nxnumber

nynumber

opacitynumber

poiU3dPOI

positionObject undefined

renderSceneUScene

resultGridArray.<SlopeAspectCell>

slopeLegendObject

slopePromiseReturnType.<Class.<deferred>>

targetLayersArray.<string>

timeoutIdReturnType.<Class.<setTimeout>> undefined

widthnumber

Methods

active()

clear()

deactive()

getAnalysisOption()SlopeAspectOption

분석 옵션을 반환하는 함수.

Returns:
Type Description
SlopeAspectOption 분석 옵션

getAverageSlope()number

Returns:
Type Description
number

getPosition()Object|undefined

분석 중심점 좌표를 반환하는 함수.

Returns:
Type Description
Object | undefined position 중심점 위경도 좌표

getSlope(position, options)ReturnType.<Class.<deferred>>

경사향 분석 함수. 입력받은 마우스 이벤트를 기준으로 분석 옵션에 따른 그리드를 생성하여, 경사향을 화면에 표출한다.

Name Type Description
position Vector3 | Object

분석 중심 위치 위경도

options Partial.<UAnalySlopeAspectCO> optional

분석 옵션

Throws:
  • 표면 샘플링 방식, 대상 레이어 목록 또는 화살표 형상 옵션 타입이 올바르지 않은 경우

    Type
    TypeError
  • 화살표 형상 옵션이 0 이하인 경우

    Type
    RangeError
  • 대상 레이어가 없거나 경사도·경사향을 계산할 유효 표면점이 없는 경우

    Type
    Error
Returns:
Type Description
ReturnType.<Class.<deferred>>

onAfterRender()

setAnalysisOption(options)

분석 옵션을 설정하는 함수. 화살표 형상 옵션이 변경되면 전체 화살표 지오메트리를 다시 만들어 표출 중인 결과에 즉시 반영한다.

Name Type Default Description
options Partial.<UAnalySlopeAspectCO> {} optional
Throws:
  • 표면 샘플링 방식, 대상 레이어 목록 또는 화살표 형상 옵션 타입이 올바르지 않은 경우

    Type
    TypeError
  • 화살표 형상 옵션이 0 이하인 경우

    Type
    RangeError

setArrowStyleFunction(arrowStyleFunction)

경사향 분석 결과를 가시화 하는 화살표 스타일 콜백 함수를 설정하는 메서드입니다.

Name Type Description
arrowStyleFunction undefined | function

setOpacity(opacity)

Name Type Default Description
opacity number 1 optional

showLabel(show)

Name Type Description
show boolean

Type Definitions

SlopeAspectArrowStryleobject

경사향 화살표 스타일 옵션

Properties:
Name Type Description
visible boolean

화살표 가시화 여부. false면 화살표를 그리지 않는다

scale number

화살표 크기(배율)

height number

화살표 높이(z축)

color ColorRepresentation

화살표 색상

opacity number

화살표 투명도(0~1)

SlopeAspectCellobject

경사향 분석 셀 결과

Properties:
Name Type Argument Description
dEW number

동서 방향 변화율

dNS number

남북 방향 변화율

slope number

경사도

aspect number

경사향

direction Vector3

방향 벡터

position Vector3

위치

x number

그리드 x 인덱스

y number

그리드 y 인덱스

target UAnalySlopeAspect.types~SlopeAspectTarget <optional>

중심 격자점의 Raycast 표면 대상

SlopeAspectOptionobject

경사향 분석 옵션

Properties:
Name Type Argument Description
nx number

경사향 격자 가로 셀 갯수

ny number

경사향 격자 세로 셀 갯수

width number

경사향 격자 너비(m)

height number

경사향 격자 높이(m)

depthTest boolean

경사향 격자 depth 사용 여부

samplingMode UAnalySlopeAspect.types~SlopeAspectSamplingMode

표면 높이 샘플링 방식

targetLayers Array.<string>

Raycast 시 기본 표면에 추가할 레이어 이름 목록

arrowHeadSize number

화살표 머리(원뿔) 반지름

arrowHeadLength number

화살표 머리(원뿔) 길이

arrowTailLength number

화살표 꼬리(원기둥) 길이

arrowTailWidth number

화살표 꼬리(원기둥) 반지름

arrowStyleFunction function <optional>

경사향 격자 화살표 스타일 콜백함수

SlopeAspectSamplingMode'terrain' 'raycast'

표면 높이 샘플링 방식

SlopeAspectTargetobject

Raycast 표면 대상

Properties:
Name Type Argument Description
object Object3D

교차 객체

instanceId number <optional>

인스턴스 식별자

UAnalySlopeAspectCOobject

~extends UAnaly~UAnalyCO
UAnalySlopeAspect 생성자 옵션

Properties:
Name Type Argument Default Description
name string <optional>
'SlopeAspect'

분석 클래스 이름

width number <optional>
500

분석 영역의 가로 크기(m). 내부에서 분석 중심 위도의 3857 길이로 변환되어 적용됩니다.

height number <optional>
500

분석 영역의 세로 크기(m). 내부에서 분석 중심 위도의 3857 길이로 변환되어 적용됩니다.

nx number <optional>
50

가로 방향 표면 샘플 수

ny number <optional>
50

세로 방향 표면 샘플 수

depthTest boolean <optional>
true

화살표가 다른 객체에 가려지도록 깊이 버퍼를 사용할지 여부

mode 'aspect' | 'slope' | 'slope-aspect' <optional>
'aspect'

경사향, 경사도 또는 조합 범례 적용 모드

samplingMode UAnalySlopeAspect.types~SlopeAspectSamplingMode <optional>
'terrain'

'terrain' 또는 위에서 아래로 표면을 탐색하는 'raycast' 샘플링 방식

targetLayers Array.<string> <optional>
[]

Raycast 시 terrain과 표시 중인 이미지 레이어 외에 추가할 현재 표시 중인 레이어 이름 목록. 존재하지 않는 이름이 포함되면 분석이 오류로 종료됩니다.

slopeLegend Object <optional>

경사도 범례

app U3dApp <optional>

앱 인스턴스

arrowStyleFunction function <optional>

셀별 화살표 스타일 콜백. Raycast로 표면을 찾은 셀은 cel.target을 포함합니다.

arrowHeadSize number <optional>
1.5

화살표 머리(원뿔) 반지름. 월드 단위이며 0보다 커야 합니다.

arrowHeadLength number <optional>
4

화살표 머리(원뿔) 길이. 월드 단위이며 0보다 커야 합니다.

arrowTailLength number <optional>
8

화살표 꼬리(원기둥) 길이. 월드 단위이며 0보다 커야 합니다.

arrowTailWidth number <optional>
0.1

화살표 꼬리(원기둥) 반지름. 월드 단위이며 0보다 커야 합니다.