com.supermap.ar.areffect
类 ARViewElement
- java.lang.Object
-
- com.supermap.ar.areffect.AREffectElement
-
- com.supermap.ar.areffect.ARViewElement
-
- 直接已知子类:
- ARWebViewElement
public class ARViewElement extends AREffectElement
AR特效对象-2D视图 使用ViewRenderable
-
-
嵌套类概要
-
从类继承的嵌套类/接口 com.supermap.ar.areffect.AREffectElement
AREffectElement.OnRenderableLoadCompleteListener, AREffectElement.OnTapListener, AREffectElement.OnTouchListener, AREffectElement.PositionType, AREffectElement.VisualizerType
-
-
构造器概要
构造器 构造器和说明 ARViewElement(android.content.Context context)
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 android.view.View
getView()
获取视图void
loadModel(int resourceId)
加载视图(view的2D模型)void
setHorizontalAlignment(ViewRenderable.HorizontalAlignment horizontalAlignment)
设置水平方向中心点位置,默认centervoid
setVerticalAlignment(ViewRenderable.VerticalAlignment verticalAlignment)
设置垂直方向中心点位置,默认bottom-
从类继承的方法 com.supermap.ar.areffect.AREffectElement
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, getScaleFactor, 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, setScaleFactor, setSelectionColor, setShadowCaster, setShadowReceiver, setTransformable, setTransformable, setVisiblity, setVisualizerType, setWGSCoordinates, unSelect
-
-
-
-
方法详细资料
-
loadModel
public void loadModel(int resourceId)
加载视图(view的2D模型)- 参数:
resourceId
-
-
getView
public android.view.View getView()
获取视图- 返回:
-
setVerticalAlignment
public void setVerticalAlignment(ViewRenderable.VerticalAlignment verticalAlignment)
设置垂直方向中心点位置,默认bottom- 参数:
verticalAlignment
-
-
setHorizontalAlignment
public void setHorizontalAlignment(ViewRenderable.HorizontalAlignment horizontalAlignment)
设置水平方向中心点位置,默认center- 参数:
horizontalAlignment
-
-
-