DroneSimulationModel

시뮬레이션 모델 클래스.
Simulation Model Class.

new Ditap.DroneSimulationModel(viewer, options)

Name Type Description
viewer DitapViewer 사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.
options object 각각 다음과 같은 속성을 가진 객체.
Object with the following properties.
Name Type Default Description
id string optional 모델의 고유 아이디.
Unique ID of the model.
name string optional 모델의 이름.
The name of the model.
position Cartesian3 모델의 좌표.
Coordinates of the model.
rotation Quaternion optional 모델의 회전값.
Model's rotation value.
speed number 100 optional 모델의 이동 속도. (m/s)
Model's movement speed. (m/s)
model Entity optional 모델의 가시화 엔티티.
※ 사용자가 직접 제어 시 오류가 발생할 수 있습니다.
Visualization entity of an model.
※ Errors may occur when users directly control it.
show boolean true optional 모델의 가시화 여부.
Whether the model is visible.
debugShowAxis boolean false optional 이 속성은 디버깅용으로만 사용되며, 실제 운영에는 최적화되지 않았습니다.
true이면 모델의 x, y, z축을 가시화합니다.
모델의 움직임을 좀 더 직관적으로 확인할 수 있습니다.
This property is for debugging purposes only and is not optimized for production use.
If true, the model's x, y, and z axes will be visible.
This allows for a more intuitive way to see the model's movements.
cameraRotation Quaternion optional 카메라의 회전값.
Camera rotation value.
focalLength number 35 optional 카메라의 초점거리. (밀리미터)
The focal length of the camera. (millimeters)
sensorWidth number 35.9 optional 카메라의 센서 너비. (mm/pixel)
The width of the camera's sensor. (mm/pixel)
sensorHeight number 24 optional 카메라의 센서 높이. (mm/pixel)
Sensor height of the camera. (mm/pixel)
imageWidth number 8192 optional 사진 너비. (픽셀)
Photo width. (pixel)
imageHeight number 5460 optional 사진 높이. (픽셀)
Photo height. (pixel)
gsd number 1.5 optional 지상 샘플링 거리. (cm/pixels)
Ground sampling distance. (cm/pixel)
cameraDistance number 120 optional 카메라 촬영 거리. (밀리미터)
Camera shooting distance. (millimeters)
fixedCameraAngle boolean true optional 카메라 앵글 고정.
Fixed camera angle.
showCamera boolean true optional 카메라 가시화 여부.
Whether the camera is visible.

Members

cameraDistance : number

카메라 촬영 거리.
Camera shooting distance.

cameraRotation : Quaternion

시뮬레이션모델 카메라 회전값.
SimulationModel camera rotation values.

debugShowAxis : boolean

이 속성은 디버깅용으로만 사용되며, 실제 운영에는 최적화되지 않았습니다.
true이면 모델의 x, y, z축을 가시화합니다.
모델의 움직임을 좀 더 직관적으로 확인할 수 있습니다.
This property is for debugging purposes only and is not optimized for production use.
If true, the model's x, y, and z axes will be visible. This allows for a more intuitive way to see the model's movements.
Whether to visualize the direction axis of the simulation model.

fixedCameraAngle : boolean

카메라 앵글 고정.
Fixed camera angle.

focalLength : number

카메라의 초점거리.
The focal length of the camera.

fov : number

카메라 FOV.
Camera FOV.

gsd : number

지상 샘플링 거리.
Ground sampling distance.

readonly id : string

시뮬레이션모델 아이디.
SimulationModel id.

imageHeight : number

사진 높이.
Photo height.

imageWidth : number

사진 너비.
Photo width.

model : Entity

모델의 가시화 엔티티.
※ 사용자가 직접 제어 시 오류가 발생할 수 있습니다.
Visualization entity of an model.
※ Errors may occur when users directly control it.

name : string

시뮬레이션모델 이름.
SimulationModel name.

pixelHeight : number

카메라 픽셀 높이.
Camera pixel height.

pixelWidth : number

카메라 픽셀 너비.
Camera pixel width.

position : Cartesian3

시뮬레이션모델 좌표.
SimulationModel coordinates.

rotation : Quaternion

시뮬레이션모델 회전값.
SimulationModel rotation values.

sensorHeight : number

카메라의 센서 높이.
Sensor height of the camera.

sensorWidth : number

카메라의 센서 너비.
The width of the camera's sensor.

show : boolean

시뮬레이션모델 가시화 여부.
Whether the simulation model is visualized.

showCamera : boolean

카메라 가시화 여부.
Whether the camera is visible.

readonly viewer : DitapViewer

사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.

Methods

destroy()

인스턴스 제거.
Remove instance.

getShootingHeight()number

촬영높이 반환.
Return shooting height.
Returns:
촬영높이.
Shooting height.