public class UAVMeasureController
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
UAVMeasureController.AreaType
面积单位
|
static class |
UAVMeasureController.DecimalType
保留小数点
|
static class |
UAVMeasureController.LengthType
长度单位
|
static interface |
UAVMeasureController.OnCalloutUpdateListener
标注更新监听
标注更新时会回调
|
| 构造器和说明 |
|---|
UAVMeasureController(EffectView effectView)
构造函数
|
UAVMeasureController(EffectView effectView,
int resourceId)
构造函数
|
public UAVMeasureController(EffectView effectView)
effectView - public UAVMeasureController(EffectView effectView, int resourceId)
effectView - 特效视图resourceId - TextView资源id
TextView的示例如下:
public UAVMeasureController setMeasureCallOut(int resourceId)
resourceId - TextView的资源idpublic void setCalloutUpdateListener(UAVMeasureController.OnCalloutUpdateListener onCalloutUpdateListener)
onCalloutUpdateListener - public float getCallOutScale()
public void setCallOutScale(float callOutScale)
callOutScale - public boolean addPoint(float x,
float y)
x - 屏幕坐标Xy - 屏幕坐标Y
onTouch事件中需要返回false
public void clearMeasureResult()
public UAVMeasureController setPointStyle(ShapeStyle shapeStyle)
shapeStyle - 点样式public UAVMeasureController setLineStyle(ShapeStyle shapeStyle)
shapeStyle - 线段样式public UAVMeasureController setPolygonStyle(ShapeStyle shapeStyle)
shapeStyle - 面样式,仅对面积测量中的所绘对象有效public boolean isVertical()
public void setVertical(boolean vertical)
标注是否垂直于水平面
vertical - public void setUAVAction(UAVAction UAVActionType)
UAVActionType - 量测行为public ShapeStyle getMeasureLineStyle()
public void setMeasureLineStyle(ShapeStyle style)
style - public ShapeStyle getMeasurePolygonStyle()
public void setMeasurePolygonStyle(ShapeStyle style)
style - public void updateCallOut()
public void updateCallOutDecimal()
public UAVMeasureController.LengthType getLengthType()
public void setLengthType(UAVMeasureController.LengthType lengthType)
public UAVMeasureController.AreaType getAreaType()
public void setAreaType(UAVMeasureController.AreaType areaType)
public UAVMeasureController.DecimalType getDecimalType()
public void setDecimalType(UAVMeasureController.DecimalType decimalType)