com.supermap.ar.areffect
类 ARGltfElement
- java.lang.Object
-
- com.supermap.ar.areffect.AREffectElement
-
- com.supermap.ar.areffect.ARGltfElement
-
public class ARGltfElement extends AREffectElement
AR特效对象-Gltf模型
-
-
嵌套类概要
-
从类继承的嵌套类/接口 com.supermap.ar.areffect.AREffectElement
AREffectElement.OnRenderableLoadCompleteListener, AREffectElement.OnTapListener, AREffectElement.OnTouchListener, AREffectElement.PositionType, AREffectElement.VisualizerType
-
-
构造器概要
构造器 构造器和说明 ARGltfElement(android.content.Context context)
构造函数
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 Gltf
getGltfModel()
获取GLTF实例 仅在setGltfModel(Gltf)
设置后生效。Renderable
getRenderable()
获取渲染对象boolean
isShadowCaster()
是否能够产生阴影boolean
isShadowReceiver()
是否能够接受阴影void
loadModel(Gltf gltf)
加载模型 由Gltf
构建的实例void
loadModel(ModelRenderable renderable)
加载模型void
loadModel(java.lang.String resourceUri)
加载模型 手机本地文件路径或在线地址void
reLoadModel()
重新加载模型void
setGltfModel(Gltf gltfModel)
设置GLTF实例void
setShadowCaster(boolean flag)
设置是否能在场景中产生阴影void
setShadowReceiver(boolean flag)
设置是否能渲染其他元素投射在本实例上的阴影-
从类继承的方法 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, 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, setTransformable, setTransformable, setVisiblity, setVisualizerType, setWGSCoordinates, unSelect
-
-
-
-
方法详细资料
-
getRenderable
public Renderable getRenderable()
从类复制的说明:AREffectElement
获取渲染对象- 返回:
-
loadModel
public void loadModel(java.lang.String resourceUri)
加载模型手机本地文件路径或在线地址
- 参数:
resourceUri
- 资源路径
-
loadModel
public void loadModel(ModelRenderable renderable)
从类复制的说明:AREffectElement
加载模型
-
reLoadModel
public void reLoadModel()
重新加载模型
-
getGltfModel
public Gltf getGltfModel()
获取GLTF实例仅在
setGltfModel(Gltf)
设置后生效。- 返回:
-
setGltfModel
public void setGltfModel(Gltf gltfModel)
设置GLTF实例- 参数:
gltfModel
-
-
setShadowCaster
public void setShadowCaster(boolean flag)
设置是否能在场景中产生阴影- 覆盖:
setShadowCaster
在类中AREffectElement
- 参数:
flag
-
-
setShadowReceiver
public void setShadowReceiver(boolean flag)
设置是否能渲染其他元素投射在本实例上的阴影- 覆盖:
setShadowReceiver
在类中AREffectElement
- 参数:
flag
-
-
isShadowCaster
public boolean isShadowCaster()
是否能够产生阴影- 覆盖:
isShadowCaster
在类中AREffectElement
- 返回:
-
isShadowReceiver
public boolean isShadowReceiver()
是否能够接受阴影- 覆盖:
isShadowReceiver
在类中AREffectElement
- 返回:
-
-