STK ObjectsSend comments on this topic.
Extend Method (IAgMtoTrackPointCollection)
See Also
TimeVals
LatVals
LonVals
AltVals
Windows





Windows & Linux

Description

Extends the track with the specified point data.

Syntax

[Visual Basic .NET]
Public Sub Extend( _
    ByVal TimeVals As System.Array, _
    ByVal LatVals As System.Array, _
    ByVal LonVals As System.Array, _
    ByVal AltVals As System.Array _
)
[C#]
public void Extend(
    System.Array TimeVals,
    System.Array LatVals,
    System.Array LonVals,
    System.Array AltVals
);
[Managed C++]
public: void Extend(
    System::Array ^ TimeVals,
    System::Array ^ LatVals,
    System::Array ^ LonVals,
    System::Array ^ AltVals
);
[Unmanaged C++]
public: HRESULT Extend(
    SAFEARRAY * * TimeVals,
    SAFEARRAY * * LatVals,
    SAFEARRAY * * LonVals,
    SAFEARRAY * * AltVals
);
[Java]
public void extend(
    AgSafeArray TimeVals,
    AgSafeArray LatVals,
    AgSafeArray LonVals,
    AgSafeArray AltVals
);
[Python - STK API ]
def Extend(self, TimeVals:list, LatVals:list, LonVals:list, AltVals:list) -> None:

Parameters

TimeVals
LatVals
LonVals
AltVals

See Also

Example

Extend MTO track
[C#]
Array time = new object[]
             {
                 "1 Jan 2012 12:20:00.000", "1 Jan 2012 12:30:00.000"
             };
Array latitude = new object[]
                 {
                     -18.35, 19.55
                 };
Array longitude = new object[]
                  {
                      -42.10, 83.21
                  };
Array altitude = new object[]
                 {
                     30.52, 15.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]
Dim time As Array = New Object() {"1 Jan 2012 12:20:00.000", "1 Jan 2012 12:30:00.000"}
Dim latitude As Array = New Object() {-18.35, 19.55}
Dim longitude As Array = New Object() {-42.1, 83.21}
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
trackPointCollection.Extend(time, latitude, longitude, altitude)
© 2024 Analytical Graphics, Inc. All Rights Reserved.