GeOnDT GeOnDT for JS

Class: U3dViewLight

GeOnDT.view. U3dViewLight

광원뷰 오버레이 클래스. 광원뷰 생성, 삭제, show, hide 등의 기능을 제공

new U3dViewLight(opt)

광원뷰 오버레이 클래스. 광원뷰 생성, 삭제, show, hide 등의 기능을 제공

Name Type Description
opt object

생성자 옵션

Name Type Default Description
far object 250 optional

광원뷰 최대 거리

Tutorials:

Methods

correctPosition(shiftVal)

광원뷰의 위치를 지정 이동값(shiftVal)으로 보정하는 함수

Name Type Description
shiftVal Vector3

광원뷰 이동값

getParam()Object

광원뷰 생성 파라미터 값을 반환하는 함수

Returns:
Type Description
Object 파라미터 정보

getScene()object

광원뷰의 scene을 반환하는 함수

Returns:
Type Description
object 광원뷰 scene

getShift()ShiftVal

광원뷰의 이동값(shiftVal)을 리턴하는 함수

Returns:
Type Description
ShiftVal 광원뷰의 이동값

moveToPosition(lightPosition)

광원뷰를 지정된 위치로 이동시키는 함수입니다.

Name Type Description
lightPosition WorldPositionVector3

이동할 위치 (월드 좌표, EPSG:3857)

remove()

광원뷰를 제거하는 함수

removeMesh()

resetRotation(left, up)

광원뷰 좌우 회전 값을 초기화하는 함수

Name Type Description
left number

좌우 회전 값 (degree)

up number

상하 회전 값 (degree)

setAngle(angle)

광원뷰의 시야각(angle)을 설정하는 함수

Name Type Default Description
angle Number Math.PI/3

광원뷰의 시야각 (radian)

setApp(app)

광원뷰를 app에 세팅하는 함수

Name Type Description
app U3dApp

U3dApp

setColor(color)

광원 색상을 설정하는 함수

Name Type Description
color ColorRepresentation

색상

setDistance(distance)

광원뷰의 총 거리를 지정하는 함수

Name Type Description
distance Number

광원뷰 총 거리

setIntensity(intensity)

광원의 세기(Intensity)를 지정하는 함수

Name Type Default Description
intensity Number 1

광원 세기값

setLightData(data)

Data를 읽어 광원뷰의 shiftVal, left, up 값을 세팅하는 함수

Name Type Description
data object

광원 세팅값을 담고 있는 Object 데이터

Name Type Description
shift Vector3

광원뷰의 이동값

left number

광원뷰의 좌우 회전 값 (degree)

up number

광원뷰의 상하 회전 값 (degree)

setLightPositionByComponent(vec3)

광원의 X, Y 값을 사용자 지정 위치로 보정하는 함수입니다.

Name Type Description
vec3 WorldPositionVector3

보정할 좌표 (월드 좌표, EPSG:3857)

setRotationLeft(degLeft)

광원뷰 좌우 회전 값을 세팅하는 함수

Name Type Description
degLeft number

좌우 회전 값 (degree)

setRotationUp(degUp)

광원뷰 상하 회전 값을 세팅하는 함수

Name Type Description
degUp number

상하 회전 값 (degree)

setShift(shiftVal)

광원뷰에 이동값(shiftVal)을 세팅하는 함수

Name Type Description
shiftVal Vector3

광원뷰 이동값

showHelper(visible)

광원뷰 가시선(Helper)를 show/hide하는 함수

Name Type Description
visible boolean

가시선 가시화 여부

updateTarget()

광원뷰의 target을 갱신하는 함수

viewLightAnalysis(options)

광원 가시범위를 분석하는 함수

Name Type Description
options object

분석 옵션

Name Type Default Description
color object 0xff0000 optional

Mesh 색상

opacity object 0.5 optional

Mesh 투명도

type object "viewCone" optional

Mesh 타입

azimuth object 10 optional

Mesh 가로 각도

distance object optional

총 길이

startOffset object 10 optional

Mesh 시작점 오프셋 값. 카메라와 Mesh 시작점 사이의 거리.

widthSegment object 100 optional

Mesh 넓이 세그먼트 값 (클수록 Mesh 화질 개선)

start object optional

Mesh 시작 위치

end object optional

Mesh 끝 위치