public class ARMapElement extends AREffectElement
限定符和类型 | 类和说明 |
---|---|
static class |
ARMapElement.ActionType
手势操作类型
|
static class |
ARMapElement.ARMapShapeType
AR地图矢量类型
|
static interface |
ARMapElement.MapRefreshListener
底图刷新监听
|
static interface |
ARMapElement.OnMapClickListener
地图点击监听,用于监听路径分析中的起点和终点
|
static interface |
ARMapElement.OnMapUpdateListener
地图更新监听
|
AREffectElement.OnRenderableLoadCompleteListener, AREffectElement.OnTapListener, AREffectElement.OnTouchListener, AREffectElement.PositionType, AREffectElement.VisualizerType
构造器和说明 |
---|
ARMapElement(android.content.Context context)
构造函数
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
checkPoint(Point point,
boolean change)
判断点是否超范围
|
ARMapElement.ActionType |
getActionType()
获取手势操作类型
|
float[] |
getARAbsoluteScale()
获取map控件在AR中的绝对的大小比例,
即是该元素节点的world scale
|
Point3D |
getARFromMap(Point point)
将MapView坐标换算为AR中相对父节点的相对坐标
|
AREffectElement |
getArMapParent()
获取AR地图的父元素
|
ARViewElement |
getArMapSelf()
获取ARView
|
ARMapElement.ARMapShapeType |
getArMapShapeType()
获取AR地图的形状类型
|
AREffectElement |
getArObjParent()
获取AR地图上对应的AR对象的需要绑定的父元素
AR地图上对应的子对象需绑定在该父元素上
|
float |
getARScaleRatio()
获取Map比例与AR场景比例的比值
|
java.util.List<Point3D> |
getArViewVertice()
获取ARView的顶点集
注:首尾相连共计五个点
|
Point |
getMapFromAR(Point3D point)
将AR坐标换算为MapView中的像素坐标,返回值可为null
|
float[] |
getScaleFactor()
获取对象在ar世界中的比例
|
boolean |
isRealMode()
判断是否是真实模式(1比1地图)
|
void |
loadModel(MapView source)
资源加载
|
void |
setActionType(ARMapElement.ActionType type)
设置手势操作类型
|
void |
setArMapShapeType(ARMapElement.ARMapShapeType arMapShapeType)
设置AR地图的形状类型
|
void |
setMapRefreshListener(ARMapElement.MapRefreshListener listener)
设置地图刷新监听
|
void |
setOnMapClickListener(ARMapElement.OnMapClickListener listener)
设置地图点击监听
|
void |
setOnUpdateListener(ARMapElement.OnMapUpdateListener listener)
设置AR地图更新监听
|
void |
setRealMode(boolean realMode)
设置真实模式(是否开启1比1地图)
|
void |
setScaleFactor(float[] scales)
设置对象在ar世界中的比例
|
void |
updateArMap()
更新ArMap
|
addChild, addChilds, addOnTapListener, addOnTouchListener, changeBindNode, clearChildren, createChildElement, destroy, getAllChilds, getAnchorNode, getArEffectView, getChild, getChild, getChild, getChildCount, getContext, getElementName, getElementType, getId, getLocalScaleFactor, getOnRenderableLoadCompleteListener, getParentNode, getPosition, getPositionType, getRelativePosition, getRotationQuaternion, getSelectionColor, getVisualizerType, getWGSCoordinates, isOverlap, isSelected, isShadowCaster, isShadowReceiver, isTransformable, isVisible, removeChild, removeChild, removeChild, removeChild, removeOnTapListener, removeOnTouchListener, select, setElementName, setLocalScaleFactor, setOnRenderableLoadCompleteListener, setParentNode, setParentNode, setParentNode, setPosition, setPosition, setRelativePosition, setRelativePosition, setRotateAlwaysToCamera, setRotateToCameraType, setRotationAngle, setRotationAngle, setRotationAngleNoRepeat, setRotationAngleRelative, setRotationQuaternion, setSelectionColor, setShadowCaster, setShadowReceiver, setTransformable, setTransformable, setVisiblity, setVisualizerType, setWGSCoordinates, unSelect
public void setOnUpdateListener(ARMapElement.OnMapUpdateListener listener)
listener
- public void setMapRefreshListener(ARMapElement.MapRefreshListener listener)
listener
- public float getARScaleRatio()
public boolean isRealMode()
public void setRealMode(boolean realMode)
realMode
- public float[] getScaleFactor()
AREffectElement
getScaleFactor
在类中 AREffectElement
public void setScaleFactor(float[] scales)
AREffectElement
setScaleFactor
在类中 AREffectElement
scales
- 含有3个值,分别为xyz的系数public float[] getARAbsoluteScale()
public boolean checkPoint(Point point, boolean change)
point
- change
- 若超范围,是否更新点坐标public Point3D getARFromMap(Point point)
point
- public Point getMapFromAR(Point3D point)
point
- public void loadModel(MapView source)
source
- public void updateArMap()
public AREffectElement getArObjParent()
public AREffectElement getArMapParent()
public ARViewElement getArMapSelf()
public java.util.List<Point3D> getArViewVertice()
public void setActionType(ARMapElement.ActionType type)
type
- public ARMapElement.ActionType getActionType()
public ARMapElement.ARMapShapeType getArMapShapeType()
public void setArMapShapeType(ARMapElement.ARMapShapeType arMapShapeType)
arMapShapeType
- public void setOnMapClickListener(ARMapElement.OnMapClickListener listener)
listener
-