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 interface
ARAnimationTranslation2.TranslationUpdateListener
Position 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 void
creatAnimation(ARAnimationParameter parameter)
Create a modelfloat
getSpeed()
Gets speed It is valid to displacement animations only Unit: m/svoid
pause()
Pausing animationvoid
play()
Playing animationvoid
resume()
Restoring animationvoid
setSpeed(float speed)
Sets speed It is valid to displacement animations only Unit: m/svoid
setTranslationUpdateListener(ARAnimationTranslation2.TranslationUpdateListener listener)
Sets the position-update listenervoid
stop()
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:ARAnimation
Playing animation- Overrides:
play
in classARAnimation
-
pause
public void pause()
Description copied from class:ARAnimation
Pausing animation- Overrides:
pause
in classARAnimation
-
resume
public void resume()
Description copied from class:ARAnimation
Restoring animation- Overrides:
resume
in classARAnimation
-
stop
public void stop()
Description copied from class:ARAnimation
Stop- Overrides:
stop
in 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
-
-
-