Effects in the GlobeControl


PurposeThis sample demonstrates how to manipulate Heads Up Display (HUD), North Arrow, Observer Location (latitude, longitude, and altitude), Enabling, and Setting Sun and Ambient Light effects.

It shows how to use IGlobeViewer:NorthArrowEnabled and HUDEnabled to enable north arrow and heads-up display; IGlobeDisplay:GetSunColor, SetSunColor, GetSunPosition, SetSunPosition, AmbientLight, to get and set the sun color, sun position and ambient light; IGlobeCamera:GetObserverLatLonAlt to get observer latitude, longitude, and altitude and shows the user how to listen to an AfterDraw event of GlobeDisplayEvents:IGlobeDisplayEvents. See the following screen shot:

Screen shot of HUD options used in this sample.

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

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. If no default document is loaded, open a globe document.
  2. Select the Enable Sun check box to enable and disable the sun effect and click the Set Sun Color button to set the desired color of the sun.
  3. Select the HUD check boxes to enable and disable the built-in heads up display; the Alternate HUD area shows how to make a heads up display.

AssemblyInfo.cs Assembly information
Effects.cs Form file
Download the C# files
AssemblyInfo.vb Assembly information
Effects.vb Form file
Download the VB.NET files

Download the files for all languages

See Also:

GlobeControl class
IGlobeControl interface