| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
scene |
Scene | 现场。 The scene. |
成员 Members
-
默认值: Default Value:
3.0
maximumZoomDistance and minimumZoomDistance 被忽略。也可与 are ignored. Also used in conjunction with Cesium3DTileset#enableCollision 以防止相机移动穿过或低于 3D Tileset 表面。这也可能会影响使用时的夹紧行为 to prevent the camera from moving through or below a 3D Tileset surface. This may also affect clamping behavior when using HeightReference.CLAMP_TO_GROUND 在 3D Tiles上。 on 3D Tiles.
-
默认值: Default Value:
true
-
默认值: Default Value:
true
-
默认值: Default Value:
true
-
默认值: Default Value:
true
-
默认值: Default Value:
true
-
默认值: Default Value:
true
-
默认值: Default Value:
true
[0, 1) 用于确定相机由于惯性将继续旋转多长时间。当值为零时,相机将没有惯性。 used to determine how long the camera will continue to spin because of inertia. With value of zero, the camera will have no inertia.
-
默认值: Default Value:
0.9
[0, 1) 用于确定相机由于惯性将继续平移多长时间。当值为零时,相机将没有惯性。 used to determine how long the camera will continue to translate because of inertia. With value of zero, the camera will have no inertia.
-
默认值: Default Value:
0.9
[0, 1) 用于确定相机由于惯性而继续变焦多长时间。当值为零时,相机将没有惯性。 used to determine how long the camera will continue to zoom because of inertia. With value of zero, the camera will have no inertia.
-
默认值: Default Value:
0.8
lookEventTypes : CameraEventType|Array|undefined
类型可以是 The type can be a CameraEventType, undefined,一个物体 , an object with eventType
and modifier 具有类型的属性 properties with types CameraEventType and KeyboardEventModifier,或任何前述的数组。 , or an array of any of the preceding.
-
默认值: Default Value:
{ eventType : CameraEventType.LEFT_DRAG, modifier : KeyboardEventModifier.SHIFT }
[0, 1) 用于将各种用户输入的范围限制为每个动画帧的窗口宽度/高度的百分比。这有助于在低帧速率情况下保持相机的控制。 used to limit the range of various user inputs to a percentage of the window width/height per animation frame. This helps keep the camera under control in low-frame-rate situations.
-
默认值: Default Value:
0.1
undefined,相机倾斜角度不受限制。 , the angle of the camera tilt is unrestricted.
-
默认值: Default Value:
undefined
示例: Example:
// Prevent the camera from tilting below the ellipsoid surface
viewer.scene.screenSpaceCameraController.maximumTiltAngle = Math.PI / 2.0;
-
默认值: Default Value:
Number.POSITIVE_INFINITY
-
默认值: Default Value:
15000.0 or scene.ellipsoid.minimumRadius * 0.0025.
-
默认值: Default Value:
4000.0 or scene.ellipsoid.minimumRadius * 0.00063
-
默认值: Default Value:
150000.0 or scene.ellipsoid.minimumRadius * 0.025
-
默认值: Default Value:
7500000.0 or scene.ellipsoid.minimumRadius * 1.175
-
默认值: Default Value:
1.0
rotateEventTypes : CameraEventType|Array|undefined
类型可以是 The type can be a CameraEventType, undefined,一个物体 , an object with eventType
and modifier 具有类型的属性 properties with types CameraEventType and KeyboardEventModifier,或任何前述的数组。 , or an array of any of the preceding.
-
默认值: Default Value:
CameraEventType.LEFT_DRAG
tiltEventTypes : CameraEventType|Array|undefined
类型可以是 The type can be a CameraEventType, undefined,一个物体 , an object with eventType
and modifier 具有类型的属性 properties with types CameraEventType and KeyboardEventModifier,或任何前述的数组。 , or an array of any of the preceding.
-
默认值: Default Value:
[CameraEventType.MIDDLE_DRAG, CameraEventType.PINCH, {
eventType : CameraEventType.LEFT_DRAG,
modifier : KeyboardEventModifier.CTRL
}, {
eventType : CameraEventType.RIGHT_DRAG,
modifier : KeyboardEventModifier.CTRL
}]
translateEventTypes : CameraEventType|Array|undefined
类型可以是 The type can be a CameraEventType, undefined,一个物体 , an object with eventType
and modifier 具有类型的属性 properties with types CameraEventType and KeyboardEventModifier,或任何前述的数组。 , or an array of any of the preceding.
-
默认值: Default Value:
CameraEventType.LEFT_DRAG
zoomEventTypes : CameraEventType|Array|undefined
类型可以是 The type can be a CameraEventType, undefined,一个物体 , an object with eventType
and modifier 具有类型的属性 properties with types CameraEventType and KeyboardEventModifier,或任何前述的数组。 , or an array of any of the preceding.
-
默认值: Default Value:
[CameraEventType.RIGHT_DRAG, CameraEventType.WHEEL, CameraEventType.PINCH]
-
默认值: Default Value:
5.0
方法 Methods
一旦对象被销毁,就不应再使用;调用除 Once an object is destroyed, it should not be used; calling any function other than
isDestroyed 将导致 will result in a DeveloperError 例外。因此,分配返回值( exception. Therefore, assign the return value (undefined) 到对象,如示例中所做的那样。 ) to the object as done in the example.
抛出: Throws:
-
DeveloperError : This object was destroyed, i.e., destroy() was called.
示例: Example:
controller = controller && controller.destroy();
另见: See:
如果该对象被破坏,则不应使用它;调用除 If this object was destroyed, it should not be used; calling any function other than
isDestroyed 将导致 will result in a DeveloperError exception.
返回: Returns:
true 如果该物体被摧毁;否则, if this object was destroyed; otherwise, false.
