跳至主要內容

CylinderGraphic

大约 2 分钟

CylinderGraphic

VE.graphic.CylinderGraphic

圆柱

参数

new VE.graphic.CylinderGraphic(options)

options

参数名称类型描述信息
positionsArray.<VE.Point>位置
styleVE.graphic.CylinderGraphic.StyleOption样式

属性

attr

当前属性

boundingSphere readonly

  • 类型: BoundingSphere

边界

center readonly

中心点

points readonly

实际位置

positions

位置信息

style readonly

方法

addTo (target)

添加到

参数名称类型描述信息
targetMapGroupGraphic

destroy ()

销毁

edit ()

编辑

flyTo ()

飞至

hide ()

隐藏

setOptions (options)

设置属性

参数名称类型描述信息
optionsobject
options.positionVE.Point位置信息
options.positionsArray.<VE.Point>位置信息
options.attrobject属性
options.styleobject样式

show ()

显示

类型定义

VE.graphic.CylinderGraphic.StyleOption

  • 类型: Object
参数名称类型默认值描述信息
lengthnumber圆柱体长度.
topRadiusnumber圆柱体顶部的半径.
bottomRadiusnumber圆柱体底部的半径.
fillbooleantrue是否填充.
materialStringMaterialPropertyColor
colorString#fff颜色
outlineColorString#000轮廓的颜色
outlineWidthnumber1轮廓的宽度
clampToGroundbooleanfalse是否贴地.
下面的不常用
heightReferenceArrayHeightReferenceHeightReference.NONE
下面的基本不用
slicesnumber128圆柱周围的边缘数量.
numberOfVerticalLinesnumber16指定沿轮廓的周长绘制的垂直线的数量.
shadowsStringShadowModeShadowMode.DISABLED
distanceDisplayConditionArrayDistanceDisplayCondition
上次编辑于:
贡献者: dashun