Class: PathGraphics

PathGraphics

new PathGraphics(options)

Described a polyline created by an Entity that defines a path that moves over time.

Name Type Description
options Object optional

Object is an object that contains the following properties:

Name Type Default Description
show Property true optional

Boolean attribute, used to specify the visibility of a path.

leadTime Property optional

The number attribute specifies the number of seconds after the object to be displayed.

trailTime Property optional

The number attribute specifies the number of seconds before the object to be displayed.

width Property 1.0 optional

The number attribute specifies the width in pixels.

resolution Property 60 optional

The number attribute specifies the maximum number of steps in seconds when sampling at a specific location.

material MaterialProperty Color.WHITE optional

The MaterialProperty property specifies the properties of the material used to draw the path.

distanceDisplayCondition Property optional

Attribute, specifying how far the path is displayed from the camera.

Members

readonly definitionChangedEvent

Get events. This event is thrown when the value of a property or sub property is modified, or when the definition is modified.

distanceDisplayConditionProperty

Get or set the DistanceDisplayCondition property to specify how far the polyline path should be displayed from the camera.

leadTimeProperty

Get or set the number property, specifying the number of seconds before the object to be displayed.

Get or set the MaterialProperty property to specify the material used to fill the polyline path.

Default Value:
Color.WHITE

resolutionProperty

Get or set the number property to specify the maximum number of seconds to step during location sampling.

Default Value:
60

showProperty

Get or set boolean property to specify path visibility.

Default Value:
true

trailTimeProperty

Get or set the number property, specifying the number of seconds after the object to be displayed.

widthProperty

Get or set the number property to specify the pixel width of the polyline path.

Default Value:
1.0

Methods

clone(result){PathGraphics}

Copy instance

Name Type Description
result PathGraphics optional

The object that stores the copied results

Returns:
Type Description
PathGraphics If input parameters are provided, return the modified input parameter object. If no input parameters are provided, return a new instance.

merge(source)

Assign the attribute values corresponding to the source object to all unspecified attributes of this instance.

Name Type Description
source PathGraphics

An object that provides attribute values.