@JsType(isNative=true, namespace="Cesium", name="ScreenSpaceCameraController") public class ScreenSpaceCameraController extends Object
Modifier and Type | Field and Description |
---|---|
Number |
bounceAnimationTime
Sets the duration, in seconds, of the bounce back animations in 2D and Columbus view.
|
Boolean |
enableCollisionDetection
Enables or disables camera collision detection with terrain.
|
Boolean |
enableInputs
If true, inputs are allowed conditionally with the flags enableTranslate, enableZoom, enableRotate, enableTilt, and enableLook.
|
Boolean |
enableLook
If true, allows the user to use free-look.
|
Boolean |
enableRotate
If true, allows the user to rotate the camera.
|
Boolean |
enableTilt
If true, allows the user to tilt the camera.
|
Boolean |
enableTranslate
If true, allows the user to pan around the map.
|
Boolean |
enableZoom
If true, allows the user to zoom in and out.
|
Number |
inertiaSpin
A parameter in the range [0, 1) used to determine how long the camera will continue to spin because of inertia.
|
Number |
inertiaTranslate
A parameter in the range [0, 1) used to determine how long the camera will continue to translate because of inertia.
|
Number |
inertiaZoom
A parameter in the range [0, 1) used to determine how long the camera will continue to zoom because of inertia.
|
CameraEventType[] |
lookEventTypes
The input that allows the user to change the direction the camera is viewing.
|
Number |
maximumMovementRatio
A parameter in the range [0, 1) used to limit the range of various user inputs to a percentage of the window
width/height per animation frame.
|
Number |
maximumZoomDistance
The maximum magnitude, in meters, of the camera position when zooming.
|
Number |
minimumCollisionTerrainHeight
The minimum height the camera must be before testing for collision with terrain.
|
Number |
minimumPickingTerrainHeight
The minimum height the camera must be before picking the terrain instead of the ellipsoid.
|
Number |
minimumTrackBallHeight
The minimum height the camera must be before switching from rotating a track ball to free look when clicks
originate on the sky on in space.
|
Number |
minimumZoomDistance
The minimum magnitude, in meters, of the camera position when zooming.
|
CameraEventType[] |
rotateEventTypes
The input that allows the user to rotate around the globe or another object.
|
CameraEventType[] |
tiltEventTypes
The input that allows the user to tilt in 3D and Columbus view or twist in 2D.
|
CameraEventType[] |
translateEventTypes
The input that allows the user to pan around the map.
|
CameraEventType[] |
zoomEventTypes
The input that allows the user to zoom in/out.
|
Constructor and Description |
---|
ScreenSpaceCameraController(Scene scene)
Modifies the camera position and orientation based on mouse input to a canvas.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Removes mouse listeners held by this object.
|
Boolean |
isDestroyed()
Returns true if this object was destroyed; otherwise, false.
|
@JsProperty public Number bounceAnimationTime
@JsProperty public Boolean enableCollisionDetection
@JsProperty public Boolean enableInputs
@JsProperty public Boolean enableLook
@JsProperty public Boolean enableRotate
@JsProperty public Boolean enableTilt
@JsProperty public Boolean enableTranslate
@JsProperty public Boolean enableZoom
@JsProperty public Number inertiaSpin
@JsProperty public Number inertiaTranslate
@JsProperty public Number inertiaZoom
@JsProperty public CameraEventType[] lookEventTypes
@JsProperty public Number maximumMovementRatio
@JsProperty public Number maximumZoomDistance
@JsProperty public Number minimumCollisionTerrainHeight
@JsProperty public Number minimumPickingTerrainHeight
@JsProperty public Number minimumTrackBallHeight
@JsProperty public Number minimumZoomDistance
@JsProperty public CameraEventType[] rotateEventTypes
CameraEventType.LEFT_DRAG()
@JsProperty public CameraEventType[] tiltEventTypes
@JsProperty public CameraEventType[] translateEventTypes
@JsProperty public CameraEventType[] zoomEventTypes
@JsConstructor public ScreenSpaceCameraController(Scene scene)
scene
- The scene.public void destroy()
isDestroyed()
public Boolean isDestroyed()
destroy()
Copyright © 2019. All rights reserved.