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

Description

A Globe Overlay that shows an image.

Public Properties

Public Property AltitudeBasedTranslucencyLowerAltitude Gets or sets the lower altitude bound used to calculate translucency for the image when Globe Image Overlay . Use Altitude Based Translucency is set to true. When the altitude of the viewer is at or below this value, the image will have the translucency specified by Globe Image Overlay . Altitude Based Translucency Lower Translucency, and will be linearly interpolated at altitude values between Globe Image Overlay . Altitude Based Translucency Lower Altitude and Globe Image Overlay . Altitude Based Translucency Upper Altitude.
Public Property AltitudeBasedTranslucencyLowerTranslucency Gets or sets the lower translucency value for the image when Globe Image Overlay . Use Altitude Based Translucency is set to true. When the altitude of the viewer is at or below Globe Image Overlay . Altitude Based Translucency Lower Altitude, the image will have the translucency specified by this property, and will be linearly interpolated at altitude values between Globe Image Overlay . Altitude Based Translucency Lower Altitude and Globe Image Overlay . Altitude Based Translucency Upper Altitude.
Public Property AltitudeBasedTranslucencyUpperAltitude Gets or sets the upper altitude bound used to calculate translucency for the image when Globe Image Overlay . Use Altitude Based Translucency is set to true. When the altitude of the viewer is at or above this value, the image will have the translucency specified by Globe Image Overlay . Altitude Based Translucency Upper Translucency, and will be linearly interpolated at altitude values between Globe Image Overlay . Altitude Based Translucency Upper Altitude and Globe Image Overlay . Altitude Based Translucency Lower Altitude.
Public Property AltitudeBasedTranslucencyUpperTranslucency Gets or sets the upper translucency value for the image when Globe Image Overlay . Use Altitude Based Translucency is set to true. When the altitude of the viewer is at or above Globe Image Overlay . Altitude Based Translucency Upper Altitude, the image will have the translucency specified by this property, and will be linearly interpolated at altitude values between Globe Image Overlay . Altitude Based Translucency Upper Altitude and Globe Image Overlay . Altitude Based Translucency Lower Altitude.
Public Property MoreThanOneImageGlobeOverlaySupported Gets whether or not the video card allows for more than one image globe overlay Globe Image Overlay to be added.
Public Property Translucency Gets or sets the translucency value for the image. The translucency is between 0 and 1, where 0 is fully opaque and 1 is invisible.
Public Property UseAltitudeBasedTranslucency Gets or sets whether to use altitude to determine the translucency value for the image or not. If false, the Globe Image Overlay . Translucency value is used. If true, the translucency will be determined by the values of Globe Image Overlay . Altitude Based Translucency Lower Translucency, Globe Image Overlay . Altitude Based Translucency Upper Translucency, Globe Image Overlay . Altitude Based Translucency Lower Altitude, and Globe Image Overlay . Altitude Based Translucency Upper Altitude.

Example

Add jp2 imagery to the globe
[C#] Copy Code
// 
// Either jp2 or pdttx can be used here 
// 
IAgStkGraphicsGlobeImageOverlay overlay = scene.CentralBodies.Earth.Imagery.AddUriString(globeOverlayFile); 
 
Draw an image on top of another
[C#] Copy Code
IAgStkGraphicsGlobeImageOverlay topOverlay = scene.CentralBodies.Earth.Imagery.AddUriString(topOverlayFile); 
IAgStkGraphicsGlobeImageOverlay bottomOverlay = scene.CentralBodies.Earth.Imagery.AddUriString(bottomOverlayFile); 
 
// 
// Since bottom.jp2 was added after top.jp2, bottom.jp2 will be 
// drawn on top.  In order to draw top.jp2 on top, we swap the Overlays. 
// 
scene.CentralBodies.Earth.Imagery.Swap(topOverlay, bottomOverlay); 
 
Add terrain to the globe
[C#] Copy Code
IAgStkGraphicsTerrainOverlay overlay = scene.CentralBodies.Earth.Terrain.AddUriString( 
    terrainOverlayFile); 
 
Add jp2 imagery to the globe
[Visual Basic .NET] Copy Code
'
' Either jp2 or pdttx can be used here
'
Dim overlay As IAgStkGraphicsGlobeImageOverlay = scene.CentralBodies.Earth.Imagery.AddUriString(globeOverlayFile)

Draw an image on top of another
[Visual Basic .NET] Copy Code
Dim topOverlay As IAgStkGraphicsGlobeImageOverlay = scene.CentralBodies.Earth.Imagery.AddUriString(topOverlayFile)
Dim bottomOverlay As IAgStkGraphicsGlobeImageOverlay = scene.CentralBodies.Earth.Imagery.AddUriString(bottomOverlayFile)

'
' Since bottom.jp2 was added after top.jp2, bottom.jp2 will be
' drawn on top. In order to draw top.jp2 on top, we swap the Overlays.
'
scene.CentralBodies.Earth.Imagery.Swap(topOverlay, bottomOverlay)


Add terrain to the globe
[Visual Basic .NET] Copy Code
Dim overlay As IAgStkGraphicsTerrainOverlay = scene.CentralBodies.Earth.Terrain.AddUriString( _
    terrainOverlayFile)

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK 11.1 Programming Interface