new DynamicClock
Represents CZML document-level clock settings.
Members
-
clockRange :ClockRange
-
Gets or sets how the clock should behave when
startTime
orstopTime
is reached. -
clockStep :ClockStep
-
Gets or sets if clock advancement is frame dependent or system clock dependent.
-
currentTime :JulianDate
-
Gets or sets the initial time to use when switching to this clock.
-
multiplier :Number
-
Gets or sets how much time advances with each tick, negative values allow for advancing backwards. If
clockStep
is set to ClockStep.TICK_DEPENDENT this is the number of seconds to advance. IfclockStep
is set to ClockStep.SYSTEM_CLOCK_MULTIPLIER this value is multiplied by the elapsed system time since the last call to tick. -
propertyChanged :Event
-
Gets the event that is raised whenever a new property is assigned.
-
startTime :JulianDate
-
Gets or sets the start time of the clock to use when looping or clamped.
-
stopTime :JulianDate
-
Gets or sets the stop time of the clock to use when looping or clamped.
Methods
-
clone
-
Duplicates a DynamicClock instance.
Parameters:
Name Type Argument Description result
DynamicClock <optional>
The object onto which to store the result. Returns:
DynamicClock The modified result parameter or a new instance if one was not provided. -
getValue
-
Gets the value of this clock instance as a Clock object.
Returns:
Clock The modified result parameter or a new instance if one was not provided. -
merge
-
Assigns each unassigned property on this object to the value of the same property on the provided source object.
Parameters:
Name Type Description source
DynamicClock The object to be merged into this object. Throws:
DeveloperError : source is required.