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