Situation Evolution (plotanimation)

Introduction

Demonstrate reading XML, JSON format posture deduction animation file and play/pause/reset/stop the animation file.

Operation effect

Figure: Situation Evolution Operation Effect

Location

Android Studio

  • Product package: Product package\SampleCode\SampleCode_AndroidStudio\AndroidStudioSampleCode\plotanimation

Data

Storage location

  • Product package: Product package\SampleData\Fujian

Deployment Location: mobile device internal storage\SampleData\Fujian

License

Offline license, copy the license file to the "mobile device internal storage\SuperMap\License" folder.

Library

jar
com.supermap.data.jar, com.supermap.mapping.jar, com.supermap.plot.jar
so
libimb2d.so, libgnustl_shared.so, libQt5Core.so, libQt5Gui.so, libQt5Svg.so, libQt5Widgets.so(Note: Starting from version 11.1, the last five so libraries need to be added.)

Key types/members

Control/Class Method
AnimationManager pause(), getAnimationFromXML(), excute(), play(), stop(), pause(), reset(), addAnimationGroup()
MapControl setAnimations()

Basic steps

  1. Click the button in the upper left corner and select "Read Animation";
  2. Click the [Read xml] or [Read JSON] button to read the animation file first;
  3. After the file is read, click the [Play] button to play the animation;
  4. Control the animation playback through [Play], [Pause], [Reset], [Stop].