Using the GlobeControl

In this topic

About using the GlobeControl

The GlobeControl corresponds to the 3D view of ArcGlobe and provides a 3D view of data on a globe surface in true geodetic location. The GlobeControl handles large datasets by using an efficient caching scheme. The GlobeControl requires the 3D Analyst extension. See the following screen shot:

Globe objects

The GlobeControl encapsulates an object implementing IGlobeViewer. This is the same IGlobeViewer ArcObjects found inside the ArcGlobe application. IGlobeViewer contains a GlobeDisplay and the GlobeDisplay contains a Globe. The GlobeControl provides shortcuts to frequently used attributes and methods on the object it encapsulates. For example, the GlobeControl has setGlobeCamerByRef(), getGlobe(), setGlobeDisplayByRef(), and getGlobeViewer() methods. For more information about these objects, see the GlobeCore library.

Loading globe documents

The globe document can be set at design time through the GlobeControl property editor (in development environments that support property page capability). The GlobeControl attempts to load this document when it is created. Alternatively, a globe document can be loaded into the GlobeControl programmatically using the check3dFile() method to determine whether the document is valid and the load3dFile() method to load the globe document. See the following code example:
String ArcGISInstallDir = System.getenv("AGSDEVKITJAVA");
String filePath = ArcGIsInstallDir + 
if (globeControl.check3dFile(filePath))

Navigation functionality

The GlobeControl has built-in navigation functionality that can be turned on at design time through the GlobeControl property editor or programmatically with the setNavigate() method. The functionality enables the end user to use the left mouse button to navigate backward, forward, and to the left and right of the display, and the right mouse button to zoom in and out on the display.

See Also:

Controls library overview
GlobeCore library overview
How to set GlobeControl properties
Sample: GlobeBean, TOCbean, ToolbarBean

Development licensingDeployment licensing
Engine Developer KitEngine: 3D Analyst
ArcGIS for Desktop Basic: 3D Analyst
ArcGIS for Desktop Standard: 3D Analyst
ArcGIS for Desktop Advanced: 3D Analyst