new CorridorGraphics(options)
Used to extrude specific cross-sectional shapes along a three-dimensional path to generate volume classes
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
Object is an object that contains the following properties:
|
- See:
Members
-
classificationTypeProperty
-
Get or set the ClassityType property, specifying whether the channel classifies terrain, 3D tiles, or both.
- Default Value: ClassificationType.BOTH
cornerTypeProperty
Get or set the CornerType property to specify the type of 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 away the channel should be displayed from the camera.
extrudedHeightProperty
Get or set the number property, which specifies the altitude at which the channel is extruded. After setting this attribute, a channel volume will be created. This channel starts from CorridorGraphics # height and ends at CorridorGraphics # extradedHeight.
extrudedHeightReferenceProperty
Get or set a property that specifies the reference point HeightReference for the extrusion height
- Default Value: HeightReference.NONE
fillProperty
Get or set boolean property to specify whether to fill the channel with the provided material.
- Default Value: true
granularityProperty
Get or set the number property, which specifies the sampling distance between each latitude and longitude point.
- Default Value: {CesiumMath.RADIANS_PER_DEGREE}
heightProperty
Get or set the number property to specify the height of the channel.
- Default Value: 0.0
heightReferenceProperty
Get or set the HeightReference property.
- Default Value: HeightReference.NONE
materialMaterialProperty
Get or set the MaterialProperty property to specify the material used to fill the channel.
- Default Value: Color.WHITE
outlineProperty
Gets or sets Boolean properties to specify whether to display channel contours.
- 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 a Cartesian3 array that specifies the three-dimensional path of a channel.
shadowsProperty
Gets or sets enumeration properties to specify whether a channel casts or receives shadows from each light source.
- Default Value: ShadowMode.DISABLED
showProperty
Get the visibility of the set channel, of type boolean.
- Default Value: true
widthProperty
Get or set the number property to specify the width of the channel.
zIndexConstantProperty
Get or set the number property, which specifies the zIndex of the channel, and zIndex specifies the order of the channel in the z-direction. This property only has an effect if the channel is static and the CorridorGraphics # height and CorridorGraphics # extradedHeight properties are not specified.
- Default Value: 0
Methods
-
clone(result){CorridorGraphics}
-
Copy instance
Name Type Description resultCorridorGraphics optional The object that stores the copied results
Returns:
Type Description CorridorGraphics 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 sourceCorridorGraphics An object that provides attribute values.