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






Windows & Linux

Description

IAgPlPosCentralBody Interface.

Public Properties

Public Property AutoRenameSpecify whether the object should automatically be renamed to have the same name as the selected central body.
Public Property AvailableCentralBodiesReturns an array of all available Central Bodies.
Public Property AvailableEphemSourceTypesReturns an array of all available Ephemeris Source Types.
Public Property CentralBodyThe central body used in defining the planet object.
Public Property EphemSourceThe ephemeris source for the selected central body. A member of the AgEEphemSourceType enumeration.
Public Property JPLDEVersionReturns a JPL DE Version
Public Property RadiusThe 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

© 2018 Analytical Graphics, Inc. All Rights Reserved.