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






Windows & Linux

Description

Interface for a ship object.

Object Model







Public Properties

Public Property AtmosphereThe local atmosphere.
Public Property ExportToolsReturns the IAgShExportTools interface.
Public Property GraphicsGet the ship's 2D Graphics properties.
Public Property RadarClutterMapReturns the radar clutter map.
Public Property RadarCrossSectionReturns the radar cross sectoin.
Public Property VOGet 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
© 2018 Analytical Graphics, Inc. All Rights Reserved.