AGI STK Graphics 11 Send comments on this topic.
IAgStkGraphicsCustomImageGlobeOverlay Interface
Windows






Windows & Linux

Description

A Globe Image Overlay that allows for a user defined image to be specified.

Public Methods

Public Method ClearCacheClears the image data cache associated with this instance. This is equivalent to deleting and re-adding the overlay.
Public Method ReadReads a tile from the specified extent, scales it to and stores the result in image.
Public Method ReloadReloads the image data associated with this instance. Preserves the current image data until new image data replaces it.
Public Method ShutDownCalled automatically when imagery is being removed from the globe.
Public Method StartUpCalled automatically when imagery is being added to the globe.

Public Properties

Public Property IsTranslucentGets whether the overlay contains translucent imagery.
Public Property MaximumMetersPerPixelGets the maximum resolution of the inlay in meters per pixel.
Public Property ProjectionGets the map projection. Valid values are MapProjection.Mercator and MapProjection.EquidistantCylindical.

Example

Add custom imagery to the globe
[C#]Copy Code
IAgStkGraphicsSceneManager manager = ((IAgScenario)root.CurrentScenario).SceneManager; 
 
IAgStkGraphicsCustomImageGlobeOverlayPluginActivator activator = 
    manager.Initializers.CustomImageGlobeOverlayPluginActivator.Initialize(); 
IAgStkGraphicsCustomImageGlobeOverlayPluginProxy proxy = 
    activator.CreateFromDisplayName("OpenStreetMapPlugin.CSharp"); 
 
IAgStkGraphicsCustomImageGlobeOverlay overlay = proxy.CustomImageGlobeOverlay; 
scene.CentralBodies.Earth.Imagery.Add((IAgStkGraphicsGlobeImageOverlay)overlay); 
 

Add custom imagery to the globe
[Visual Basic .NET]Copy Code
Dim manager As IAgStkGraphicsSceneManager = DirectCast(root.CurrentScenario, IAgScenario).SceneManager

Dim activator As IAgStkGraphicsCustomImageGlobeOverlayPluginActivator = manager.Initializers.CustomImageGlobeOverlayPluginActivator.Initialize()
Dim proxy As IAgStkGraphicsCustomImageGlobeOverlayPluginProxy = activator.CreateFromDisplayName("OpenStreetMapPlugin.VBNET")

Dim overlay As IAgStkGraphicsCustomImageGlobeOverlay = proxy.CustomImageGlobeOverlay
scene.CentralBodies.Earth.Imagery.Add(DirectCast(overlay, IAgStkGraphicsGlobeImageOverlay))

CoClasses that Implement IAgStkGraphicsCustomImageGlobeOverlay

© 2018 Analytical Graphics, Inc. All Rights Reserved.