Dynamic heads up display (HUD)


PurposeThis sample demonstrates a combination of Dynamic Display API drawing as well as pure OpenGL drawings in the same tool. The sample shows up the map's azimuth as a HUD (heads up display) which updates automatically when the map rotates.
Please note that while you are rotating the map, the numbers showing in the HUD are
different than the number reported by the rotation tool. The reason for that is that the reported map rotation is the mathematical angle while the HUD shows the angle from the north (the map's azimuth).

Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcView
ArcEditor
ArcInfo

Additional Requirements
  • This sample uses third party wrapper classes only available in C# so there is no VB.NET version.

How to use

See Using the samples for help on compiling, setting up the debugger, and running the sample (either an exe or dll).

  1. Open the solution using Visual Studio 2005.
  2. Build the solution to make the 'DynamicDisplayHUD' class library.
  3. You will need to use this command in an application with a MapControl and a ToolbarControl.
  4. Add both commands to the ToolbarControl. The commands can be found in the '.NET Samples' category with the names 'Dynamic HUD' and 'Toggle dynamic mode'.
  5. Run the application and add and click the 'Toggle dynamic mode' command in order to switch into dynamic mode. Then click 'Dynamic HUD' in order to add the HUD to the map.
  6. Use the rotation tool in order to rotate the map and notice as the HUD changes while the map rotates.

DynamicDisplayHUD/DDHUDCmd.cs Implementation file for the Dynamic Display HUD class
DynamicDisplayHUD/ToggleDynamicModeCmd.cs Command which allow the user to switch on and off dynamic mode
DynamicDisplayHUD/OpenGL_GL_v4.cs Wrapper class for OpenGL GL library
DynamicDisplayHUD/OpenGL_GLU_v4.cs Wrapper class for OpenGL GLU library
DynamicDisplayHUD/OpenGL_WGL_v4.cs Wrapper class for OpenGL WGL library
Download the C# files

Download the files for all languages

See Also:

About dynamic display
Dynamic Display - Compass
Dynamic Display layer sample
Dynamic Logo layer
How to create a dynamic glyph from a marker symbol