AGI STK VGT 11 Send comments on this topic.
IAgCrdnParameterSetFactory Interface
Windows






Windows & Linux

Description

The factory is used to create instances of available parameter set types.

Object Model







Public Methods

Public Method Create Creates and registers a parameter set using specified name and description.
Public Method CreateParameterSetAttitude Creates a parameter set defined by identifying one set of axes in reference to another.
Public Method CreateParameterSetGroundTrajectory Creates a parameter set defined by identifying location in reference central body.
Public Method CreateParameterSetOrbit Creates a parameter set defined by identifying orbiting point and its central body.
Public Method CreateParameterSetTrajectory Creates a parameter set defined by identifying location in reference coordinate system.
Public Method CreateParameterSetVector Creates a parameter set defined by identifying vector in reference axes.
Public Method IsTypeSupported Returns whether the specified type is supported.

Example

Create an attitude parameter set.
[C#] Copy Code
//Create an attitude parameter set. 
IAgCrdnParameterSetAttitude parameterSet = (IAgCrdnParameterSetAttitude)provider.ParameterSets.Factory.Create( 
    "ParameterSetName""Attitude parameter set.", AgECrdnParameterSetType.eCrdnParameterSetTypeAttitude); 
 

Determine if the specified parameter set type is supported.
[C#] Copy Code
// Check if the specified parameter set type is supported. 
if (provider.ParameterSets.Factory.IsTypeSupported(parameterSetType)) 

    //Create a ParameterSet with the supported Type 
    IAgCrdnParameterSet parameterSet = provider.ParameterSets.Factory.Create( 
        "MyParameterSet"string.Empty, 
        parameterSetType); 

 

Create an attitude parameter set.
[Visual Basic .NET] Copy Code
'Create an attitude parameter set.
Dim parameterSet As IAgCrdnParameterSetAttitude = DirectCast(provider.ParameterSets.Factory.Create("ParameterSetName", "Attitude parameter set.", AgECrdnParameterSetType.eCrdnParameterSetTypeAttitude), IAgCrdnParameterSetAttitude)

Determine if the specified parameter set type is supported.
[Visual Basic .NET] Copy Code
' Check if the specified parameter set type is supported.
If provider.ParameterSets.Factory.IsTypeSupported(parameterSetType) Then
    'Create a ParameterSet with the supported Type
    Dim parameterSet As IAgCrdnParameterSet = provider.ParameterSets.Factory.Create("MyParameterSet", String.Empty, parameterSetType)
End If

© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK 11.2.1 Programming Interface