geovisearth / Exports / EditorPolyline
# Class: EditorPolyline
线
# Hierarchy
HeightReferencePrimtive
↳
EditorPolyline
# Table of contents
# Properties
# Accessors
# Methods
- anchoring
- deleteCtlPoint
- deleteLastPoint
- getBoundingRectangle
- getCenter
- getCtlPositions
- getPerspective
- isCtlNumValid
- ishaveMaxCtls
- moveHeight
- movePosition
- rotateByHeading
- rotateByPitch
- rotateByRoll
- scale
- scaleX
- scaleY
- scaleZ
- setCtrlPosition
# Properties
# highLighted
• highLighted: any
@private是否高亮
# Inherited from
HeightReferencePrimtive.highLighted
# Defined in
PlottingTool/Graph.ts:129
# isChanged
• isChanged: boolean
= false
脏标记
# Inherited from
HeightReferencePrimtive.isChanged
# Defined in
PlottingTool/Graph.ts:45
# properties
• properties: any
[] = []
属性
# Inherited from
HeightReferencePrimtive.properties
# Defined in
PlottingTool/Graph.ts:136
# support2D
• support2D: boolean
= true
是否支持2维模式
# Inherited from
HeightReferencePrimtive.support2D
# Defined in
PlottingTool/Graph.ts:109
# Accessors
# ctrlPosition
• get
ctrlPosition(): GvolPoint
[]
控制点
# Returns
# Inherited from
HeightReferencePrimtive.ctrlPosition
# Defined in
PlottingTool/Graph.ts:355
# earth
• get
earth(): any
返回该对象的所属earth实例
# Returns
any
# Inherited from
HeightReferencePrimtive.earth
# Defined in
PlottingTool/Graph.ts:1530
# Methods
# anchoring
▸ Optional
anchoring(): any
锚定
# Returns
any
# Inherited from
HeightReferencePrimtive.anchoring
# Defined in
PlottingTool/Graph.ts:1486
# deleteCtlPoint
▸ deleteCtlPoint(index
): void
删除控制点
# Parameters
Name | Type |
---|---|
index | any |
# Returns
void
# Inherited from
HeightReferencePrimtive.deleteCtlPoint
# Defined in
PlottingTool/Graph.ts:1166
# deleteLastPoint
▸ deleteLastPoint(): void
删除最后一个控制点
# Returns
void
# Inherited from
HeightReferencePrimtive.deleteLastPoint
# Defined in
PlottingTool/Graph.ts:1154
# getBoundingRectangle
▸ getBoundingRectangle(): Rectangle
获取 最小 Rectangle
# Returns
Rectangle
# Inherited from
HeightReferencePrimtive.getBoundingRectangle
# Defined in
PlottingTool/Graph.ts:1503
# getCenter
▸ getCenter(): Cartesian3
获取中心点
# Returns
Cartesian3
# Inherited from
HeightReferencePrimtive.getCenter
# Defined in
PlottingTool/Graph.ts:1492
# getCtlPositions
▸ getCtlPositions(): Cartesian3
[]
返回当前graph的所有控制点坐标(cartesian3)
# Returns
Cartesian3
[]
# Inherited from
HeightReferencePrimtive.getCtlPositions
# Defined in
PlottingTool/Graph.ts:697
# getPerspective
▸ getPerspective(): void
视角获取
# Returns
void
# Inherited from
HeightReferencePrimtive.getPerspective
# Defined in
PlottingTool/Graph.ts:1537
# isCtlNumValid
▸ isCtlNumValid(): boolean
返回当前ctl数量是否可以绘制图形 无限max点的图形比较min值,比如,polygon至少需要3个点,polyline至少需要2个点... 对于限定ctl数量的图形,ctlnum >= max 返回true
# Returns
boolean
# Inherited from
HeightReferencePrimtive.isCtlNumValid
# Defined in
PlottingTool/Graph.ts:998
# ishaveMaxCtls
▸ ishaveMaxCtls(): boolean
对于maxPointNum为指定值的图形,返回是否已达到最大ctl数量 比如rectange只需要2个点即可结束绘制
# Returns
boolean
# Inherited from
HeightReferencePrimtive.ishaveMaxCtls
# Defined in
PlottingTool/Graph.ts:944
# moveHeight
▸ moveHeight(start
, end
): void
垂直移动
# Parameters
Name | Type |
---|---|
start | Cartesian2 |
end | Cartesian2 |
# Returns
void
# Inherited from
HeightReferencePrimtive.moveHeight
# Defined in
PlottingTool/Graph.ts:1370
# movePosition
▸ movePosition(start
, end
): void
水平移动
# Parameters
Name | Type |
---|---|
start | Cartesian2 |
end | Cartesian2 |
# Returns
void
# Inherited from
HeightReferencePrimtive.movePosition
# Defined in
PlottingTool/Graph.ts:1263
# rotateByHeading
▸ Optional
rotateByHeading(start
, end
): any
根据屏幕移动修改heading
# Parameters
Name | Type |
---|---|
start | Cartesian2 |
end | Cartesian2 |
# Returns
any
# Inherited from
HeightReferencePrimtive.rotateByHeading
# Defined in
PlottingTool/Graph.ts:1187
# rotateByPitch
▸ Optional
rotateByPitch(start
, end
): any
根据屏幕移动修改Pich
# Parameters
Name | Type |
---|---|
start | Cartesian2 |
end | Cartesian2 |
# Returns
any
# Inherited from
HeightReferencePrimtive.rotateByPitch
# Defined in
PlottingTool/Graph.ts:1201
# rotateByRoll
▸ Optional
rotateByRoll(start
, end
): any
根据屏幕移动修改Roll
# Parameters
Name | Type |
---|---|
start | Cartesian2 |
end | Cartesian2 |
# Returns
any
# Inherited from
HeightReferencePrimtive.rotateByRoll
# Defined in
PlottingTool/Graph.ts:1212
# scale
▸ Optional
scale(start
, end
): any
放大缩小
# Parameters
Name | Type |
---|---|
start | Cartesian2 |
end | Cartesian2 |
# Returns
any
# Inherited from
HeightReferencePrimtive.scale
# Defined in
PlottingTool/Graph.ts:1253
# scaleX
▸ Optional
scaleX(start
, end
): any
宽度缩放
# Parameters
Name | Type |
---|---|
start | Cartesian2 |
end | Cartesian2 |
# Returns
any
# Inherited from
HeightReferencePrimtive.scaleX
# Defined in
PlottingTool/Graph.ts:1233
# scaleY
▸ Optional
scaleY(start
, end
): any
长度缩放
# Parameters
Name | Type |
---|---|
start | Cartesian2 |
end | Cartesian2 |
# Returns
any
# Inherited from
HeightReferencePrimtive.scaleY
# Defined in
PlottingTool/Graph.ts:1241
# scaleZ
▸ Optional
scaleZ(start
, end
): any
高度放大,如圆锥调整height值
# Parameters
Name | Type |
---|---|
start | Cartesian2 |
end | Cartesian2 |
# Returns
any
# Inherited from
HeightReferencePrimtive.scaleZ
# Defined in
PlottingTool/Graph.ts:1223
# setCtrlPosition
▸ setCtrlPosition(index
, ctrls
): void
设置控制点
# Parameters
Name | Type | Description |
---|---|---|
index | number | 序号 |
ctrls | any | 控制点 |
# Returns
void
# Inherited from
HeightReferencePrimtive.setCtrlPosition
# Defined in
PlottingTool/Graph.ts:710