AGI STK Objects 11 Send comments on this topic.
AddBatch Method (IAgVeRealtimeLLAPoints)
See Also  Example
Times
Lats
Lons
Alts
LatRates
LonRates
AltRates





Description

Adds data points with velocity information.

Syntax

[Visual Basic .NET]
Public Sub AddBatch( _
   ByRef Times As System.Array, _
   ByRef Lats As System.Array, _
   ByRef Lons As System.Array, _
   ByRef Alts As System.Array, _
   ByRef LatRates As System.Array, _
   ByRef LonRates As System.Array, _
   ByRef AltRates As System.Array _
) 

[C#]
public void AddBatch(
ref System.Array Times,
ref System.Array Lats,
ref System.Array Lons,
ref System.Array Alts,
ref System.Array LatRates,
ref System.Array LonRates,
ref System.Array AltRates
);

[Managed C++]
public: void AddBatch(
System::Array ^^ Times,
System::Array ^^ Lats,
System::Array ^^ Lons,
System::Array ^^ Alts,
System::Array ^^ LatRates,
System::Array ^^ LonRates,
System::Array ^^ AltRates
);

[Java]
public  addBatch(
Object[] Times,
Object[] Lats,
Object[] Lons,
Object[] Alts,
Object[] LatRates,
Object[] LonRates,
Object[] AltRates
);

[Unmanaged C++]
public: HRESULT AddBatch(
SAFEARRAY ** Times,
SAFEARRAY ** Lats,
SAFEARRAY ** Lons,
SAFEARRAY ** Alts,
SAFEARRAY ** LatRates,
SAFEARRAY ** LonRates,
SAFEARRAY ** AltRates
);

Parameters

Times
Lats
Lons
Alts
LatRates
LonRates
AltRates

Example

Add realtime LLA positions in batches
[C#] Copy Code
// Add realtime LLA points in batches 
Array times = new object[] 
              { 
                  "1 Jan 2012 12:00:00.000"
                  "1 Jan 2012 12:01:00.000"
                  "1 Jan 2012 12:02:00.000" 
              }; 
Array lat = new object[] 
            { 
                39.69341.06139.925 
            }; 
Array lon = new object[] 
            { 
                -76.399, -74.266, -78.578 
            }; 
Array alt = new object[] 
            { 
                0.0390.04200.281 
            }; 
Array latrate = new object[] 
                { 
                    0.034580.032150.03188 
                }; 
Array lonrate = new object[] 
                { 
                    0.012230.011480.01075 
                }; 
Array altrate = new object[] 
                { 
                    0.054020.052100.05075 
                }; 
 
IAgVeRealtimeLLAPoints points = propagator.PointBuilder.LLA; 
 
// AddBatch expects each parameter to be a one dimensional array and all of the same length 
points.AddBatch(ref times, ref lat, ref lon, ref alt, ref latrate, ref lonrate, ref altrate); 
 

Add realtime LLA positions in batches
[Visual Basic .NET] Copy Code
' Add realtime LLA points in batches
#If Not CSToJava Then
#Else
#End If
Dim times As Array = New Object() {"1 Jan 2012 12:00:00.000", "1 Jan 2012 12:01:00.000", "1 Jan 2012 12:02:00.000"}
#If Not CSToJava Then
#Else
#End If
Dim lat As Array = New Object() {39.693, 41.061, 39.925}
#If Not CSToJava Then
#Else
#End If
Dim lon As Array = New Object() {-76.399, -74.266, -78.578}
#If Not CSToJava Then
#Else
#End If
Dim alt As Array = New Object() {0.039, 0.042, 0.281}
#If Not CSToJava Then
#Else
#End If
Dim latrate As Array = New Object() {0.03458, 0.03215, 0.03188}
#If Not CSToJava Then
#Else
#End If
Dim lonrate As Array = New Object() {0.01223, 0.01148, 0.01075}
#If Not CSToJava Then
#Else
#End If
Dim altrate As Array = New Object() {0.05402, 0.0521, 0.05075}

Dim points As IAgVeRealtimeLLAPoints = propagator.PointBuilder.LLA

' AddBatch expects each parameter to be a one dimensional array and all of the same length
#If Not CSToJava Then
points.AddBatch(times, lat, lon, alt, latrate, lonrate, _
    altrate)
#Else
#End If

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1