Split Screen Display (multiviewport)

Introduction

Demonstrate multi-screen display and browse three-dimensional scenes.

Operation effect

Figure: Split Screen Display Operation Effect

Location

Android Studio

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

ADT

  • Product package: Product package\SampleCode\SampleCode_ADT\MultiViewport

Data

Storage location

  • Product package: Product package\SampleData\CBD_android

Deployment Location: mobile device internal storage\SampleData\CBD_android

License

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

Library

jar
com.supermap.data.jar, com.supermap.realspace.jar
so
libimb.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
SceneControl getScene(), setSceneControlInitedHandler()
Scene open(), setMultiViewportMode(), getLayers(), setWorkspace(), getTrackingLayer()
Workspace open()
WorkspaceConnectionInfo setServer(), setType()
Environment initialization(), getLicenseStatus()
LicenseStatus isLicenseValid(), isLicenseExsit()
Layer3Ds get()
Layer3D setVisible(), setVisibleInViewport()
Enum Value
WorkspaceType DEFAULT, SXWU, SMWU

Basic steps

  1. Click [horizontal], [vertical], [Three point], [Quarter] and other buttons to view the corresponding split screen effect;
  2. Click the [Exit Split Screen] button to exit the split screen.