com.supermap.ar.areffect
Class ARAnimationTranslation2
- java.lang.Object
-
- com.supermap.ar.areffect.ARAnimation
-
- com.supermap.ar.areffect.ARAnimationTranslation2
-
public class ARAnimationTranslation2 extends ARAnimation
Displacement animation 2. Supports multi-arcs displacement It is used for models like humans, vehicles. You need to control the displacement speed and orientations of models.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static interfaceARAnimationTranslation2.TranslationUpdateListenerPosition update-
Nested classes/interfaces inherited from class com.supermap.ar.areffect.ARAnimation
ARAnimation.ARAnimatorListener
-
-
Constructor Summary
Constructors Constructor and Description ARAnimationTranslation2(AREffectElement arEffectElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcreatAnimation(ARAnimationParameter parameter)Create a modelfloatgetSpeed()Gets speed It is valid to displacement animations only Unit: m/svoidpause()Pausing animationvoidplay()Playing animationvoidresume()Restoring animationvoidsetSpeed(float speed)Sets speed It is valid to displacement animations only Unit: m/svoidsetTranslationUpdateListener(ARAnimationTranslation2.TranslationUpdateListener listener)Sets the position-update listenervoidstop()Stop-
Methods inherited from class com.supermap.ar.areffect.ARAnimation
getARAnimatorListener, setARAnimatorListener
-
-
-
-
Constructor Detail
-
ARAnimationTranslation2
public ARAnimationTranslation2(AREffectElement arEffectElement)
- Parameters:
arEffectElement-
-
-
Method Detail
-
setTranslationUpdateListener
public void setTranslationUpdateListener(ARAnimationTranslation2.TranslationUpdateListener listener)
Sets the position-update listener- Parameters:
listener-
-
creatAnimation
public void creatAnimation(ARAnimationParameter parameter)
Create a model- Parameters:
parameter-
-
play
public void play()
Description copied from class:ARAnimationPlaying animation- Overrides:
playin classARAnimation
-
pause
public void pause()
Description copied from class:ARAnimationPausing animation- Overrides:
pausein classARAnimation
-
resume
public void resume()
Description copied from class:ARAnimationRestoring animation- Overrides:
resumein classARAnimation
-
stop
public void stop()
Description copied from class:ARAnimationStop- Overrides:
stopin classARAnimation
-
getSpeed
public float getSpeed()
Gets speed It is valid to displacement animations only Unit: m/s- Returns:
-
setSpeed
public void setSpeed(float speed)
Sets speed It is valid to displacement animations only Unit: m/s- Parameters:
speed-
-
-