参数名称 | 类型 | 描述信息 |
---|---|---|
scene |
Scene | The scene. |
成员(属性)
-
默认值:
3.0
maximumZoomDistance
and minimumZoomDistance
are ignored.
-
默认值:
true
-
默认值:
true
-
默认值:
true
-
默认值:
true
-
默认值:
true
-
默认值:
true
-
默认值:
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.
-
默认值:
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.
-
默认值:
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.
-
默认值:
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.
-
默认值:
{ 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.
-
默认值:
0.1
undefined
, the angle of the camera tilt is unrestricted.
-
默认值:
undefined
使用示例:
// Prevent the camera from tilting below the ellipsoid surface
viewer.scene.screenSpaceCameraController.maximumTiltAngle = Math.PI / 2.0;
-
默认值:
Number.POSITIVE_INFINITY
-
默认值:
15000.0 or scene.ellipsoid.minimumRadius * 0.0025.
-
默认值:
4000.0 or scene.ellipsoid.minimumRadius * 0.00063
-
默认值:
150000.0 or scene.ellipsoid.minimumRadius * 0.025
-
默认值:
7500000.0 or scene.ellipsoid.minimumRadius * 1.175
-
默认值:
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.
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.
-
默认值:
[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.
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.
-
默认值:
5.0
方法
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.
使用示例:
controller = controller && controller.destroy();
参考:
If this object was destroyed, it should not be used; calling any function other than
isDestroyed
will result in a DeveloperError
exception.
返回值:
true
if this object was destroyed; otherwise, false
.