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>
-
-
samplingModeSlopeAspectSamplingMode
-
-
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 positionVector3 | Object 분석 중심 위치 위경도
optionsPartial.<UAnalySlopeAspectCO> optional 분석 옵션
Throws:
-
-
표면 샘플링 방식, 대상 레이어 목록 또는 화살표 형상 옵션 타입이 올바르지 않은 경우
- Type
- TypeError
-
-
-
화살표 형상 옵션이 0 이하인 경우
- Type
- RangeError
-
-
-
대상 레이어가 없거나 경사도·경사향을 계산할 유효 표면점이 없는 경우
- Type
- Error
-
Returns:
Type Description ReturnType.<Class.<deferred>> -
-
onAfterRender()
-
-
setAnalysisOption(options)
-
분석 옵션을 설정하는 함수. 화살표 형상 옵션이 변경되면 전체 화살표 지오메트리를 다시 만들어 표출 중인 결과에 즉시 반영한다.
Name Type Default Description optionsPartial.<UAnalySlopeAspectCO> {} optional Throws:
-
-
표면 샘플링 방식, 대상 레이어 목록 또는 화살표 형상 옵션 타입이 올바르지 않은 경우
- Type
- TypeError
-
-
-
화살표 형상 옵션이 0 이하인 경우
- Type
- RangeError
-
-
-
setArrowStyleFunction(arrowStyleFunction)
-
경사향 분석 결과를 가시화 하는 화살표 스타일 콜백 함수를 설정하는 메서드입니다.
Name Type Description arrowStyleFunctionundefined | function -
setOpacity(opacity)
-
Name Type Default Description opacitynumber 1 optional -
showLabel(show)
-
Name Type Description showboolean
Type Definitions
-
SlopeAspectArrowStryleobject
-
경사향 화살표 스타일 옵션
Properties:
Name Type Description visibleboolean 화살표 가시화 여부. false면 화살표를 그리지 않는다
scalenumber 화살표 크기(배율)
heightnumber 화살표 높이(z축)
colorColorRepresentation 화살표 색상
opacitynumber 화살표 투명도(0~1)
-
SlopeAspectCellobject
-
경사향 분석 셀 결과
Properties:
Name Type Argument Description dEWnumber 동서 방향 변화율
dNSnumber 남북 방향 변화율
slopenumber 경사도
aspectnumber 경사향
directionVector3 방향 벡터
positionVector3 위치
xnumber 그리드 x 인덱스
ynumber 그리드 y 인덱스
targetUAnalySlopeAspect.types~SlopeAspectTarget <optional>
중심 격자점의 Raycast 표면 대상
-
SlopeAspectOptionobject
-
경사향 분석 옵션
Properties:
Name Type Argument Description nxnumber 경사향 격자 가로 셀 갯수
nynumber 경사향 격자 세로 셀 갯수
widthnumber 경사향 격자 너비(m)
heightnumber 경사향 격자 높이(m)
depthTestboolean 경사향 격자 depth 사용 여부
samplingModeUAnalySlopeAspect.types~SlopeAspectSamplingMode 표면 높이 샘플링 방식
targetLayersArray.<string> Raycast 시 기본 표면에 추가할 레이어 이름 목록
arrowHeadSizenumber 화살표 머리(원뿔) 반지름
arrowHeadLengthnumber 화살표 머리(원뿔) 길이
arrowTailLengthnumber 화살표 꼬리(원기둥) 길이
arrowTailWidthnumber 화살표 꼬리(원기둥) 반지름
arrowStyleFunctionfunction <optional>
경사향 격자 화살표 스타일 콜백함수
-
SlopeAspectSamplingMode'terrain' 'raycast'
-
표면 높이 샘플링 방식
-
SlopeAspectTargetobject
-
Raycast 표면 대상
Properties:
Name Type Argument Description objectObject3D 교차 객체
instanceIdnumber <optional>
인스턴스 식별자
-
UAnalySlopeAspectCOobject
-
~extends UAnaly~UAnalyCO
UAnalySlopeAspect 생성자 옵션Properties:
Name Type Argument Default Description namestring <optional>
'SlopeAspect' 분석 클래스 이름
widthnumber <optional>
500 분석 영역의 가로 크기(m). 내부에서 분석 중심 위도의 3857 길이로 변환되어 적용됩니다.
heightnumber <optional>
500 분석 영역의 세로 크기(m). 내부에서 분석 중심 위도의 3857 길이로 변환되어 적용됩니다.
nxnumber <optional>
50 가로 방향 표면 샘플 수
nynumber <optional>
50 세로 방향 표면 샘플 수
depthTestboolean <optional>
true 화살표가 다른 객체에 가려지도록 깊이 버퍼를 사용할지 여부
mode'aspect' | 'slope' | 'slope-aspect' <optional>
'aspect' 경사향, 경사도 또는 조합 범례 적용 모드
samplingModeUAnalySlopeAspect.types~SlopeAspectSamplingMode <optional>
'terrain' 'terrain'또는 위에서 아래로 표면을 탐색하는'raycast'샘플링 방식targetLayersArray.<string> <optional>
[] Raycast 시 terrain과 표시 중인 이미지 레이어 외에 추가할 현재 표시 중인 레이어 이름 목록. 존재하지 않는 이름이 포함되면 분석이 오류로 종료됩니다.
slopeLegendObject <optional>
경사도 범례
appU3dApp <optional>
앱 인스턴스
arrowStyleFunctionfunction <optional>
셀별 화살표 스타일 콜백. Raycast로 표면을 찾은 셀은
cel.target을 포함합니다.arrowHeadSizenumber <optional>
1.5 화살표 머리(원뿔) 반지름. 월드 단위이며 0보다 커야 합니다.
arrowHeadLengthnumber <optional>
4 화살표 머리(원뿔) 길이. 월드 단위이며 0보다 커야 합니다.
arrowTailLengthnumber <optional>
8 화살표 꼬리(원기둥) 길이. 월드 단위이며 0보다 커야 합니다.
arrowTailWidthnumber <optional>
0.1 화살표 꼬리(원기둥) 반지름. 월드 단위이며 0보다 커야 합니다.