AGI STK Objects 11 Send comments on this topic.
Extend Method (IAgMtoTrackPointCollection)
See Also  Example
TimeVals
LatVals
LonVals
AltVals





Description

Extends the track with the specified point data.

Syntax

[Visual Basic .NET]
Public Sub Extend( _
   ByRef TimeVals As System.Array, _
   ByRef LatVals As System.Array, _
   ByRef LonVals As System.Array, _
   ByRef AltVals As System.Array _
) 

[C#]
public void Extend(
ref System.Array TimeVals,
ref System.Array LatVals,
ref System.Array LonVals,
ref System.Array AltVals
);

[Managed C++]
public: void Extend(
System::Array ^^ TimeVals,
System::Array ^^ LatVals,
System::Array ^^ LonVals,
System::Array ^^ AltVals
);

[Java]
public  extend(
Object[] TimeVals,
Object[] LatVals,
Object[] LonVals,
Object[] AltVals
);

[Unmanaged C++]
public: HRESULT Extend(
SAFEARRAY ** TimeVals,
SAFEARRAY ** LatVals,
SAFEARRAY ** LonVals,
SAFEARRAY ** AltVals
);

Parameters

TimeVals
LatVals
LonVals
AltVals

Example

Extend MTO track
[C#] Copy Code
Array time = new object[] 
             { 
                 "1 Jan 2012 12:20:00.000""1 Jan 2012 12:30:00.000" 
             }; 
Array latitude = new object[] 
                 { 
                     -18.3519.55 
                 }; 
Array longitude = new object[] 
                  { 
                      -42.1083.21 
                  }; 
Array altitude = new object[] 
                 { 
                     30.5215.81 
                 }; 
 
// Extend expects each parameter to be a two dimensional array, 
// all arrays must have the same length 
trackPointCollection.Extend(ref time, ref latitude, ref longitude, ref altitude); 
 

Extend MTO track
[Visual Basic .NET] Copy Code
#If Not CSToJava Then
#Else
#End If
Dim time As Array = New Object() {"1 Jan 2012 12:20:00.000", "1 Jan 2012 12:30:00.000"}
#If Not CSToJava Then
#Else
#End If
Dim latitude As Array = New Object() {-18.35, 19.55}
#If Not CSToJava Then
#Else
#End If
Dim longitude As Array = New Object() {-42.1, 83.21}
#If Not CSToJava Then
#Else
#End If
Dim altitude As Array = New Object() {30.52, 15.81}

' Extend expects each parameter to be a two dimensional array,
' all arrays must have the same length
#If Not CSToJava Then
trackPointCollection.Extend(time, latitude, longitude, altitude)
#Else
#End If

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1