节点动画
范例简介
示范如何使用节点动画功能,并且在SceneControl中展示出来。
示例数据
产品包解压目录\SampleData\CBD_ios
关键类型/成员
| 控件/类 | 方法 | 属性 |
| SceneControl | initSceneControl: | action3D、scene |
| Scene | open:、pixelToGlobeWith:andPixelToGlobeMode: | workspace、layers |
| Scenes | get: | count |
| Workspace | init、open: | scenes |
| WorkspaceConnectionInfo | init | server、type |
| Environment | getLicenseStatus | |
| LicenseStatus | isLicenseExsit、isLicenseValid | |
| Layer3Ds | getLayerWithIndex:、getLayerWithName:、addLayerWith:Type:ToHead:LayerName: | |
| Layer3D | feature3Ds | |
| GeoModel | init、fromFile:Position: | rotationZ、nodeAnimation |
| GeoStyle3D | init、setLineWidth:、setLineColor:、setAltitudeMode:、setMarkerSize:、setMarkerColor: | altitudeMode |
| Color | initWithR:G:B: | |
| GeoLine3D | initWithPoint3Ds:、setStyle3D: | |
| GeoPlacemark | initWithName:andGeometry: | style3D、geometry |
| Feature3Ds | addGeometry3D: | |
| Feature3D | geometry3D | |
| NodeAnimation | setPlayMode:、setLength:、setEnabled:、setTrack:、setDelegate: | timePosition |
| Point3Ds | initWithPoint3DArray: | |
| TrackingLayer3D | AddGeometry:Tag: | |
| GeoPoint3D | initWithPoint3D:、setStyle3D: |
使用步骤
- 导入许可到沙盒(app)目录:Documents
- 导入示例数据CBD_ios到沙盒(app)目录:Documents/Data
- 重新打开app
- 点击创建路线按钮,然后可以在场景中选择点绘制路线
- 调节时长滑动条控制小车跑完全程的时间
- 选择是否为循环播放模式
- 点击开始按钮即可看到小车开动
范例程序位置
/Library/SDKs/SuperMap/iOS/SampleCode/NodeAnimation
运行效果展示
![]() |
| 图: 运行效果 |
