Class: PolylineVolumeGraphics

PolylineVolumeGraphics

new PolylineVolumeGraphics(options)

Draw Line Volume Class

Name Type Description
options Object optional

Object is an object that contains the following properties:

Name Type Default Description
positions Property optional

Cartesian3 attributes, these positions define the path to be stretched.

shape Property optional

Cartesian2 attributes, these positions define the shape to be stretched.

cornerType Property CornerType.ROUNDED optional

The CornerType property specifies the style of the corner.

show Property true optional

Boolean property, specifying the visibility of the volume of the polyline.

fill Property true optional

Boolean property, used to specify whether the volume of the polyline is filled with the provided material.

material MaterialProperty Color.WHITE optional

Specify the properties of the material used to fill the volume of the polyline.

outline Property false optional

Boolean property, used to specify whether to display the contour of the polyline volume.

outlineColor Property Color.BLACK optional

The Color property specifies the color of the contour.

outlineWidth Property 1.0 optional

The number attribute specifies the width of the contour.

granularity Property SuperMap3D.Math.RADIANS_PER_DEGREE optional

The number attribute specifies the angular distance between each latitude and longitude point.

shadows Property ShadowMode.DISABLED optional

Enumeration properties used to specify whether the polyline volume casts or receives shadows from each light source.

distanceDisplayCondition Property optional

The DistanceDisplayCondition property specifies how far the polyline volume is displayed from the camera.

See:

Members

cornerTypeProperty

Get or set the CornerType property to specify the style of the corner.

Default Value:
CornerType.ROUNDED

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 rectangle should be displayed from the camera.

fillProperty

Gets or sets the boolean property, specifying whether to fill the geometry with the provided material.

Default Value:
true

granularityProperty

Get or set the number property to specify the angular distance between points on the geometry.

Default Value:
{CesiumMath.RADIANS_PER_DEGREE}

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

Default Value:
Color.WHITE

outlineProperty

Gets or sets Boolean properties to specify whether to display the outline of geometry.

Default Value:
false

outlineColorProperty

Get or set the Color property to specify the color of the contour.

Default Value:
Color.BLACK

outlineWidthProperty

Get or set the number property to specify the contour width.

Default Value:
1.0

positionsProperty

Get or set Cartesian3 properties, which define the path to be stretched.

shadowsProperty

Gets or sets enumeration properties to specify whether a rectangle casts or receives shadows from each light source.

Default Value:
ShadowMode.DISABLED

shapeProperty

Get or set the Cartesian2 property, which defines the shape to be stretched.

showProperty

Get the visibility of the geometry set to boolean type.

Default Value:
true

Methods

clone(result){PolylineVolumeGraphics}

Copy instance

Name Type Description
result PolylineVolumeGraphics optional

The object that stores the copied results

Returns:
Type Description
PolylineVolumeGraphics 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 PolylineVolumeGraphics

An object that provides attribute values.