English中文

ClockViewModel

new Cesium.ClockViewModel(clock)

一个视图模型公开了 A view model which exposes a Clock 用于用户界面。 for user interfaces.
名称 Name 类型 Type 说明 Description
clock Clock 可选 optional 此视图模型包装的时钟对象,如果未定义,将创建一个新实例。 The clock object wrapped by this view model, if undefined a new instance will be created.
另见: See:

成员 Members

获取或设置时钟是否可以设置动画。看 Gets or sets whether the clock can animate. See Clock#canAnimate。这个性质是可以观察到的。 . This property is observable.
获取底层时钟。 Gets the underlying Clock.
获取或设置时钟范围设置。参见 Gets or sets the clock range setting. See Clock#clockRange。这个性质是可以观察到的。 . This property is observable.
获取或设置时钟步设置。参见 Gets or sets the clock step setting. See Clock#clockStep。这个性质是可以观察到的。 . This property is observable.
获取或设置当前时间。参见 Gets or sets the current time. See Clock#currentTime。这个性质是可以观察到的。 . This property is observable.
获取或设置时钟倍频器。参见 Gets or sets the clock multiplier. See Clock#multiplier。这个性质是可以观察到的。 . This property is observable.

shouldAnimate : boolean

获取或设置时钟是否应设置动画。参见 Gets or sets whether the clock should animate. See Clock#shouldAnimate。这个性质是可以观察到的。 . This property is observable.
获取或设置时钟的开始时间。参见 Gets or sets the start time of the clock. See Clock#startTime。这个性质是可以观察到的。 . This property is observable.
获取或设置时钟的停止时间。参见 Gets or sets the stop time of the clock. See Clock#stopTime。这个性质是可以观察到的。 . This property is observable.
获取当前系统时间。这个性质是可以观察到的。 Gets the current system time. This property is observable.

方法 Methods

破坏视图模型。当不再需要视图模型时,应该调用它来正确清理视图模型。 Destroys the view model. Should be called to properly clean up the view model when it is no longer needed.

isDestroyed()boolean

返回: Returns:
如果对象已被销毁,则为 true,否则为 false。 true if the object has been destroyed, false otherwise.
使用底层时钟的内容更新视图模型。如果底层时钟发生变化,则可以调用以强制更新 viewModel Updates the view model with the contents of the underlying clock. Can be called to force an update of the viewModel if the underlying clock has changed and Clock.tick 尚未被调用。 has not yet been called.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.