AGI STK Objects 11 Send comments on this topic.
IAgPlPosCentralBody Interface





Description

IAgPlPosCentralBody Interface.

Public Properties

Public Property AutoRename Specify whether the object should automatically be renamed to have the same name as the selected central body.
Public Property AvailableCentralBodies Returns an array of all available Central Bodies.
Public Property AvailableEphemSourceTypes Returns an array of all available Ephemeris Source Types.
Public Property CentralBody The central body used in defining the planet object.
Public Property EphemSource The ephemeris source for the selected central body. A member of the AgEEphemSourceType enumeration.
Public Property JPLDEVersion Returns a JPL DE Version
Public Property Radius The radius of the selected central body. Uses Distance Dimension.

Example

Configure a planet
[C#] Copy Code
planet.PositionSource = AgEPlPositionSourceType.ePosCentralBody; 
 
// Get IAgPlPosCentralBody interface 
IAgPlPosCentralBody body = planet.PositionSourceData as IAgPlPosCentralBody; 
 
body.AutoRename = false
body.CentralBody = "Jupiter"
 
// AvailableEphemSourceTypes is a one dimensional array of AgEEphemSourceType values 
if (Array.IndexOf(body.AvailableEphemSourceTypes, (int)AgEEphemSourceType.eEphemAnalytic) != -1

    body.EphemSource = AgEEphemSourceType.eEphemAnalytic; 

 

Configure a planet
[Visual Basic .NET] Copy Code
planet.PositionSource = AgEPlPositionSourceType.ePosCentralBody

' Get IAgPlPosCentralBody interface
Dim body As IAgPlPosCentralBody = TryCast(planet.PositionSourceData, IAgPlPosCentralBody)

body.AutoRename = False
body.CentralBody = "Jupiter"

' AvailableEphemSourceTypes is a one dimensional array of AgEEphemSourceType values
If Array.IndexOf(body.AvailableEphemSourceTypes, DirectCast(AgEEphemSourceType.eEphemAnalytic, Integer)) <> -1 Then
    body.EphemSource = AgEEphemSourceType.eEphemAnalytic
End If

CoClasses that Implement IAgPlPosCentralBody

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1