GlobeControlOpenGLDrawing


Purpose
This sample demonstrates how to draw within GlobeControl using the OpenGL library. The sample has two sections, one command and one tool. The command demonstrates how to draw a geographical point on the globe while the tool demonstrates how to convert and draw a window coordinate on the globe.

How to use

If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Open the Visual C++ project file and build the project.
  2. In order to use the sample, drag both the command and the tool onto a ToolbarControl.
  3. Click the command and set a decimal degree coordinate in a dialog. Click OK and the point will be added to the globe.
  4. In order to use the tool, select it from the toolbar, click and drag the mouse on the globe.

GlobeDigitizePoint.cpp Implementation of GlobeControlOpenGLDrawing.
GlobeDigitizePointTool.cpp Implementation of GlobeControlOpenGLDrawing.
AddGeographicPoint.cpp Implementation of GlobeControlOpenGLDrawing.
CoordInputDlg.cpp Implementation of GlobeAnimationDlg class.
StdAfx.cpp Implementation of GlobeAnimationDlg class.
GlobeDigitizePointTool.h header file of GlobeAnimationDlg class.
AddGeographicPoint.h header file of GlobeAnimationDlg class.
CoordInputDlg.h header file of GlobeAnimationDlg class.
StdAfx.h header file of GlobeAnimationDlg class.
resource.h Resource header file.
Download the VCPP files

Download the files for all languages




Development licensing Deployment licensing
Engine Developer Kit Engine: 3D Analyst