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





Description

The graphical properties associated with a particular Central Body. Changing the Central Body Graphics will affect how the associated Central Body is rendered in a Scene. For instance, to show or hide the Central Body, use the Show property. Central Body Graphics also contains the Terrain and Imagery for the associated Central Body.

Object Model







Public Properties

Public Property AltitudeOffset Gets or sets the altitude, in meters, that all Terrain and Imagery will be offset from the surface of the Central Body in the Scene.
Public Property BaseOverlay Gets or sets the base GlobeImageOverlay associated with the Central Body in the Scene. The Base Overlay is always rendered before any other Imagery. By default, the Earth, Sun, and Moon Central Body will have a default Base Overlay image is loaded by STK Engine when the Scene is created.
Public Property Color Gets or sets the Color of the Central Body in the Scene.
Public Property Imagery Gets the collection of imagery associated with the Central Body in the Scene.
Public Property Kml Gets the KmlGraphics associated with the Central Body in the Scene.
Public Property NightOverlay Gets or sets the night GlobeImageOverlay associated with the Central Body in the Scene. The Night Overlay is displayed only on parts of the Central Body that are not in sun light. The intensity of the Night Overlay for all scenes can be adjusted with the scene's Lighting.NightLightsIntensity property.
Public Property Shininess Gets or sets the shininess of the Central Body in the Scene. The shininess affects the size and brightness of specular reflection associated with the Specular Overlay.
Public Property Show Gets or sets whether the Central Body is shown or hidden in the Scene. This only affects the Central Body itself, not the primitives that are associated with it.
Public Property ShowImagery Gets or sets whether the Imagery for Central Body in the Scene is shown or hidden.
Public Property ShowLabel Gets or sets whether a label with the name of the Central Body should be rendered in the Scene when the Camera is at certain distance away from the Central Body.
Public Property SpecularColor Gets or sets the specular Color of the Central Body in the Scene. The specular color is associated with the Specular Overlay.
Public Property SpecularOverlay Gets or sets the specular GlobeImageOverlay associated with the Central Body in the Scene. The Specular Overlay is displayed only in the specular highlight of the Central Body.
Public Property Terrain Gets the collection of TerrainOverlay associated with the Central Body in the Scene.

Example

Add Imagery and Terrain to the Scene
[MATLAB] Copy Code
% IAgScenario scenario: Scenario object 
% Retrieve the boundaries of the imported files 
manager = scenario.SceneManager; 
% Add Terrain 
terrainTile = manager.Scenes.Item(0).CentralBodies.Earth.Terrain.AddUriString('C:\Program Files\AGI\STK 11\Help\stktraining\samples\SRTM_Skopje.pdtt'); 
extentTerrain = terrainTile.Extent; 
disp(['Terrain boundaries: LatMin: ' num2str(extentTerrain{1}) ' LatMax: ' num2str(extentTerrain{3}) ' LonMin: ' num2str(extentTerrain{2}) ' LonMax: ' num2str(extentTerrain{4})]); 
% Add Imagery 
imageryTile = manager.Scenes.Item(0).CentralBodies.Earth.Imagery.AddUriString('C:\Program Files\AGI\STK 11\Help\stktraining\imagery\NPS_OrganPipeCactus_Map.pdttx'); 
extentImagery = imageryTile.Extent; 
disp(['Imagery boundaries: LatMin: ' num2str(extentImagery{1}) ' LatMax: ' num2str(extentImagery{3}) ' LonMin: ' num2str(extentImagery{2}) ' LonMax: ' num2str(extentImagery{4})]); 
 
 
© 2016 All Rights Reserved.

STK Programming Interface 11.0.1