STK Graphics PrimitivesSend comments on this topic.
IAgStkGraphicsGlobeImageOverlay Interface

Description

A Globe Overlay that shows an image.

Public Properties

Public Property AltitudeBasedTranslucencyLowerAltitudeGets or sets the lower altitude bound used to calculate translucency for the image when 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 Altitude Based Translucency Lower Translucency, and will be linearly interpolated at altitude values between Altitude Based Translucency Lower Altitude and Altitude Based Translucency Upper Altitude.
Public Property AltitudeBasedTranslucencyLowerTranslucencyGets or sets the lower translucency value for the image when Use Altitude Based Translucency is set to true. When the altitude of the viewer is at or below Altitude Based Translucency Lower Altitude, the image will have the translucency specified by this property, and will be linearly interpolated at altitude values between Altitude Based Translucency Lower Altitude and Altitude Based Translucency Upper Altitude.
Public Property AltitudeBasedTranslucencyUpperAltitudeGets or sets the upper altitude bound used to calculate translucency for the image when 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 Altitude Based Translucency Upper Translucency, and will be linearly interpolated at altitude values between Altitude Based Translucency Upper Altitude and Altitude Based Translucency Lower Altitude.
Public Property AltitudeBasedTranslucencyUpperTranslucencyGets or sets the upper translucency value for the image when Use Altitude Based Translucency is set to true. When the altitude of the viewer is at or above Altitude Based Translucency Upper Altitude, the image will have the translucency specified by this property, and will be linearly interpolated at altitude values between Altitude Based Translucency Upper Altitude and Altitude Based Translucency Lower Altitude.
Public Property MoreThanOneImageGlobeOverlaySupportedGets whether or not the video card allows for more than one image globe overlay Globe Image Overlay to be added.
Public Property TranslucencyGets 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 UseAltitudeBasedTranslucencyGets or sets whether to use altitude to determine the translucency value for the image or not. If false, the Translucency value is used. If true, the translucency will be determined by the values of Altitude Based Translucency Lower Translucency, Altitude Based Translucency Upper Translucency, Altitude Based Translucency Lower Altitude, and Altitude Based Translucency Upper Altitude.

Interfaces

Implemented Interface
IAgStkGraphicsGlobeOverlay

CoClasses that Implement IAgStkGraphicsGlobeImageOverlay

Example

Add jp2 imagery to the globe
[C#]
//
// Either jp2 or pdttx can be used here
//
IAgStkGraphicsGlobeImageOverlay overlay = scene.CentralBodies.Earth.Imagery.AddUriString(globeOverlayFile);
Draw an image on top of another
[C#]
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#]
IAgStkGraphicsTerrainOverlay overlay = scene.CentralBodies.Earth.Terrain.AddUriString(
    terrainOverlayFile);
Add jp2 imagery to the globe
[Visual Basic .NET]
'
' 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]
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]
Dim overlay As IAgStkGraphicsTerrainOverlay = scene.CentralBodies.Earth.Terrain.AddUriString( _
    terrainOverlayFile)
© 2024 Analytical Graphics, Inc. All Rights Reserved.