描述由長度、頂部半徑和底部半徑定義的圓柱體、截短的圓錐體或圓錐體。中心位置和方向由包含的
new CylinderGraphics(options)
Entity
決定。
Parameters:
options
(Object)
Name | Description |
---|---|
options.show
Property
default true
|
指定圓柱體可見性的布爾屬性。 |
options.length
Property
|
指定圓柱體長度的數值屬性。 |
options.topRadius
Property
|
指定圓柱體頂部半徑的數值屬性。 |
options.bottomRadius
Property
|
指定圓柱體底部半徑的數值屬性。 |
options.heightReference
Property
default HeightReference.NONE
|
指定實體位置的高度相對于的屬性。 |
options.fill
Property
default true
|
一個布爾屬性,指定圓柱體是否填充所提供的材質。 |
options.material
MaterialProperty
default Color.WHITE
|
指定用于填充圓柱體的材質的屬性。 |
options.outline
Property
default false
|
一個布爾屬性,用于指定是否概述柱面。 |
options.outlineColor
Property
default Color.BLACK
|
指定大綱的Color 的屬性。
|
options.outlineWidth
Property
default 1.0
|
指定輪廓寬度的數值屬性。 |
options.numberOfVerticalLines
Property
default 16
|
指定沿輪廓周長繪制的垂直線數的數值屬性。 |
options.slices
Property
default 128
|
圓柱體周長周圍的邊數。 |
options.shadows
Property
default ShadowMode.DISABLED
|
指定圓柱體是從每個光源投射還是接收陰影的枚舉屬性。 |
options.distanceDisplayCondition
Property
|
一個屬性,指定此圓柱體將顯示在與相機的距離處。 |
Members
bottomRadius : Property
獲取或設置指定圓柱體底部半徑的數值屬性。
(readonly) definitionChanged : Event
獲取每當屬性或子屬性更改或修改時引發的事件。
distanceDisplayCondition : Property
獲取或設置
DistanceDisplayCondition
屬性,該屬性指定此柱面將顯示在距相機的距離。
fill : Property
獲取或設置用于指定是否用提供的材料填充該圓柱體的布爾屬性。
-
Default Value:
true
heightReference : Property
獲取或設置指定
HeightReference
的屬性。
-
Default Value:
HeightReference.NONE
length : Property
獲取或設置指定圓柱體長度的數值屬性。
material : MaterialProperty
獲取或設置指定用于填充圓柱體的材質的屬性。
-
Default Value:
Color.WHITE
numberOfVerticalLines : Property
獲取或設置指定沿輪廓周長繪制的垂直線數的屬性。
-
Default Value:
16
outline : Property
獲取或設置用于指定是否對該柱面進行輪廓化的布爾屬性。
-
Default Value:
false
outlineColor : Property
獲取或設置指定大綱的
Color
的屬性。
-
Default Value:
Color.BLACK
outlineWidth : Property
獲取或設置指定大綱寬度的數值屬性。
-
Default Value:
1.0
shadows : Property
獲取或設置枚舉屬性,指定圓柱體是從每個光源投射還是接收陰影。
-
Default Value:
ShadowMode.DISABLED
show : Property
獲取或設置用于指定圓柱體可見性的布爾屬性。
-
Default Value:
true
slices : Property
獲取或設置屬性,該屬性指定圓柱體周長周圍的邊數。
-
Default Value:
128
topRadius : Property
獲取或設置指定圓柱體頂部半徑的數值屬性。
Methods
clone(result) → {CylinderGraphics}
復制此實例。
Parameters:
將此對象上的每個未分配屬性分配給所提供源對象上相同屬性的值。