Appearance
KBE3D / KBCore / Cesium / PolylineGraphics
类: PolylineGraphics
Describes a polyline. The first two positions define a line segment, and each additional position defines a line segment from the previous position. The segments can be linear connected points, great arcs, or clamped to terrain.
参数
Object describing initialization options
属性
definitionChanged
readonlydefinitionChanged:Event
Gets the event that is raised whenever a property or sub-property is changed or modified.
show
show:
Property|undefined
Gets or sets the boolean Property specifying the visibility of the polyline.
positions
positions:
Property|undefined
Gets or sets the Property specifying the array of Cartesian3 positions that define the line strip.
width
width:
Property|undefined
Gets or sets the numeric Property specifying the width in pixels.
granularity
granularity:
Property|undefined
Gets or sets the numeric Property specifying the angular distance between each latitude and longitude if arcType is not ArcType.NONE and clampToGround is false.
material
material:
MaterialProperty
Gets or sets the Property specifying the material used to draw the polyline.
depthFailMaterial
depthFailMaterial:
MaterialProperty
Gets or sets the Property specifying the material used to draw the polyline when it fails the depth test. <p> Requires the EXT_frag_depth WebGL extension to render properly. If the extension is not supported, there may be artifacts. </p>
arcType
arcType:
Property|undefined
Gets or sets the ArcType Property specifying whether the line segments should be great arcs, rhumb lines or linearly connected.
clampToGround
clampToGround:
Property|undefined
Gets or sets the boolean Property specifying whether the polyline should be clamped to the ground.
shadows
shadows:
Property|undefined
Get or sets the enum Property specifying whether the polyline casts or receives shadows from light sources.
distanceDisplayCondition
distanceDisplayCondition:
Property|undefined
Gets or sets the DistanceDisplayCondition Property specifying at what distance from the camera that this polyline will be displayed.
classificationType
classificationType:
Property|undefined
Gets or sets the ClassificationType Property specifying whether this polyline will classify terrain, 3D Tiles, or both when on the ground.
zIndex
zIndex:
ConstantProperty|undefined
Gets or sets the zIndex Property specifying the ordering of the polyline. Only has an effect if clampToGround is true and polylines on terrain is supported.
方法
clone()
clone(
result?:PolylineGraphics):PolylineGraphics
Duplicates this instance.
参数
result?
PolylineGraphics
The object onto which to store the result.
返回
PolylineGraphics
The modified result parameter or a new instance if one was not provided.
merge()
merge(
source:PolylineGraphics):void
Assigns each unassigned property on this object to the value of the same property on the provided source object.
参数
source
PolylineGraphics
The object to be merged into this object.
返回
void
构造函数
构造函数
new PolylineGraphics(
options?:ConstructorOptions):PolylineGraphics
参数
options?
返回
PolylineGraphics
