Extends
Methods
# addTo(layer) → {Graphic}
将实体加入图层
Parameters:
| Name | Type | Description |
|---|---|---|
layer |
Layer
|
图层 |
- Overrides:
- See:
this - 当前实体对象
# getPointAtParameter(t) → {Cesium.Cartesian3}
在曲线上获取指定参数t处的点
Parameters:
| Name | Type | Description |
|---|---|---|
t |
number
|
参数值 (0-1) |
Cesium.Cartesian3
# setCurveType(type) → {BezierCurve}
设置曲线类型
Parameters:
| Name | Type | Description |
|---|---|---|
type |
string
|
'linear' | 'quadratic' | 'cubic' | 'auto' | 'spline' |
# setLabel(text, textStyle) → {BezierCurve}
设置标签(贝塞尔曲线通常不需要标签,但保持接口一致性)
Parameters:
| Name | Type | Description |
|---|---|---|
text |
string
|
|
textStyle |
Object
|
# setResolution(resolution) → {BezierCurve}
设置分辨率
Parameters:
| Name | Type | Description |
|---|---|---|
resolution |
number
|
# setShowControlPoints(show) → {BezierCurve}
显示/隐藏控制点
Parameters:
| Name | Type | Description |
|---|---|---|
show |
boolean
|