new DynamicClock
Represents CZML document-level clock settings.
Members
-
clockRange :ClockRange
-
Determines how the clock should behave when
startTimeorstopTimeis reached.- Default Value:
-
clockStep :ClockStep
-
Determines if clock advancement is frame dependent or system clock dependent.
- Default Value:
-
currentTime :JulianDate
-
The initial time to use when switching to this clock.
- Default Value:
- Iso8601.MAXIMUM_INTERVAL.start
-
multiplier :Number
-
Determines how much time advances with each tick, negative values allow for advancing backwards. If
clockStepis set to ClockStep.TICK_DEPENDENT this is the number of seconds to advance. IfclockStepis set to ClockStep.SYSTEM_CLOCK_MULTIPLIER this value is multiplied by the elapsed system time since the last call to tick.- Default Value:
- 1.0
-
startTime :JulianDate
-
The start time of the clock to use when looping or clamped.
- Default Value:
- Iso8601.MAXIMUM_INTERVAL.start
-
stopTime :JulianDate
-
The stop time of the clock to use when looping or clamped.
- Default Value:
- Iso8601.MAXIMUM_INTERVAL.stop
Methods
-
clone
-
Duplicates a DynamicClock instance.
Parameters:
Name Type Argument Description resultDynamicClock <optional>
The object onto which to store the result. Returns:
DynamicClock The modified result parameter or a new DynamicClock instance if one was not provided. -
<static> mergeProperties
-
Given two DynamicObjects, takes the clock properties from the second and assigns them to the first.
Parameters:
Name Type Description targetObjectDynamicObject The DynamicObject which will have properties merged onto it. objectToMergeDynamicObject The DynamicObject containing properties to be merged. See:
-
<static> processCzmlPacket
-
Processes a single CZML packet and merges its data into the provided DynamicObject's clock.
Parameters:
Name Type Argument Description dynamicObjectDynamicObject The DynamicObject which will contain the clock data. packetObject The CZML packet to process. dynamicObjectCollectionDynamicObjectCollection <optional>
The collection into which objects are being loaded. sourceUriString <optional>
The originating url of the CZML being processed. Returns:
Boolean true if any new properties were created while processing the packet, false otherwise.- DynamicObject
- DynamicProperty
- DynamicObjectCollection
- CzmlDefaults#updaters
See:
-
<static> undefineProperties
-
Given a DynamicObject, undefines the clock associated with it. This method is not normally called directly, but is part of the array of CZML processing functions that is passed into the CompositeDynamicObjectCollection constructor.
Parameters:
Name Type Description dynamicObjectDynamicObject The DynamicObject to remove the clock from. See:
