Skip to content

KBE3D / KBCore / Cesium / BoxGraphics

类: BoxGraphics

Describes a box. The center position and orientation are determined by the containing Entity.

参数

Object describing initialization options

属性

definitionChanged

readonly definitionChanged: 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 box.


dimensions

dimensions: Property | undefined

Gets or sets Cartesian3 Property property specifying the length, width, and height of the box.


heightReference

heightReference: Property | undefined

Gets or sets the Property specifying the HeightReference.


fill

fill: Property | undefined

Gets or sets the boolean Property specifying whether the box is filled with the provided material.


material

material: MaterialProperty | undefined

Gets or sets the material used to fill the box.


outline

outline: Property | undefined

Gets or sets the Property specifying whether the box is outlined.


outlineColor

outlineColor: Property | undefined

Gets or sets the Property specifying the Color of the outline.


outlineWidth

outlineWidth: Property | undefined

Gets or sets the numeric Property specifying the width of the outline. <p> Note: This property will be ignored on all major browsers on Windows platforms. For details, see (@link https://github.com/CesiumGS/cesium/issues/40\

}. </p>


shadows

shadows: Property | undefined

Get or sets the enum Property specifying whether the box 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 box will be displayed.

方法

clone()

clone(result?: BoxGraphics): BoxGraphics

Duplicates this instance.

参数

result?

BoxGraphics

The object onto which to store the result.

返回

BoxGraphics

The modified result parameter or a new instance if one was not provided.


merge()

merge(source: BoxGraphics): void

Assigns each unassigned property on this object to the value of the same property on the provided source object.

参数

source

BoxGraphics

The object to be merged into this object.

返回

void

构造函数

构造函数

new BoxGraphics(options?: ConstructorOptions): BoxGraphics

参数

options?

ConstructorOptions

返回

BoxGraphics

KBE3D @3.0.0 Copyright © 2024-present KBE3D