Real time updates of 3D features
user30192
Global Mapper User
Can the GlobalMapper SDK be used to display and dynamically update a small set of moving features (every 1-5 seconds)?
Example: Show multiple moving targets and their 3D track-lines.
The geometry of each object may change, so the geometry needs to be re-drawn each time (1-5 second updates), at their new coordinates.
Example: Show multiple moving targets and their 3D track-lines.
The geometry of each object may change, so the geometry needs to be re-drawn each time (1-5 second updates), at their new coordinates.
Comments
-
Yes, you can certainly do that with the SDK. You could just use the GM_CreateCustomVectorLayer function to create a layer to put the dynamic features in. Then use the GM_AddLineToVectorLayer and GM_AddPointToVectorLayer functions to add the features to that layer. To dynamically update the position, simply call GM_SetPointFeaturePosition or GM_SetLineFeaturePointList and then redraw.
If you have background maps you'll likely want to draw those to a background bitmap with GM_DrawLayerList and just BitBlt those at the start of a draw, then use GM_DrawLayerList again to draw the dynamic layers on top. That way you only need to redraw the background bitmap when you zoom or pan and not everytime you need to redraw the stuff on top.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website