Globe digitize tool


PurposeThis sample demonstrates drawing on the globe using the OpenGL plug-in. The sample shows you how to implement display feedback (drawing as a response to mouse events) as well as information that gets stored in a user-defined data structure. It focuses on listening to globe events; creating OpenGL display lists and textures; and translating, scaling, and billboarding items. This sample also demonstrates an approach for storing user-defined dynamic data inside a .NET data structure.

Development licensing Deployment licensing
Engine Developer Kit Engine Runtime: 3D
ArcView: 3D Analyst ArcView: 3D Analyst
ArcEditor: 3D Analyst ArcEditor: 3D Analyst
ArcInfo: 3D Analyst ArcInfo: 3D Analyst

Additional Requirements
  • This sample can only be done in C# (not in VB.NET). This is because unsafe is not supported in VB.NET and it is needed here because pointers need to be used with this third party library.

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 code in Visual Studio 2005.
  2. Build the solution.
  3. Open ArcGlobe or a GlobeControl application (in design mode).
  4. In the Customize dialog box, choose the .NET Samples category.
  5. From the Command Items pane, drag the Digitize Points tool onto a toolbar.
  6. Run the application and choose the tool.
  7. Click and drag points on the globe surface.
  8. When you release the mouse button, a billboard icon is added in the mouse position.

GlobeDigitizeTool.cs Implementation file of the user-defined tool allowing drawing and placing items on the globe.
Download the C# files

Download the files for all languages

See Also:

How to draw mouse feedback on the globe using direct OpenGL plugin
How to draw a geographical object on the globe using direct OpenGL plugin
How to get and install an OpenGL wrapper for .NET
RSS Weather 3D Layer