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






Windows & Linux

Description

A rectangular overlay that can be assigned a texture.

Object Model



Public Properties

Public Property MaintainAspectRatioGets or sets a value indicating whether the aspect ratio of the texture screen overlay is maintained or not.
Public Property TextureGets or sets the texture (image) to be drawn on the overlay. Textures can be obtained from SceneManager.Textures.
Public Property TextureFilterGets or sets the filter used for the Texture associated with this overlay.

Example

Draw a new Texture Screen Overlay
[MATLAB]Copy Code
% IAgScenario scenario: Scenario object 
manager = scenario.SceneManager; 
overlays = manager.ScreenOverlays.Overlays; 
textureOverlay = manager.Initializers.TextureScreenOverlay.InitializeWithXYWidthHeight(0,0,128,128); 
textureOverlay.Texture = manager.Textures.LoadFromStringUri('C:\Program Files\AGI\STK 11\STKData\VO\Textures\AGI_logo_big.ppm'); 
textureOverlay.MaintainAspectRatio = true; 
textureOverlay.Origin = 'eStkGraphicsScreenOverlayOriginTopLeft'; 
textureOverlay.Position = {0;20;'eStkGraphicsScreenOverlayUnitPixels';'eStkGraphicsScreenOverlayUnitPixels'}; 
overlays.Add(textureOverlay); 
%Render the Scene 
manager.Render; 
 
 
Draw a new Texture Screen Overlay
[Python]Copy Code
# IAgScenario scenario: Scenario object 
manager = scenario.SceneManager 
overlays = manager.ScreenOverlays.Overlays 
textureOverlay = manager.Initializers.TextureScreenOverlay.InitializeWithXYWidthHeight(0,0,128,128) 
textureOverlay.Texture = manager.Textures.LoadFromStringUri(r'C:\Program Files\AGI\STK 11\STKData\VO\Textures\AGI_logo_big.ppm') 
textureOverlay.MaintainAspectRatio = True 
textureOverlay.Origin = 6 # eStkGraphicsScreenOverlayOriginTopLeft 
textureOverlay.Position = [ [0],[20],[0],[0] ] # eStkGraphicsScreenOverlayUnitPixels 
overlays.Add(textureOverlay) 
#Render the Scene 
manager.Render() 
 
 

CoClasses that Implement IAgStkGraphicsTextureScreenOverlay

© 2018 Analytical Graphics, Inc. All Rights Reserved.