Global Mapper v25.0

Real time updates of 3D features

user30192
user30192 Global Mapper User
edited August 2009 in Technical Support
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.

Comments

  • global_mapper
    global_mapper Administrator
    edited August 2009
    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