STK ObjectsSend comments on this topic.
IAgShip Interface

Description

Interface for a ship object.

Public Properties

Public Property AtmosphereThis property is deprecated. The new RFEnvironment property can be used to configure atmospheric models.
Public Property ExportToolsReturns the IAgShExportTools interface.
Public Property GetEOIRGet the EOIR properties of the ship.
Public Property GraphicsGet the ship's 2D Graphics properties.
Public Property LaserEnvironmentGets the laser environment.
Public Property LightingMaxStepCbShapeGets or sets the maximum step size to use when computing lighting when UseTerrainInLightingComputations is false. Uses Time Dimension.
Public Property LightingMaxStepTerrainGets or sets the maximum step size to use when computing lighting when UseTerrainInLightingComputations is true. Uses Time Dimension.
Public Property RadarClutterMapReturns the radar clutter map.
Public Property RadarCrossSectionReturns the radar cross sectoin.
Public Property RFEnvironmentGets the RF environment.
Public Property VOGet the ship's 3D Graphics properties.

Interfaces

CoClasses that Implement IAgShip

Name
AgShip

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)
© 2024 Analytical Graphics, Inc. All Rights Reserved.