public class UAVDrawController
extends java.lang.Object
用于点线面的采集
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
UAVDrawController.OnPointUpdateListener
点更新监听
添加点、清除上次添加的点、清除所有点时会执行
|
| 构造器和说明 |
|---|
UAVDrawController(EffectView effectView)
构造函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add_node(float x,
float y,
MotionEvent event)
添加节点
|
boolean |
addPoint(float x,
float y)
添加点
|
void |
cancel()
退出
|
void |
cancelSelect()
取消选中
|
void |
clearDrawResult()
清除绘制结果
|
boolean |
delete_node(float x,
float y,
MotionEvent event)
删除节点
|
boolean |
deleteGeometry(ARGeometry arGeometry)
删除对象
|
void |
deleteSelect()
删除选中
|
void |
delLastPoint()
清除上次添加的点
|
boolean |
edit_node(float x,
float y,
MotionEvent event)
编辑节点
|
ARGeoLine |
getARGeoLine()
获取当前绘制的线
|
ARGeoPoint |
getARGeoPoint()
获取当前绘制的点
|
ARGeoHorizontalRegion |
getARGeoPolygon()
获取当前绘制的多边形对象
|
UAVLayer |
getCurrentEditLayer()
获取当前编辑图层
|
ARGeometry |
getCurrentSelectGeometry()
获取当前选中对象
|
Recordset |
getRecordset()
获取当前选中对象的记录集
|
UAVAction |
getUAVActionType()
获取UAV的操作行为
|
void |
redo() |
void |
select(ARGeometry arGeometry)
选中
|
UAVDrawController |
setLineStyle(ShapeStyle shapeStyle)
设置线样式
|
void |
setOnPointUpdateListener(UAVDrawController.OnPointUpdateListener onPointUpdateListener)
设置点更新监听
|
UAVDrawController |
setPointStyle(ShapeStyle shapeStyle)
设置点样式
|
UAVDrawController |
setPolygonStyle(ShapeStyle shapeStyle)
设置面样式
|
void |
setUAVAction(UAVAction UAVActionType)
设置UAV的操作行为
|
void |
setUAVLayer(UAVLayer currentEditLayer)
设置采集关联的图层
|
void |
submit()
提交当前对象
todo 当前只支持新增
|
public UAVDrawController(EffectView effectView)
effectView - public void setOnPointUpdateListener(UAVDrawController.OnPointUpdateListener onPointUpdateListener)
onPointUpdateListener - 监听器public boolean addPoint(float x,
float y)
x - 屏幕坐标xy - 屏幕坐标y
onTouch事件中,需要返回false。
public void delLastPoint()
public void clearDrawResult()
public ARGeoPoint getARGeoPoint()
public ARGeoLine getARGeoLine()
public ARGeoHorizontalRegion getARGeoPolygon()
public UAVDrawController setPointStyle(ShapeStyle shapeStyle)
shapeStyle - 点样式public UAVDrawController setLineStyle(ShapeStyle shapeStyle)
shapeStyle - 线段样式public UAVDrawController setPolygonStyle(ShapeStyle shapeStyle)
shapeStyle - 面样式,仅绘面对象有效public void setUAVAction(UAVAction UAVActionType)
UAVActionType - 操作行为public void redo()
public UAVLayer getCurrentEditLayer()
public void setUAVLayer(UAVLayer currentEditLayer)
public void submit()
public void cancel()
public boolean edit_node(float x,
float y,
MotionEvent event)
x - y - event - public boolean add_node(float x,
float y,
MotionEvent event)
x - y - event - public boolean delete_node(float x,
float y,
MotionEvent event)
x - y - event - public void select(ARGeometry arGeometry)
arGeometry - public void cancelSelect()
public void deleteSelect()
public ARGeometry getCurrentSelectGeometry()
public boolean deleteGeometry(ARGeometry arGeometry)
arGeometry - public Recordset getRecordset()