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





Description

Interface for a ship object.

Object Model







Public Properties

Public Property Atmosphere The local atmosphere.
Public Property ExportTools Returns the IAgShExportTools interface.
Public Property Graphics Get the ship's 2D Graphics properties.
Public Property RadarClutterMap Returns the radar clutter map.
Public Property RadarCrossSection Returns the radar cross sectoin.
Public Property VO Get the ship's 3D Graphics properties.

Interfaces

Implemented Interface
IAgGreatArcVehicle

Example

Create a ship (on current scenario central body)
[C#] Copy Code
// Create the Ship 
IAgShip ship = root.CurrentScenario.Children.New(AgESTKObjectType.eShip, "MyShip"as IAgShip; 
 

Set ship to use Great Arc propagator
[C#] Copy Code
// 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#] Copy Code
// 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#] Copy Code
// 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] Copy Code
' 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] Copy Code
' 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] Copy Code
' 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] Copy Code
' Set ship route to STK External propagator
ship.SetRouteType(AgEVePropagatorType.ePropagatorRealtime)

' Retrieve propagator interface if necessary
Dim propagator As IAgVePropagatorRealtime = TryCast(ship.Route, IAgVePropagatorRealtime)

CoClasses that Implement IAgShip

Name
AgShip
© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1