STK ObjectsSend comments on this topic.
IAgAreaTypeEllipse Interface

Description

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

Public Properties

Public Property BearingThe angle, measured in an easterly direction, between the major axis of the ellipse and the local North direction. Uses Angle Dimension.
Public Property SemiMajorAxisSemimajor axis, i.e. half the length of the ellipse's long axis. Uses Distance Dimension.
Public Property SemiMinorAxisSemiminor axis, i.e. half the length of the ellipse's short axis. Uses Distance Dimension.

Interfaces

Implemented Interface
IAgAreaTypeData

CoClasses that Implement IAgAreaTypeEllipse

Example

Set an elliptical area target
[C#]
// 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]
' 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()
© 2024 Analytical Graphics, Inc. All Rights Reserved.