Class: WallGraphics

WallGraphics

new WallGraphics(options)

Create wall classes that extend along the surface of the Earth or in the air.

Name Type Description
options Object optional

Object is an object that contains the following properties:

Name Type Default Description
show Property true optional

Boolean property, used to specify the visibility of walls.

positions Property optional

Specify the properties of the Cartesian3 position array, which define the top of the wall.

minimumHeights Property optional

Number array, specifying the height array for the bottom of the wall, rather than the height array for the ellipsoid surface.

maximumHeights Property optional

Number array, specifying a height array for the top of the wall, rather than a height array for each position.

granularity Property SuperMap3D.Math.RADIANS_PER_DEGREE optional

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

fill Property true optional

Boolean property, used to specify whether the wall is filled with the provided material.

material MaterialProperty Color.WHITE optional

Specify the properties of the material used to fill the wall.

outline Property false optional

Boolean property, used to specify whether to display the outline of the wall.

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. Note: Windows system does not currently support it.

shadows Property ShadowMode.DISABLED optional

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

distanceDisplayCondition Property optional

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

See:

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

fillProperty

Get or set boolean property to specify whether to fill the wall with the provided material.

Default Value:
true

granularityProperty

Get or set the number property, which specifies the angular distance between each latitude and longitude point.

Default Value:
{CesiumMath.RADIANS_PER_DEGREE}

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

Default Value:
Color.WHITE

maximumHeightsProperty

Get or set a number array, specifying a height array for the top of the wall instead of a height array for each position. If defined, the length of the array must be the same as Wall # positions.

minimumHeightsProperty

Get or set a number array, specifying a height array for the bottom of the wall instead of the ellipsoid surface. If defined, the length of the array must be the same as Wall # positions.

outlineProperty

Gets or sets a Boolean property that specifies whether to display the wall outline.

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

Gets or sets the Cartesian3 array, which defines the top of the wall.

shadowsProperty

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

Default Value:
ShadowMode.DISABLED

showProperty

Get the visibility of the wall setting, of type boolean.

Default Value:
true

Methods

clone(result){WallGraphics}

Copy instance

Name Type Description
result WallGraphics optional

The object that stores the copied results

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

An object that provides attribute values.