com.supermap.ar.areffect
Class ARVideoElement2
- java.lang.Object
-
- com.supermap.ar.areffect.AREffectElement
-
- com.supermap.ar.areffect.ARVideoElement2
-
public class ARVideoElement2 extends AREffectElement
author : linwenhao date : 2022/4/8 10:37 desc : version: 1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.supermap.ar.areffect.AREffectElement
AREffectElement.onRenderableLoadCompleteListener, AREffectElement.OnTapListener, AREffectElement.OnTouchListener, AREffectElement.PositionType
-
-
Constructor Summary
Constructors Constructor and Description ARVideoElement2(android.content.Context context)
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
loadModel(int resourceId)
void
setChromaKeyColor(Color color)
must call beforeloadModel(int)
void
setLoop(boolean loop)
must call beforeloadModel(int)
void
setShadowCaster(boolean shadowCaster)
must call beforeloadModel(int)
void
setShadowReceiver(boolean shadowReceiver)
must call beforeloadModel(int)
void
setVideoAlignment(VideoNode.VideoAlignment alignment)
Setting alignment,must call beforeloadModel(int)
void
start()
-
Methods inherited from class com.supermap.ar.areffect.AREffectElement
addChild, addChilds, addOnTapListener, addOnTouchListener, clearAllChilds, destroy, getAllChilds, getChild, getChild, getChild, getChildCount, getElementType, getId, getLocalScaleFactor, getOnRenderableLoadCompleteListener, getPosition, getPositionType, getRelativePosition, getRotationAngle, getRotationAxis, getScaleFactor, getWGSCoordinates, isShadowCaster, isShadowReceiver, isTransformable, isVisible, removeChild, removeChild, removeChild, removeChild, removeOnTapListener, removeOnTouchListener, setElementName, setLocalScaleFactor, setOnRenderableLoadCompleteListener, setParentNode, setParentNode, setParentNode, setPosition, setRelativePosition, setRelativePosition, setRotateAlwaysToCamera, setRotateToCameraType, setRotationAngle, setScaleFactor, setTransformable, setVisiblity, setWGSCoordinates
-
-
-
-
Constructor Detail
-
ARVideoElement2
public ARVideoElement2(android.content.Context context)
constructor- Parameters:
context
-
-
-
Method Detail
-
loadModel
public void loadModel(int resourceId)
-
setLoop
public void setLoop(boolean loop)
must call beforeloadModel(int)
- Parameters:
loop
-
-
start
public void start()
-
setChromaKeyColor
public void setChromaKeyColor(Color color)
must call beforeloadModel(int)
- Parameters:
color
-
-
setShadowCaster
public void setShadowCaster(boolean shadowCaster)
must call beforeloadModel(int)
- Overrides:
setShadowCaster
in classAREffectElement
- Parameters:
shadowCaster
-
-
setShadowReceiver
public void setShadowReceiver(boolean shadowReceiver)
must call beforeloadModel(int)
- Overrides:
setShadowReceiver
in classAREffectElement
- Parameters:
shadowReceiver
-
-
setVideoAlignment
public void setVideoAlignment(VideoNode.VideoAlignment alignment)
Setting alignment,must call beforeloadModel(int)
- Parameters:
alignment
-
-
-