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





Description

A rectangular overlay that can be assigned a texture.

Object Model



Public Properties

Public Property MaintainAspectRatio Gets or sets a value indicating whether the aspect ratio of the texture screen overlay is maintained or not.
Public Property Texture Gets or sets the texture (image) to be drawn on the overlay. Textures can be obtained from SceneManager.Textures.
Public Property TextureFilter Gets 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; 
 
 

CoClasses that Implement IAgStkGraphicsTextureScreenOverlay

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1