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 UseAltitudeBasedTranslucency is set to true. When the altitude of the viewer is at or below this value, the image will have the translucency specified by AltitudeBasedTranslucencyLowerTranslucency, and will be linearly interpolated at altitude values between AltitudeBasedTranslucencyLowerAltitude and AltitudeBasedTranslucencyUpperAltitude.
Public Property AltitudeBasedTranslucencyLowerTranslucency Gets or sets the lower translucency value for the image when UseAltitudeBasedTranslucency is set to true. When the altitude of the viewer is at or below AltitudeBasedTranslucencyLowerAltitude, the image will have the translucency specified by this property, and will be linearly interpolated at altitude values between AltitudeBasedTranslucencyLowerAltitude and AltitudeBasedTranslucencyUpperAltitude.
Public Property AltitudeBasedTranslucencyUpperAltitude Gets or sets the upper altitude bound used to calculate translucency for the image when UseAltitudeBasedTranslucency is set to true. When the altitude of the viewer is at or above this value, the image will have the translucency specified by AltitudeBasedTranslucencyUpperTranslucency, and will be linearly interpolated at altitude values between AltitudeBasedTranslucencyUpperAltitude and AltitudeBasedTranslucencyLowerAltitude.
Public Property AltitudeBasedTranslucencyUpperTranslucency Gets or sets the upper translucency value for the image when UseAltitudeBasedTranslucency is set to true. When the altitude of the viewer is at or above AltitudeBasedTranslucencyUpperAltitude, the image will have the translucency specified by this property, and will be linearly interpolated at altitude values between AltitudeBasedTranslucencyUpperAltitude and AltitudeBasedTranslucencyLowerAltitude.
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 Translucency value is used. If true, the translucency will be determined by the values of AltitudeBasedTranslucencyLowerTranslucency, AltitudeBasedTranslucencyUpperTranslucency, AltitudeBasedTranslucencyLowerAltitude, and AltitudeBasedTranslucencyUpperAltitude.

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)

CoClasses that Implement IAgStkGraphicsGlobeImageOverlay

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1