EllipseGraphic
大约 2 分钟
EllipseGraphic
VE.graphic.EllipseGraphic
椭圆
参数
new VE.graphic.EllipseGraphic(options)
options
参数名称 | 类型 | 描述信息 |
---|---|---|
positions | Array.<VE.Point> | 位置 |
style | VE.graphic.EllipseGraphic.StyleOption | 样式 |
属性
attr
当前属性
readonly
boundingSphere- 类型: BoundingSphere
边界
readonly
center- 类型: VE.Point
中心点
readonly
points- 类型: Array.<VE.Point>
实际位置
positions
- 类型: Array.<VE.Point>
位置信息
readonly
style方法
addTo (target)
添加到
参数名称 | 类型 | 描述信息 |
---|---|---|
target | Map | GroupGraphic |
destroy ()
销毁
edit ()
编辑
flyTo ()
飞至
hide ()
隐藏
setOptions (options)
设置属性
参数名称 | 类型 | 描述信息 |
---|---|---|
options | object | |
options.position | VE.Point | 位置信息 |
options.positions | Array.<VE.Point> | 位置信息 |
options.attr | object | 属性 |
options.style | object | 样式 |
- 返回值:
BaseGraphic
show ()
显示
类型定义
VE.graphic.EllipseGraphic.StyleOption
- 类型: Object
参数名称 | 类型 | 默认值 | 描述信息 |
---|---|---|---|
semiMajorAxis | number | 半长轴长度 | |
semiMinorAxis | number | 半短轴长度 | |
height | number | 0 | 椭圆相对于椭球面的高度. |
extrudedHeight | number | 0 | 椭圆的凸出面相对于椭球面的高度. |
material | String | MaterialProperty | #fff |
color | String | #fff | 颜色 |
outlineColor | String | #000 | 轮廓的颜色 |
outlineWidth | number | 1 | 轮廓的宽度 |
rotation | number | 0 | 椭圆从北方逆时针旋转 |
clampToGround | boolean | false | 是否贴地和3dtiles. |
clampToTerrain | boolean | false | 是否贴地形. |
下面的不常用 | |||
zIndex | number | 0 | 层级顺序,指定用于排序地面几何的zIndex。只有当'clampToGround'为true且支持地形上的折线时才会有效果. |
heightReference | Array | HeightReference | HeightReference.NONE |
extrudedHeightReference | Array | HeightReference | HeightReference.NONE |
numberOfVerticalLines | number | 16 | 指定沿轮廓的周长绘制的垂直线的数量. |
下面的基本不用 | |||
granularity | number | Cesium.Math.RADIANS_PER_DEGREE | 指定每个纬度和经度点之间的角距离. |
stRotation | number | 0 | 用于指定椭圆纹理从北方逆时针旋转. |
granularity | number | Cesium.Math.RADIANS_PER_DEGREE | 如果arcType不是arcType.none,则指定每个纬度和经度之间的角距离的数字属性. |
shadows | String | ShadowMode | ShadowMode.DISABLED |
distanceDisplayCondition | Array | DistanceDisplayCondition | |
classificationType | String | ClassificationType | ClassificationType.BOTH |