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





Description

AgAreaTypeEllipse used to access the MajorAxis MinorAxis and Bearing of the AreaTarget AreaType

Public Properties

Public Property Bearing The angle, measured in an easterly direction, between the major axis of the ellipse and the local North direction. Uses Angle Dimension.
Public Property SemiMajorAxis Semimajor axis, i.e. half the length of the ellipse's long axis. Uses Distance Dimension.
Public Property SemiMinorAxis Semiminor axis, i.e. half the length of the ellipse's short axis. Uses Distance Dimension.

Example

Set an elliptical area target
[C#] Copy Code
// By using the fine grained interfaces, 
// BeginUpdate/EndUpdate prevent intermediate redraws 
root.BeginUpdate(); 
areaTarget.AreaType = AgEAreaType.eEllipse; 
IAgAreaTypeEllipse ellipse = areaTarget.AreaTypeData as IAgAreaTypeEllipse; 
ellipse.SemiMajorAxis = 85.25// in km (distance dimension) 
ellipse.SemiMinorAxis = 80.75// in km (distance dimension) 
ellipse.Bearing = 44// in deg (angle dimension) 
root.EndUpdate(); 
 

Set an elliptical area target
[Visual Basic .NET] Copy Code
' By using the fine grained interfaces,
' BeginUpdate/EndUpdate prevent intermediate redraws
root.BeginUpdate()
areaTarget.AreaType = AgEAreaType.eEllipse
Dim ellipse As IAgAreaTypeEllipse = TryCast(areaTarget.AreaTypeData, IAgAreaTypeEllipse)
ellipse.SemiMajorAxis = 85.25
' in km (distance dimension)
ellipse.SemiMinorAxis = 80.75
' in km (distance dimension)
ellipse.Bearing = 44
' in deg (angle dimension)
root.EndUpdate()

CoClasses that Implement IAgAreaTypeEllipse

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1