AGI STK Objects 11 Send comments on this topic.
IAgVeGroundEllipsesCollection Collection





Description

Ground Ellipses

Object Model

Public Methods

Public Method Add Adds a new element to the collection.
Public Method GetEllipseSet Gets an element from the collection using the Ellipse Set name.
Public Method RemoveAll Removes all elements from the collection.
Public Method RemoveAt Removes an element from the collection using specified index.
Public Method RemoveEllipseSet Removes an element from the collection using the Ellipse Set name

Public Properties

Public Property Count Returns the number of elements in a collection.
Public Property Item Given an index, returns an element in the collection.

Example

Add ground ellipse element and data element
[C#] Copy Code
// Add ground ellipse 
IAgVeGroundEllipseElement ellipse = ellipsesCollection.Add("MyEllipses"); 
 
// Add ellipse data element 
IAgVeEllipseDataElement element = ellipse.EllipseData.Add(); 
 
// Configure element properties 
element.Time = "1 Jan 2012 12:00:00.000"
element.Latitude = 35.2920
element.Longitude = -93.7299
element.SemiMajorAxis = 400.0
element.SemiMinorAxis = 300.0
element.Bearing = 35.71
 

Add ground ellipse element and data element
[Visual Basic .NET] Copy Code
' Add ground ellipse
Dim ellipse As IAgVeGroundEllipseElement = ellipsesCollection.Add("MyEllipses")

' Add ellipse data element
Dim element As IAgVeEllipseDataElement = ellipse.EllipseData.Add()

' Configure element properties
element.Time = "1 Jan 2012 12:00:00.000"
element.Latitude = 35.292
element.Longitude = -93.7299
element.SemiMajorAxis = 400
element.SemiMinorAxis = 300
element.Bearing = 35.71

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1