new DynamicObject
A utility object for tracking an object with the camera.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
dynamicObject |
DynamicObject | The object to track with the camera. | ||
scene |
Scene | The scene to use. | ||
ellipsoid |
Ellipsoid |
<optional> |
Ellipsoid.WGS84 | The ellipsoid to use for orienting the camera. |
Members
-
availability :TimeInterval
-
The availability TimeInterval, if any, associated with this object. If availability is undefined, it is assumed that this object's other properties will return valid data for any provided time. If availability exists, the objects other properties will only provide valid data if queried within the given interval.
- Default Value:
- undefined
-
billboard :DynamicBillboard
-
Gets or sets the billboard.
- Default Value:
- undefined
-
cone :DynamicCone
-
Gets or sets the cone.
- Default Value:
- undefined
-
dynamicObject :DynamicObject
-
The object to track with the camera.
-
ellipse :DynamicEllipse
-
Gets or sets the ellipse.
- Default Value:
- undefined
-
ellipsoid :Ellipsoid
-
The ellipsoid to use for orienting the camera.
-
ellipsoid :DynamicEllipsoid
-
Gets or sets the ellipsoid.
- Default Value:
- undefined
-
id
-
A unique id associated with this object.
-
label :DynamicLabel
-
Gets or sets the label.
- Default Value:
- undefined
-
orientation :Property
-
Gets or sets the orientation.
- Default Value:
- undefined
-
path :DynamicPath
-
Gets or sets the path.
- Default Value:
- undefined
-
point :DynamicPoint
-
Gets or sets the point graphic.
- Default Value:
- undefined
-
polygon :DynamicPolygon
-
Gets or sets the polygon.
- Default Value:
- undefined
-
polyline :DynamicPolyline
-
Gets or sets the polyline.
- Default Value:
- undefined
-
position :PositionProperty
-
Gets or sets the position.
- Default Value:
- undefined
-
pyramid :DynamicPyramid
-
Gets or sets the pyramid.
- Default Value:
- undefined
-
scene :Scene
-
The scene in which to track the object.
-
vector :DynamicVector
-
Gets or sets the vector.
- Default Value:
- undefined
-
vertexPositions :Property
-
Gets or sets the vertex positions.
- Default Value:
- undefined
-
viewFrom :Cartesian3
-
Gets or sets the suggested initial offset for viewing this object with the camera. The offset is defined in the east-north-up reference frame.
- Default Value:
- undefined
Methods
-
<static> mergeProperties
-
Given two DynamicObjects, takes the position, orientation, vertexPositions and availability properties from the second and assigns them to the first, assuming such properties did not already exist.
Parameters:
Name Type Description targetObject
DynamicObject The DynamicObject which will have properties merged onto it. objectToMerge
DynamicObject The DynamicObject containing properties to be merged. -
<static> prototype.isAvailable
-
Given a time, returns true if this object should have data during that time.
Parameters:
Name Type Description time
JulianDate The time to check availability for. Throws:
DeveloperError : time is required.Returns:
true if the object should have data during the provided time, false otherwise. -
<static> prototype.update
-
Should be called each animation frame to update the camera to the latest settings.
Parameters:
Name Type Description time
JulianDate The current animation time. Throws:
-
DeveloperError : time is required.
-
DeveloperError : DynamicObjectView.scene is required.
-
DeveloperError : DynamicObjectView.dynamicObject is required.
-
DeveloperError : DynamicObjectView.ellipsoid is required.
-
DeveloperError : DynamicObjectView.dynamicObject.position is required.
-
-
<static> undefineProperties
-
Given a DynamicObject, undefines the position, orientation, vertexPositions and availability 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 billboard from.