geovisearth / Exports / EditorPoint
# Class: EditorPoint
点
# Hierarchy
HeightReferenceGraph
↳
EditorPoint
# Table of contents
# Properties
# Accessors
# Methods
- addCtlPoint
- anchoring
- deleteCtlPoint
- deleteLastPoint
- getBoundingRectangle
- getCenter
- getCtlPositions
- getPerspective
- isCtlNumValid
- ishaveMaxCtls
- moveHeight
- movePosition
- rotateByHeading
- rotateByPitch
- rotateByRoll
- scaleX
- scaleY
- scaleZ
- setCtrlPosition
# Properties
# highLighted
• highLighted: any
@private是否高亮
# Inherited from
HeightReferenceGraph.highLighted
# Defined in
PlottingTool/Graph.ts:129
# isChanged
• isChanged: boolean
= false
脏标记
# Inherited from
HeightReferenceGraph.isChanged
# Defined in
PlottingTool/Graph.ts:45
# properties
• properties: any
[] = []
属性
# Inherited from
HeightReferenceGraph.properties
# Defined in
PlottingTool/Graph.ts:136
# scaleProperty
• scaleProperty: string
[]
放大缩小
Param
Param
# Overrides
HeightReferenceGraph.scaleProperty
# Defined in
PlottingTool/Point/EditorPoint.ts:132
# support2D
• support2D: boolean
= true
是否支持2维模式
# Inherited from
HeightReferenceGraph.support2D
# Defined in
PlottingTool/Graph.ts:109
# Accessors
# ctrlPosition
• get
ctrlPosition(): GvolPoint
[]
控制点
# Returns
# Inherited from
HeightReferenceGraph.ctrlPosition
# Defined in
PlottingTool/Graph.ts:355
# earth
• get
earth(): any
返回该对象的所属earth实例
# Returns
any
# Inherited from
HeightReferenceGraph.earth
# Defined in
PlottingTool/Graph.ts:1530
# Methods
# addCtlPoint
▸ addCtlPoint(pos
, index?
): void
增加控制点
# Parameters
Name | Type | Default value | Description |
---|---|---|---|
pos | any | undefined | 经纬度位置点 |
index | number | undefined | 插入位置 |
# Returns
void
# Inherited from
HeightReferenceGraph.addCtlPoint
# Defined in
PlottingTool/Graph.ts:886
# anchoring
▸ Optional
anchoring(): any
锚定
# Returns
any
# Inherited from
HeightReferenceGraph.anchoring
# Defined in
PlottingTool/Graph.ts:1486
# deleteCtlPoint
▸ deleteCtlPoint(index
): void
删除控制点
# Parameters
Name | Type |
---|---|
index | any |
# Returns
void
# Inherited from
HeightReferenceGraph.deleteCtlPoint
# Defined in
PlottingTool/Graph.ts:1166
# deleteLastPoint
▸ deleteLastPoint(): void
删除最后一个控制点
# Returns
void
# Inherited from
HeightReferenceGraph.deleteLastPoint
# Defined in
PlottingTool/Graph.ts:1154
# getBoundingRectangle
▸ getBoundingRectangle(): Rectangle
获取 最小 Rectangle
# Returns
Rectangle
# Inherited from
HeightReferenceGraph.getBoundingRectangle
# Defined in
PlottingTool/Graph.ts:1503
# getCenter
▸ getCenter(): Cartesian3
获取中心点
# Returns
Cartesian3
# Inherited from
HeightReferenceGraph.getCenter
# Defined in
PlottingTool/Graph.ts:1492
# getCtlPositions
▸ getCtlPositions(): Cartesian3
[]
返回当前graph的所有控制点坐标(cartesian3)
# Returns
Cartesian3
[]
# Inherited from
HeightReferenceGraph.getCtlPositions
# Defined in
PlottingTool/Graph.ts:697
# getPerspective
▸ getPerspective(): void
视角获取
# Returns
void
# Inherited from
HeightReferenceGraph.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
HeightReferenceGraph.isCtlNumValid
# Defined in
PlottingTool/Graph.ts:998
# ishaveMaxCtls
▸ ishaveMaxCtls(): boolean
对于maxPointNum为指定值的图形,返回是否已达到最大ctl数量 比如rectange只需要2个点即可结束绘制
# Returns
boolean
# Inherited from
HeightReferenceGraph.ishaveMaxCtls
# Defined in
PlottingTool/Graph.ts:944
# moveHeight
▸ moveHeight(start
, end
): void
垂直移动
# Parameters
Name | Type |
---|---|
start | Cartesian2 |
end | Cartesian2 |
# Returns
void
# Inherited from
HeightReferenceGraph.moveHeight
# Defined in
PlottingTool/Graph.ts:1370
# movePosition
▸ movePosition(start
, end
): void
水平移动
# Parameters
Name | Type |
---|---|
start | Cartesian2 |
end | Cartesian2 |
# Returns
void
# Inherited from
HeightReferenceGraph.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
HeightReferenceGraph.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
HeightReferenceGraph.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
HeightReferenceGraph.rotateByRoll
# Defined in
PlottingTool/Graph.ts:1212
# scaleX
▸ Optional
scaleX(start
, end
): any
宽度缩放
# Parameters
Name | Type |
---|---|
start | Cartesian2 |
end | Cartesian2 |
# Returns
any
# Inherited from
HeightReferenceGraph.scaleX
# Defined in
PlottingTool/Graph.ts:1233
# scaleY
▸ Optional
scaleY(start
, end
): any
长度缩放
# Parameters
Name | Type |
---|---|
start | Cartesian2 |
end | Cartesian2 |
# Returns
any
# Inherited from
HeightReferenceGraph.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
HeightReferenceGraph.scaleZ
# Defined in
PlottingTool/Graph.ts:1223
# setCtrlPosition
▸ setCtrlPosition(index
, ctrls
): void
设置控制点
# Parameters
Name | Type | Description |
---|---|---|
index | number | 序号 |
ctrls | any | 控制点 |
# Returns
void
# Inherited from
HeightReferenceGraph.setCtrlPosition
# Defined in
PlottingTool/Graph.ts:710