Description
Interface for a ship object.
Public Properties
Interfaces
CoClasses that Implement IAgShip
Example
Create a ship (on current scenario central body)
[C#] |
---|
// Create the Ship
IAgShip ship = root.CurrentScenario.Children.New(AgESTKObjectType.eShip, "MyShip") as IAgShip;
|
|
Set ship to use Great Arc propagator
[C#] |
---|
// Set ship route to great arc
ship.SetRouteType(AgEVePropagatorType.ePropagatorGreatArc);
// Retrieve propagator interface if necessary
IAgVePropagatorGreatArc propagator = ship.Route as IAgVePropagatorGreatArc;
|
|
Set ship to use STK External propagator
[C#] |
---|
// Set ship route to STK External propagator
ship.SetRouteType(AgEVePropagatorType.ePropagatorStkExternal);
// Retrieve propagator interface if necessary
IAgVePropagatorStkExternal propagator = ship.Route as IAgVePropagatorStkExternal;
|
|
Set ship to use Realtime propagator
[C#] |
---|
// Set ship route to STK External propagator
ship.SetRouteType(AgEVePropagatorType.ePropagatorRealtime);
// Retrieve propagator interface if necessary
IAgVePropagatorRealtime propagator = ship.Route as IAgVePropagatorRealtime;
|
|
Create a ship (on current scenario central body)
[Visual Basic .NET] |
---|
' Create the Ship
Dim ship As IAgShip = TryCast(root.CurrentScenario.Children.[New](AgESTKObjectType.eShip, "MyShip"), IAgShip)
|
|
Set ship to use Great Arc propagator
[Visual Basic .NET] |
---|
' Set ship route to great arc
ship.SetRouteType(AgEVePropagatorType.ePropagatorGreatArc)
' Retrieve propagator interface if necessary
Dim propagator As IAgVePropagatorGreatArc = TryCast(ship.Route, IAgVePropagatorGreatArc)
|
|
Set ship to use STK External propagator
[Visual Basic .NET] |
---|
' Set ship route to STK External propagator
ship.SetRouteType(AgEVePropagatorType.ePropagatorStkExternal)
' Retrieve propagator interface if necessary
Dim propagator As IAgVePropagatorStkExternal = TryCast(ship.Route, IAgVePropagatorStkExternal)
|
|
Set ship to use Realtime propagator
[Visual Basic .NET] |
---|
' Set ship route to STK External propagator
ship.SetRouteType(AgEVePropagatorType.ePropagatorRealtime)
' Retrieve propagator interface if necessary
Dim propagator As IAgVePropagatorRealtime = TryCast(ship.Route, IAgVePropagatorRealtime)
|
|