new DynamicVector
Represents a time-dynamic vector, typically used in conjunction with DynamicVectorVisualizer and DynamicObjectCollection to visualize CZML.
Members
-
color :DynamicProperty
-
A DynamicProperty of type CzmlColor which determines the vector's color.
- Default Value:
- undefined
-
direction :DynamicProperty
-
A DynamicProperty of type CzmlDirection which determines the vector's direction.
- Default Value:
- undefined
-
length :DynamicProperty
-
A DynamicProperty of type CzmlNumber which determines the vector's graphical length.
- Default Value:
- undefined
-
show :DynamicProperty
-
A DynamicProperty of type CzmlBoolean which determines the vector's visibility.
- Default Value:
- undefined
-
width :DynamicProperty
-
A DynamicProperty of type CzmlNumber which determines the vector's width.
- Default Value:
- undefined
Methods
-
<static> mergeProperties
-
Given two DynamicObjects, takes the vector properties from the second and assigns them to the first, assuming such a property did not already exist. 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 targetObject
DynamicObject The DynamicObject which will have properties merged onto it. objectToMerge
DynamicObject The DynamicObject containing properties to be merged. See:
-
<static> processCzmlPacket
-
Processes a single CZML packet and merges its data into the provided DynamicObject's vector. If the DynamicObject does not have a vector, one is created. This method is not normally called directly, but is part of the array of CZML processing functions that is passed into the DynamicObjectCollection constructor.
Parameters:
Name Type Description dynamicObject
DynamicObject The DynamicObject which will contain the vector data. packet
Object The CZML packet to process. 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 vector 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 dynamicObject
DynamicObject The DynamicObject to remove the vector from. See: