Hypsometric setting (hypsometricsettingdemo)
Introduction
Demonstrate the layered color expression of the 3D slice cache (OSGB) layer.
Operation effect
Figure: Hypsometric setting Operation Effect |
Location
Android Studio
- Product package: Product package\SampleCode\SampleCode_AndroidStudio\AndroidStudioSampleCode\HypsometricSettingDemo
ADT
- Product package: Product package\SampleCode\SampleCode_ADT\HypsometricSettingDemo
Data
Storage location
- Product package: Product package\SampleData\MaSai
Deployment Location: mobile device internal storageSuperMap\data\MaSai
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(), getLayers(), setWorkspace() |
Workspace | open() |
WorkspaceConnectionInfo | setServer(), setType() |
Environment | initialization(), getLicenseStatus() |
LicenseStatus | isLicenseValid(), isLicenseExsit() |
Layer3Ds | get() |
Layer3DOSGBFile | setHypsometricSetting() |
ColorDictionary | setColor() |
HypsometricSetting | setDisplayMode(), setMinVisibleValue(), setMaxVisibleValue(), setOpacity(), setColorDictionary() |
Enum | Value |
---|---|
WorkspaceType | DEFAULT, SXWU, SMWU |
HypsometricSettingDisplayMode | HypsometricSettingDisplayModeNone, HypsometricSettingDisplayModeFace |
Basic steps
- Running the program, in accordance with the default parameters, realizing the effect of hypsometric setting and being dynamically submerged;
- The transparency can be changed by manually dragging the progress bar;
- The maximum water level can be set;
- The time animation can be set;
- The circulation mode can be changed as circulation or single;
- Playing and stopping.