AGI STK Objects 11 Send comments on this topic.
SetAreaTypePattern Method (IAgATCommonTasks)
See Also  Example
LatLons





Description

Sets the boundary area type to Pattern.

Syntax

[Visual Basic .NET]
Public Function SetAreaTypePattern( _
   ByRef LatLons As System.Array _
) As IAgAreaTypePatternCollection

[C#]
public IAgAreaTypePatternCollection SetAreaTypePattern(
ref System.Array LatLons
);

[Managed C++]
public: IAgAreaTypePatternCollection^ SetAreaTypePattern(
System::Array ^^ LatLons
);

[Java]
public IAgAreaTypePatternCollection setAreaTypePattern(
Object[] LatLons
);

[Unmanaged C++]
public: HRESULT SetAreaTypePattern(
SAFEARRAY ** LatLons,
IAgAreaTypePatternCollection ** ReturnValue
);

Parameters

LatLons

Example

Define area target boundary and position from list of lat/lon/alt (using common tasks)
[C#] Copy Code
// By using the CommonTasks interface, 
// make an array of lattitude and longitude boundary points 
Array boundary = new object[,] 
    { 
        { 48.89718.637 }, 
        { 46.53413.919 }, 
        { 44.17321.476 } 
    }; 
 
// SetAreaTypePattern expects a two dimensional array of latitude and longitude values 
areaTarget.CommonTasks.SetAreaTypePattern(ref boundary); 
 

Define area target boundary and position from list of lat/lon/alt (using common tasks)
[Visual Basic .NET] Copy Code
' By using the CommonTasks interface,
' make an array of lattitude and longitude boundary points
#If Not CSToJava Then
#Else
#End If
Dim boundary As Array = New Object(,) {{48.897, 18.637}, {46.534, 13.919}, {44.173, 21.476}}

' SetAreaTypePattern expects a two dimensional array of latitude and longitude values
#If Not CSToJava Then
areaTarget.CommonTasks.SetAreaTypePattern(boundary)
#Else
#End If

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1