GeOnDT GeOnDT for JS

Class: UAnalySun

UAnalySun

~extends UAnaly
일조량 분석 클래스
3D 월드에서 태양 관련 분석과 일조량 분석을 위해 사용되는 클래스입니다.

new UAnalySun(opt)

Name Type Default Description
opt UAnalySunCO {} optional
Example
const analy = app.activeAnalysis('SunAmount');
await analy.active();

Members

drawUDraw undefined

modestring

staticUAnalySun.UAnalySunFloat32Array

Methods

active()

analySunAmount(start, end, position, step, drawOpt, dist)Array.<object>

설정된 분석 시간과 위치에서 일조량 분석을 수행하는 함수.

Name Type Default Description
start Date

분석 시작 시간

end Date

분석 종료 시간

position GeoPosition

일조량 분석을 수행할 지점 - 위경도 좌표

step number 1 optional

분석 시간 간격(분)

drawOpt DrawSunOpt {} optional

일조량 분석 결과 가시화 옵션

dist number 5000 optional

분석을 수행할 반경(km)

Returns:
Type Description
Array.<object> 일조량 분석 결과를 담은 배열

clear()

deactive()

getSunAmountDrawMeshes()Array.<Object3D>

화면에 출력되는 일조량 분석 결과 3D 큐브를 반환하는 함수.

Returns:
Type Description
Array.<Object3D> 분석 결과 3D 큐브가 담긴 배열

removeAnalySunAmount(name)

분석 결과 3D 큐브 이름을 파라미터로 받아 해당 큐브를 제거하는 함수.

Name Type Description
name string

제거할 분석 결과 3D 큐브의 이름

removeSunAmountByName(name)

Name Type Description
name string

setAfterClick(callback)

Name Type Description
callback function

setApp(app)

Name Type Description
app object

setDrawInterval(interval)

Name Type Description
interval number

setMeasureRadius(radius)

Name Type Description
radius number

setMode(mode)

Name Type Description
mode string

setUserStyle(style)

Name Type Description
style Record.<number, {min: number, max: number, color: string}>

Type Definitions

BVHGeometryobject

~extends BufferGeometry

Properties:
Name Type Argument Description
boundsTree UAnalySun.types~BVHTree <optional>
computeBoundsTree function <optional>
classtype string <optional>

BVHTreeobject

Properties:
Name Type Argument Description
intersectsBox function
closestPointToPoint function <optional>
shapecast function <optional>

DrawAreaFeatureobject

Properties:
Name Type Description
getGeometry function
getGeoVertex function

DrawAreaGeometryobject

Properties:
Name Type Description
getCoordinates function
getExtent function
containsXY function

DrawSunOptobject

Properties:
Name Type Argument Description
isDraw boolean <optional>
type string <optional>
styleFun function <optional>
name string <optional>
boxWidth number <optional>
boxNum number <optional>
usePlane boolean <optional>

InstanceMeshLikeobject

InstancedMesh2 common mesh interface

Properties:
Name Type Argument Description
geometry UAnalySun.types~BVHGeometry
matrixWorld Matrix4
isInstancedMesh2 boolean <optional>
isInstancedMesh boolean <optional>
count number <optional>
instanceCount number <optional>
getActiveAndVisibilityAt function <optional>
getMatrixAt function <optional>
worldToLocal function
getBBox function <optional>

SunAmountPassLikeobject

Properties:
Name Type Description
uniforms Object

SunIntersectTargetobject

Properties:
Name Type Argument Description
object UAnalySun.types~InstanceMeshLike
instanceId number <optional>

UAnalySunCOobject

~extends UAnaly~UAnalyCO
UAnalySun 생성자 옵션

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

일조량 분석 클래스 이름