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





Description

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

Public Methods

Public Method ClearCache Clears the image data cache associated with this instance. This is equivalent to deleting and re-adding the overlay.
Public Method Read Reads a tile from the specified extent, scales it to and stores the result in image.
Public Method Reload Reloads the image data associated with this instance. Preserves the current image data until new image data replaces it.
Public Method ShutDown Called automatically when imagery is being removed from the globe.
Public Method StartUp Called automatically when imagery is being added to the globe.

Public Properties

Public Property IsTranslucent Gets whether the overlay contains translucent imagery.
Public Property MaximumMetersPerPixel Gets the maximum resolution of the inlay in meters per pixel.
Public Property Projection Gets 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

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1