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

销毁视图模型。当不再需要视图模型时,应调用此函数来正确清理视图模型.

isDestroyed()boolean

Returns:
如果对象已被销毁则返回 true,否则返回 false.
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.
需要帮助?获得答案的最快方法是来自社区和团队 Cesium Forum.